Pages:
Actions
  • #1 by keith31 on 07 Jul 2018
  • Hi,
    Is there a way to ensure "ALL" triggered events are settled, before another trigger fires?
    Thanks
  • #2 by baronsamedi on 07 Jul 2018
  • Are the events like football and happening at the same time or is it like horse racing/dogs and the events are at different times?
  • #3 by keith31 on 08 Jul 2018
  • Hi,
    Horse racing. 
    To try to explain my situation, i have condition "previous triggered events status is settled". Assume a race settles at 14.45, then, 14.50 race triggers. However, if the 14.30 race overruns its start time by 46 mins and its conditions become ideal, then "its" previous triggered event is also settled and will trigger.
    This is the situation i had several times yesterday. 
    Hope you understand this rambling nonsense.
    Thanks
  • #4 by Oxa (WellDoneSoft) on 08 Jul 2018
  • Hello!

    Here is the way to do it.

    1. Make a trigger that sets a variable, e.g. bet_cntr to 0. The scope should be Global, and the trigger should run "one time only".

    2. In the betting trigger, add an action that sets bet_cntr to bet_cntr+1. Also add this condition to the betting trigger:
    Selection's Trigger Expression bet_cntr is equal to 0

    3. Make another trigger with an action "set user variable bet_cntr to bet_cntr-1". Apply the trigger to settled markets, and in the condition of this trigger add:
    Trigger {name of the betting trigger} number of runs is greater than 0.

    The idea behind this is to count each time when you place a bet in a market, and then decrement the counter after the market is settled. If the counter is greater than 0, this means that some event is still not settled, so the trigger won't bet.
Pages:
Actions