Skip to content

Current questions and answers regarding the map editor.

#5073
Auto-translated
Jack_of_shadows
When you receive the quest, save the current day:
quest_start_time = GetDate(ABSOLUTE_DAY);
Using a trigger for a new day, check if the time has elapsed:
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

Thank you.

Added 59 minutes later
How do you create a quest with sub-quests, i.e., so that one quest includes 3 others, for example? And so that it is considered completed when all 3 of these quests are completed.