Skip to content
#628
Auto-translated
Oligarch
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?
Well, if your variable h=1, then it will remove part of the army every day. And there's no need for these complicated things with determining the date. If you don't want this feature, just change the value of h to anything other than one.

Statistics

Welcome our newest member: Фёдор Фёдорович