Trouble with Remembering Menu Choices
Posted: Mon Jan 18, 2016 5:24 pm
I wouldn't have considered asking a question here usually, as I've been thoroughly locating tutorials and what not as I'm incredibly new to this program, and just as new to programming in general.
However I am at a loss where to find help with this any more, so I thought I'd ask here.
I've erased all the irrelevant information below, but here is the jist of what's going on in my code:
The aim is that if the value of onyu is more than 1 then it will cycle back round to the previous menu but with the option to interact with him erased.
I've tried all manner of indentations, arrangements and now I'm just at a loss.
The script seems to work back all right, and works with the value of onyu changing, but the option in the menu isn't hidden upon the second time going round after changing onyuarc to true.
Am I missing something here?
However I am at a loss where to find help with this any more, so I thought I'd ask here.
I've erased all the irrelevant information below, but here is the jist of what's going on in my code:
Code: Select all
label start:
$ onyuarc = False
#various script in-between here
label menu_choice:
menu:
if onyuarc == False:
"Talk to Onyu":
"You decide to try talking to No Onyu. He might seem a little strange, but maybe he has some answers."
jump choiceonyu
#various script in-between here
menu:
"Option 1":
y "Blah blah."
jump choice_onyucontinue1
"Option 2":
y "Blah blah.."
if onyu < 1:
jump choice_onyufight
if onyu > 1:
$ onyuarc = True
jump choice_onyuend
"Option 3?":
o "Blah blah?"
jump choice_onyucontinue1
label choice_onyuend:
o "I give up!"
jump menu_choice
I've tried all manner of indentations, arrangements and now I'm just at a loss.
The script seems to work back all right, and works with the value of onyu changing, but the option in the menu isn't hidden upon the second time going round after changing onyuarc to true.
Am I missing something here?