Skip to content

Current questions and answers regarding the map editor.

User Avatar
#5072
Auto-translated
Narhiz
How to set a time limit for completing a quest.
When the quest is received, save the current day:
quest_start_time = GetDate(ABSOLUTE_DAY);
Using a trigger for a new day, check if the time has expired:
Trigger(NEW_DAY_TRIGGER, 'NewDay');
function NewDay()
if ((check if the quest is active) and (GetDate(ABSOLUTE_DAY) >= (quest_start_time+1))) then
fail the quest
end
end
РПГ-сценарий для HoMM5: Путь героя
ЧаВо по созданию карт для HoMM5: ЧаВо

Statistics

Welcome our newest member: dylanyamaha