ON_END_ALLHEROES
This event is triggered when all the heroes finish the quest.
- Example 1 :
{[[(I), ON_END_ALLHEROES]] You accomplished your mission. You can now return to the capital city and refer to the king what you discovered}
- Example 2 :
{[[(I), ON_END_ALLHEROES]] [[IF: QUEST_OBJECTIVE_COMPLETED = 1]] You accomplished your mission. You can now return to the capital city and refer to the king what you discovered [[QUEST_COMPLETE]] [[ELSE]] You escaped from the dungeon without the information you were looking for. Shame on you! [[QUEST_FAILED]] [[ENDIF]]}
In Example 1, as soon as all heroes exit from the stairs (by default, exiting the dungeon), the message “You accomplished your mission. You can now return to the capital city and refer to the king what you discovered” will be shown.
Example 2 uses a more complex action by checking if a certain objective has been completed. If it is completed, the text “You accomplished your mission. You can now return to the capital city and refer to the king what you discovered” will appear, and the quest will be completed. Otherwise, the text “You escaped from the dungeon without the information you were looking for. Shame on you!” will appear, and then the quest will fail. For the usage of IF, QUEST_OBJECTIVE_COMPLETED, QUEST_COMPLETE, and QUEST_FAILED, refer to the Actions List below.
