Skip to content

Posts from How to create a quest with a region.

No ratings yet — be the first to rate!
User Avatar
5 years ago
Auto-translated
Hello. I have a question: is it possible to create a quest that is automatically completed when the player enters a specific region? If this is possible, could you please provide instructions on how to do it?
User Avatar
5 years ago
Auto-translated
function ObjectiveComplete(hero) if hero=="your hero's name" then SetObjectiveState("Scripted quest name", OBJECTIVE_COMPLETED, PLAYER_Player number) end end; Trigger(REGION_ENTER_AND_STOP_TRIGGER, "Region name", "ObjectiveComplete") ``` Please ask similar small questions in the appropriate "Scripts" and "Current questions and answers about the map editor" topics, so as not to create new topics.
In reply to }{0TT@6bI4
User Avatar
5 years ago
Auto-translated
}{0TT@6bI4
function ObjectiveComplete(hero)
if hero=="your hero's name" then
SetObjectiveState("Scripted quest name", OBJECTIVE_COMPLETED, PLAYER_Player number)
end
end;

Trigger(REGION_ENTER_AND_STOP_TRIGGER, "Region name", "ObjectiveComplete")

Please ask similar small questions in the appropriate topics: Scripts and Current questions and answers about the map editor, so as not to create new topics)
Okay, and thank you very much 😀

Statistics

Welcome our newest member: recijeb