diff --git a/play.py b/play.py index 522bff2..4296131 100644 --- a/play.py +++ b/play.py @@ -53,7 +53,8 @@ def select_game(): def instructions(): text = "\nAI Dungeon 2 Instructions:" text += '\n* Enter actions starting with a verb ex. "go to the tavern" or "attack the orc."' - text += '\n* If you want to say something then enter \'say "(thing you want to say)"\'' + text += '\n* To speak enter \'say "(thing you want to say)"\' or just "(thing you want to say)" ' + text += '\n* Enter "revert" for any action if you want to undo the last action and result." text += '\n* Finally if you want to end your game and start a new one just enter "restart" for any action. ' return text @@ -99,9 +100,10 @@ def play_aidungeon_2(): story_manager.story.results = story_manager.story.results[:-1] print("Last action reverted. ") print(story_manager.story.results[-1]) + elif action[0] == '"': + action = "You say " + action - - if action != "": + elif action != "": action = action.strip() action = action[0].lower() + action[1:]