Page 1 of 1
counter/register
Posted: Tue Nov 05, 2013 7:04 pm
by Hobbes
Hi folks, can anyone remind me how I set up a counter that I can increment each turn. When it reaches a certain value I can fire an event - I know there is
a way of doing this!
Thanks,
Chris
Posted: Tue Nov 05, 2013 7:49 pm
by Franciscus
Hi
I think the easier way is to create an event (ex: "evt_counter") that can occur 999 times, without conditions or actions. This event will happen each turn.
Then the event you want to fire, located below the one above, would have in it's conditions evt_counter = X, or the number of turns you want.
But, if you want just an event that fires at "x" number of turns of a game, why not use just the date you want it to happen in conditions ?
Posted: Tue Nov 05, 2013 8:42 pm
by Hobbes
I'm really after a way of firing an event x turns after another random event has fired.
Thanks,
Chris
Posted: Tue Nov 05, 2013 10:09 pm
by Franciscus
So you need that the evt_counter is initially set to occur zero times. When the Random event fires, one if his Actions should be to set Maxoccurs of the evt_counter to 999. Then the counter will increase by one each turn.
Those counter events that are initially set to zero are usually placed at the beginning of the options, as they are thus processed before any dependent option or event.
Posted: Wed Nov 06, 2013 8:26 am
by Hobbes
Many thanks Franciscus!