Here is the relevant code:
[code]Game Room is a room.
A scene can be gamelike.
Choosing a Game is a scene. BJ is a scene. FCD is a scene. W is a scene. TH is a scene. GF is a scene.
BJ, FCD, W, TH, and GF are gamelike.
Cardgame is a kind of value. The cardgames are nogame, Blackjack, Five Card Draw, War, Texas Hold Em, and Go Fish.
Understand “black” or “jack” or “black jack” as blackjack. Understand “five” or “card” or “draw” or “five card draw” or “five card” as Five Card Draw. Understand “texas” or “hold em/them” or “texas hold em/them” as Texas Hold Em. Understand “go” or “fish” or “go fish” as Go Fish.
Current game is a cardgame that varies. Current game is nogame.
Picking a game is an action applying to one value. Understand “let’s play” or “lets play” or “choose” as “[play]” when Choosing a Game is happening. Understand “game of” or “round of” or “hand of” as “[game of]” when Choosing a Game is happening. Understand “a [game of]” as “[a game of]” when Choosing a Game is happening. Understand “a” or “some” as “[some]” when Choosing a Game is happening. Understand “[a cardgame]” or “[play] [a cardgame]” or “[play] [a game of] [a cardgame]” or “[some] [a cardgame]” or “[play] [some] [a cardgame]” as picking a game when Choosing a Game is happening.
Understand “pick [a cardgame]” or “play [a cardgame]” or “play [some] [a cardgame]” or “pick [some] [a cardgame]” or “play [a game of] [a cardgame]” or “pick [a game of] [a cardgame]” as picking a game when Choosing a Game is happening.
Carry out picking a game:
if the cardgame understood is:
– Blackjack:
now the current game is BlackJack;
– Five Card Draw:
now the current game is Five Card Draw;
– War:
now the current game is War;
– Texas Hold Em:
now the current game is Texas Hold Em;
– Go Fish:
now the current game is Go Fish.
Choosing a Game begins when play begins. Choosing a Game ends when current game is not nogame… BJ begins when current game is Blackjack. FCD begins when current game is Five Card Draw. TH begins when current game is Texas Hold Em. W begins when current game is War. GF begins when current game is Go Fish.
When a gamelike scene begins:
say “Alright, [current game] it is.”
When Choosing a Game begins:
say “‘What do you want to play: Blackjack, Five Card Draw, War, Texas Hold Em, or Go Fish?’”.
Instead of doing something other than picking a game during Choosing a Game:
say “It’s not the time for that. Pick a game: Blackjack, Five Card Draw, War, Texas Hold Em, or Go Fish.”;
[/code]
But it doesn’t work properly when the player types “go fish” or “hold em” I assume because the game matches the command to the going and the taking actions. How do I fix this?
Any advice would be greatly appreciated!