==[ Terminal ]== [SYSTEM] VM Halted. State preserved on disk. $ cat game_idea.mdB ```fso-state VAR INVENTORY STR "[]" VAR ISLAND_KEY STR "FALSE" VAR TREASURE_FOUND STR "FALSE" VAR VERB STR "DIG" VAR ARG1 STR "" VAR ARG2 STR "" ``` ```fso-code LBL start_game GLOBAL "HELP" handle_help GLOBAL "LOOK" room_beach LBL room_beach ENV_FLUSH OUT "You are on a deserted beach. To the north is a dense jungle, and to the east is a rocky cave." EXIT "NORTH" room_jungle EXIT "EAST" room_cave ACTION "SEARCH" handle_search AWAIT OUT "I do not understand." JMP room_beach LBL room_jungle ENV_FLUSH OUT "You are in a dense jungle. To the south is the beach, and to the west is a hidden clearing." EXIT "SOUTH" room_beach EXIT "WEST" room_clearing ACTION "SEARCH" handle_search AWAIT OUT "I do not understand." JMP room_jungle LBL room_cave ENV_FLUSH OUT "You are in a dark cave. There is a locked chest in the center." EXIT "WEST" room_beach ACTION "SEARCH" handle_search ACTION "OPEN" handle_open AWAIT OUT "I do not understand." JMP room_cave LBL room_clearing ENV_FLUSH OUT "You are in a hidden clearing. There is a small wooden chest here." EXIT "EAST" room_jungle ACTION "SEARCH" handle_search ACTION "OPEN" handle_open AWAIT OUT "I do not understand." JMP room_clearing LBL handle_search JMP_IF TREASURE_FOUND TRUE found_treasure JMP_IF ISLAND_KEY FALSE found_key OUT "You search the area but find nothing of interest." JMP room_beach LBL found_key VAR ISLAND_KEY BOOL 'TRUE' OUT "You found a key!" JMP room_cave LBL found_treasure OUT "You found a treasure chest!" VAR TREASURE_FOUND BOOL 'TRUE' JMP room_beach LBL handle_open JMP_IF ISLAND_KEY TRUE open_chest OUT "The chest is locked. You need a key to open it." JMP room_beach LBL open_chest OUT "You open the chest and find a valuable artifact!" JMP room_beach LBL handle_help OUT "Type directions to move, or verbs to interact." AWAIT ``` <end_of_turn>$B ==[ /Terminal ]==