Then I want the game to end. Well, so far, that just means maybe printing a message,
ran away." Stick with that for now. Because currently this is just running once, that means the script ends here. It’s just a sequential run of code.
And now if the action is
"R", the player ran away and the game ends, let’s give it a try. All right, I want to run,
r, ran away. But as you saw before, attack and heel also ended the script, which of course isn’t great.
Become a Member to join the conversation.