My game has a lot of “After reading a command: if the player’s command includes ‘keyword’” in it. There probably was a more elegant way to do this, but this is the way I did it, and it’s a Petite Mort, so I don’t have a lot of time to change the structure, which is working like I want it to.
But I’d like to change things about the game’s state after a certain number of turns (I have a gamenumber that decrements with each turn so that if the player tries a certain action, it will only trigger after a certain amount of turns). Of course, the parser isn’t reading those “after reading a command” keywords the player inputs as turns. Is there an easy way to get the parser to understand anything the player types as a turn? Something that takes, very, very little time to implement?