Objectives (Scripting)

Objectives are relatively simple to create and maintain from within Map Events scripts or GameScripts.

Commands you need to know are: setObjective("id", "shorttext", "longtext"); completeObjective("id", ticked, alert); failObjective("id", crossed, alert);

Save Kelgo
In the below example, an objective is added that is un-clickable, since it has no longtext assigned to it. setObjective("saveKelgo", "Save Kelgo from the Goblins!"); In the event of Kelgo being saved, the following code should be called: completeObjective("saveKelgo"); In the event of Kelgo dying, the following code should be called: failObjective("saveKelgo");