Auto-translated
I have a question. Let's say, according to the plot, the hero has to choose which path to take. If he goes down a certain road, his army will decrease each day. This can be done using New_day_trigger. Let's assume that in this case, the variable h is assigned the value 1. Then
Trigger(NEW_DAY_TRIGGER, "hello")
function hello()
if GetDate(DAY) == 2 and h==1 then
RemoveHeroCreatures(...);
elseif GetDate(DAY) == 3 and h==1 then
RemoveHeroCreatures(...);
and so on
end;
end;
but this way you have to write it for each day. Is there a way to reset the day count at a certain point so that you don't have to write so much?