Global Game Over Prompt #757
Unanswered
ronombao24
asked this question in
Writing in ink
Replies: 1 comment
-
You can pass diverts into knots. For example, you could do this -
Then, when you want to use gameOver, you can say -
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello. How to create a global game over stitch that happens when a specific scenario is met?
I have this code fragment that I made, for instance:
`//START OF GAME OVER
//Prints a game over message, then it asks for the player to restart from the current knot.
~game_over=false
->GameOverInit
=GameOverInit
->DONE
=GameOver(state)
~state=game_over
->game_over_message->
->->
=game_over_message
{
- game_over:
Your journey comes to an end. Do you want to restart from the current knot?
*YES
~game_over=false
->->
*NO
GAME OVER!
->END
}
//END OF GAME OVER`
But I don't know how to make the "YES" prompt redirect to the current knot that the game over happened. For example, the game over happens at a scenario when the player dies from a fall, then the player will be given an option to restart from the current knot (the_knot) or not.
Beta Was this translation helpful? Give feedback.
All reactions