Posts from Current questions and answers regarding the map editor.
Auto-translated
1) Is it possible to "re-enable" a trigger? I.e., make it functional again within some function.
2) Is it possible to implement the following: when a trigger is used, one function is called, but after some time (e.g., 2 weeks), another function is called?
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.
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
The GetDate function has several parameters: day of the week, week of the month, and month. All three need to match a specific value.
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");
NHF 0.90 : NHF - группа в VK
Карты для HeroesV:
Путешествие , Условие крови , Рука судьбы.Часть 1: В поход , Рука судьбы.Часть 2: Отчаянье , Рука судьбы.Часть 3: Восхождение , Стойкость
Абсолютная власть , Иду на Вы! , Корона Ургаша , На задворках
Мир надо уничтожить... Чтобы создать свой...
If it's difficult to write it yourself, write here everything you need, down to the specifics, and I'll write the script.
No need for specific details... Here's what I need: There's a Trigger(OBJECT_TOUCH_TRIGGER, ...). I need something to happen (e.g., a message is displayed) 2 weeks after this trigger is activated.
And another question: can I place the Tear of Ashi on the map as an artifact? I mean, not buried, but like all the other artifacts.
I wouldn't mind if you provided more details.
No need for specific details... Here's what I need: There's a Trigger(OBJECT_TOUCH_TRIGGER, ...). I need something to happen (e.g., a message is displayed) 2 weeks after this trigger is activated.
flagDate=0;
function Func()
if flagDate==0 then
flagDate=GetDate(ABSOLUTE_DAY)+14;
end;
end;
Trigger(OBJECT_TOUCH_TRIGGER, "Object","Func");
function FND()
if flagDate==GetDate(ABSOLUTE_DAY) then
MessageBox(GetMapDataPath().."Text.txt");
end;
end;
Trigger(NEW_DAY_TRIGGER, "FND");
NHF 0.90 : NHF - группа в VK
Карты для HeroesV:
Путешествие , Условие крови , Рука судьбы.Часть 1: В поход , Рука судьбы.Часть 2: Отчаянье , Рука судьбы.Часть 3: Восхождение , Стойкость
Абсолютная власть , Иду на Вы! , Корона Ургаша , На задворках
Мир надо уничтожить... Чтобы создать свой...
What is flagDate?
NHF 0.90 : NHF - группа в VK
Карты для HeroesV:
Путешествие , Условие крови , Рука судьбы.Часть 1: В поход , Рука судьбы.Часть 2: Отчаянье , Рука судьбы.Часть 3: Восхождение , Стойкость
Абсолютная власть , Иду на Вы! , Корона Ургаша , На задворках
Мир надо уничтожить... Чтобы создать свой...
And regarding
And another question: is it possible to place Ashera's Tear on the map as an artifact? I mean, not buried, but like all the other artifacts.
Thank you! Now I understand everything...
And by the way, do you happen to know anything about it?
Although, it's possible that the Ash object lacks active tiles, and they need to be added...
NHF 0.90 : NHF - группа в VK
Карты для HeroesV:
Путешествие , Условие крови , Рука судьбы.Часть 1: В поход , Рука судьбы.Часть 2: Отчаянье , Рука судьбы.Часть 3: Восхождение , Стойкость
Абсолютная власть , Иду на Вы! , Корона Ургаша , На задворках
Мир надо уничтожить... Чтобы создать свой...
Цикл "Закадычные враги": "Особенное гостеприимство, "Супероружие", "Меж молотом и наковальней"
"Падение Шантири"
Кампания для "Кодекса Войны"
"Выбор Сагиттеля"
Although, it's possible that the artifact lacks active tiles, so they need to be added...
That's quite possible. The Tear doesn't actually have any active tiles, but I don't think it has a visual model either.
NHF 0.90 : NHF - группа в VK
Карты для HeroesV:
Путешествие , Условие крови , Рука судьбы.Часть 1: В поход , Рука судьбы.Часть 2: Отчаянье , Рука судьбы.Часть 3: Восхождение , Стойкость
Абсолютная власть , Иду на Вы! , Корона Ургаша , На задворках
Мир надо уничтожить... Чтобы создать свой...