You can do that using the "on shoot" trigger.
Just create a subevent that creates the circumstances you want to compare.
Keep in mind hard wiring the behavior would limit that to a specific formula, rather than giving the developer the freedom to make his own.