Skip to content
User Avatar
#627
Auto-translated
I have the following question. Let's say, according to the plot, the hero has to choose which path to take. If he takes a specific path, 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 specify 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?
Мои карты:
Town
Готовится:Чума (40%), Сосиска(42%), Война Грааля