Example: quest | AI Dungeon

Example: quest

Keywords("Galdoria"):{ "information type": "quest "; "self.quest_type": "retrieve_item"; "self.item to be retrieved": "ring of galdoria"; "self.started" : "false "; "self.finished": "false"; "quest_giver": "Richard Ramboli"; "self.rewards":{ update(player.self.quest_points +=5); update(player.self.exp_points +=100); update(player.self.dollars +=250); }; { If(player.self chooses to accept the quest from the "quest_giver") == true): Set galdoria.self.started: true; } Objectives :{ "Objective_1": {description:( player must enter the Zandoria mountains); If(player.self.current_region = "zandoria_mountains"): set(galdoria.self.objective_1: complete); Else: print("this is the wrong region to continue the quest"); }; Objective_2": {description:( player must enter the Ruins of Galdoria); If(player.self.current_region = "Ruins_of_Galdoria): set(galdoria.self.objective_2: complete); If(("ring of galdoria_set") == False) & ("galdoria.self.started") ==true): add_item("ring of galdoria") to the item("galdoria_ruins_chest"); set("ring of galdoria_set": true); }; Else: print("this is the wrong region to continue the quest"); }; "Objective_3": {description:( player must explore the Ruins of Galdoria and find the item); If(player.self.has_item("ring of galdoria") = true; set(galdoria.self.objective_3: complete); Inform the player to return to Richard Ramboli for their reward; }; "Objective_4": {description:( player must return to Richard Ramboli for their reward); On Approach(Richard Ramboli): take item(player.self.inventory("ring of galdoria"); Award player("self.rewards"): true; set galdoria.self.finished: true; Richard Ramboli thanks the player for finding and returning the ring of galdoria; }; };

Cover art for Example: quest , a quest scenario on AI Dungeon