From 8299f0f1cba0f8d420bf7584fb43866877254f6a Mon Sep 17 00:00:00 2001 From: Bill Rossi Date: Tue, 21 Jan 2025 19:57:00 -0500 Subject: [PATCH] Help and stuff --- 01_text_adventure/data/actions.txt | 2 ++ 01_text_adventure/data/room_ins.txt | 4 ++-- 01_text_adventure/data/words.txt | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/01_text_adventure/data/actions.txt b/01_text_adventure/data/actions.txt index 9aa097b..e9b4b7d 100644 --- a/01_text_adventure/data/actions.txt +++ b/01_text_adventure/data/actions.txt @@ -1,5 +1,7 @@ QUIT | * | 1000 | Bye! | QUIT_GAME() LOOK | * | 1 | * | LOOK_ROOM() +HELP | * | 1 | Type commands to explore the environment. Use 'LOOK' to examine the room you're in, or 'LOOK ' to examine an item closely. 'N', 'S', 'E', and 'W' will move you in the four cardinal directions, and 'I' will let you check your inventory. The parser is not very advanced, so do your best. 'Q', 'QUIT', or 'EXIT' will let you quit. | +INVENTORY | * | 1 | Your inventory is empty. | NORTH | * | 1 | You can't go north from here. | SOUTH | * | 1 | You can't go south from here. | EAST | * | 1 | You can't go east from here. | diff --git a/01_text_adventure/data/room_ins.txt b/01_text_adventure/data/room_ins.txt index 79a2926..9ec1d02 100644 --- a/01_text_adventure/data/room_ins.txt +++ b/01_text_adventure/data/room_ins.txt @@ -1,4 +1,4 @@ -FIRST_ROOM | * | 1 | This is a plain room. A doorway is on the north wall, and a portcullis obstructs a doorway to the east. -FIRST_ROOM | ENABLED(LEVER_PULLED) | 10 | This is a plain room. A doorway is on the north wall, and the doorway once obstructed by the portcullis is to the east. +FIRST_ROOM | * | 1 | You are in a plain room. A doorway is on the north wall, and a portcullis obstructs a doorway to the east. +FIRST_ROOM | ENABLED(LEVER_PULLED) | 10 | You are in a plain room. A doorway is on the north wall, and the doorway once obstructed by the portcullis is to the east. SECOND_ROOM | * | 1 | This is a small room. It's painted blue. There's a doorway on the south wall, and a conspicuous lever in the middle of the floor. LAST_ROOM | * | 1 | This room is in disrepair. A doorway is open to the west. diff --git a/01_text_adventure/data/words.txt b/01_text_adventure/data/words.txt index 4103100..900c322 100644 --- a/01_text_adventure/data/words.txt +++ b/01_text_adventure/data/words.txt @@ -7,3 +7,5 @@ SOUTH|SOUTH,S EAST|EAST,E WEST|WEST,W LOOK|LOOK,L +INVENTORY|INVENTORY,I,INV +HELP|HELP,H