[SOLVED!] Looping Back to the same menu with variable text
Posted: Sun Jun 17, 2018 10:37 pm
Hi, I'm working on a game about Laika the Soviet space dog, in which you play from Laika's point of view.
I have this menu that they player runs through in which they have to go through each menu choice before they can progress with the rest of the story. Here is what it looks like coded so far:
My question is, each time the player comes back to the menu - I want there to be a bit of text describing Laika's health condition inside of Sputnik 2.
I would like to have this done 2 parts, with the player reading one part and then the other the first and second time they come back to this menu. They player can play through these choices in whatever order they want. I am wondering how to add the description text of Laika's condition for the first and second time that they revisit this menu?
Thank you for reading! Any ideas or insights would be much appreciated.
I have this menu that they player runs through in which they have to go through each menu choice before they can progress with the rest of the story. Here is what it looks like coded so far:
Code: Select all
menu think:
laikasc "[thinking_text]"
"Home" if home_action_done == False:
$ home_action_done = True
$ thinking_text = "I should think about something else right now."
jump home
"The trip out" if trip_action_done == False:
$ trip_action_done = True
$ thinking_text = "I should think about something else right now."
jump trip
"The Big Noise" if noise_action_done == False:
$ noise_action_done = True
$ thinking_text = "I should think about something else right now."
jump noise
I would like to have this done 2 parts, with the player reading one part and then the other the first and second time they come back to this menu. They player can play through these choices in whatever order they want. I am wondering how to add the description text of Laika's condition for the first and second time that they revisit this menu?
Thank you for reading! Any ideas or insights would be much appreciated.