Passa al contenuto principale

ON_END_ALLHEROES

ON_END_ALLHEROES

Questo evento si attiva quando tutti gli eroi terminano la quest.

  • Esempio 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}
  • Esempio 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]]}
Nell’Esempio 1 mostrato sopra, non appena tutti gli eroi escono dalle scale (di default, l’uscita dal dungeon) verrà mostrato il messaggio “You accomplished your mission. You can now return to the capital city and refer to the king what you discovered”. L’Esempio 2 sfrutta un azione più complessa e cioè verifica che un certo obiettivo sia stato completato. Se lo è, comparirà il testo “You accomplished your mission. You can now return to the capital city and refer to the king what you discovered” e sarà completata la Quest. Altrimenti comparirà il testo “You escaped from the dungeon without the information you were looking for. Shame on you!”, dopodiché la Quest sarà fallita. Per l’utilizzo di IF, QUEST_OBJECTIVE_COMPLETED, QUEST_COMPLETE, e QUEST_FAILED, vedi più avanti nell’Elenco di Azioni.