*temp player_draw
*temp opponent_draw
*temp player_lock “”
*temp opponent_lock “”
*temp player_total 0
*temp opponent_total 0
*temp gofishTotalScore “”
*page_break
*label gofish
Choose a player!
*choice
#Samuel
Samuel grins at this.
*set npc1 true
*goto round1
*label round1
*page_break
As ${name} draws a card, you wait patiently for your rival to draw their next card…
*page_break
You click to pick up your next card…
*rand player_draw 1 21
*rand opponent_draw 1 21
*goto gofishTotalScore
*label gofishTotalScore
*if (player_draw >= 21)
Since you are at 21 you hold and wait for ${npc1}'s turn.
*page_break
*goto round2
*elseif (player_lock) true
Having stood at your [b]${player_total}[/b], you wait for ${npc1}'s move.
*goto round2
*set player_total + player_draw
You drew [b]${player_draw}[/b] in this round.
*line_break
*goto round2
Your current amount: [b]${player_total}[/b].
*if (player_draw <= 21)
Since you are at less than 21 you hold and wait for your opponent’s turn.
*set player_lock true
*page_break
*goto round2
*label round2
*if (opponent_draw >= 21)
Since ${npc1} is at 21, they hold and wait for ${name}'s turn.
*page_break
*goto round3
*elseif (opponent_lock) true
Since ${npc1} is at [b]less than 21[/b], ${npc1} wait for ${name}'s move.
*page_break
*set opponent_total + opponent_draw
${npc1} drew [b]${opponent_draw}[/b] in this round.
*page_break
*if (opponent_draw <= 21)
Since ${npc1} is at less than 21 they hold and wait for ${name}'s move.
*set opponent_lock true
*page_break
*goto round3
*label round3
${name}'s current amount: ${player_total}
*if (player_draw <= 21)
Since you are at less than 21 you hold and wait for your opponent’s turn.
*page_break
*goto finalround
*elseif (player_lock) true
Having stood at [b]${player_total}[/b], you wait for ${npc1}'s move.
*page_break
*set player_total + player_draw
You drew [b]${player_draw}[/b] in this round, ${name}! Your total is ${player_total}!
*goto finalround
*label finalround
*if (player_total >= opponent_total)
${name}: ${player_total}
${npc1}: ${opponent_total}
${name} has won the game!
*page_break
Would you like to try again, ${name}?
*choice
#Yes
Then let’s begin!
*goto gofish
#No
Ok, everyone’s tired of Gofish, ${name}…
*goto_scene dorms
*elseif (opponent_total >= player_total)
${name}: ${player_total}
${npc1}: ${opponent_total}
${npc1} has won the game!
*page_break
Would you like to try again, ${name}?
*choice
#Yes
Then let’s begin!
*goto gofish
#No
Ok, everyone’s tired of Gofish, ${name}…
*goto_scene dorms