Skip to content

Current questions and answers regarding the map editor.

User Avatar
#1718
Auto-translated
Ment

Set a trigger for a new day and see when two weeks have passed. After this period, you need to run the Trigger function again, but set a different link to a function within it.
It's that simple; just set a condition before the trigger:
If AbsoluteDay < 20 days, then trigger!
If 90 < AbsoluteDay < 120, then...
Instead of numbers, you can also use variables. And use complex conditions with AND/OR.

Added 2 minutes later
Ment
The GetDate function has several parameters: day of the week, week of the month, and month. All three need to match a specific value.
AbsoluteDay is sufficient.

Here's a simple example:
flagDate=0;
flagX=0;
--flagX is a flag for another event, and if it needs to be used, it is indicated in flagX=1;

function FGrobnica()
if flagDate==0 then
flagDate=GetDate(ABSOLUTE_DAY)+14;
end;
if GetDate(ABSOLUTE_DAY)<=flagDate then
--CONDITION1
end;
if flagX==1 then
--CONDITION2
end;
end;

Trigger(OBJECT_TOUCH_TRIGGER, "Grobnica","FGrobnica");
Моды для HeroesV:
NHF 0.90 : NHF - группа в VK

Карты для HeroesV:
Путешествие , Условие крови , Рука судьбы.Часть 1: В поход , Рука судьбы.Часть 2: Отчаянье , Рука судьбы.Часть 3: Восхождение , Стойкость
Абсолютная власть , Иду на Вы! , Корона Ургаша , На задворках
Мир надо уничтожить... Чтобы создать свой...