Repeating Event - how to?
I have been trying to write a script that fires repeatedly after a set amount of rounds. Example:
Using GED's 12 turns per year I would like a historic_event to repeat every twelve months (Let's call it Happy_Xmas). December would be in round 11 the first time (round one being turn zero). An easy but exhausting way would be to repeat the event like this:
Code:
monitor_event FactionTurnStart FactionIsLocal
if I_TurnNumber = 11
historic_event Happy_Xmas
end_if
if I_TurnNumber = 23
historic_event Happy_Xmas
end_if
;don't terminate since it runs for all events
end_monitor
That isn't exactly elegant (and will take upward of 40 entries) and I have been looking into the 'add_event' and 'increase_counter' functions, but I seem to end up with a "perpetuum mobile" that doesn't get of the ground.
Does anybody have an idea how this can be done?