Hi guys,
I'm trying to do a trigger that lays the current winning match selection in soccer whenever a goal is scored and the goal difference is one or less.
So for instance, if the home team scores it lays the home team, then if the home teams scores again it doesn't do anything, but if the away team equalises it lays the draw, and so on as the goals are scored.
I'm trying to do this in a loop of some sort, but having trouble with it detecting when a goal is scored. The conditions I'm using is
Selection's Index is equal to 1
AND Selection's Trigger Expression market_score1 - market_score2 is equal to 1
(changing the index to 2 or 3, and change the expression appropriately).
If I set the trigger to repeat they fire off all at once the number of times I've set to repeat. How do I tell it to fire, wait for the next goal, then fire again, then wait?
I've tried the condition Market's Score has changed but this returns false on a goal.