The problem I have is absolutely crucial for me and if I won't be able to solve it, my entire design will have to be changed significantly. I was hoping that you could try to help me, I really tried for hours now and looking for answers didn't change anything at all.
Here are two simple buttons from a screen, just an example for the purpose of this post:
Code: Select all
imagebutton:
idle "gui/attitudes/image.png"
action [SetVariable("at_friendly", 1)]
imagebutton:
idle "gui/attitudes/image.png"
action [SetVariable("at_friendly", 0)]
Code: Select all
'unrelated dialogue line'
menu:
'intro to the actual choice'
'option is displayed only' if at_friendly:
jump afterchoice01
'option is always displayed':
jump afterchoice02
Code: Select all
# buttons are displayed, I can click them to set ~~at_friendly~~ to either True or False
'unrelated dialogue line'
menu:
'intro to the actual choice'
'option is displayed only' if at_friendly: # this either disappears or displays itself depending on the value of the variable. so if I go for True, it shows up, if I press the "0" button, it instantly disappears
jump afterchoice01
'option is always displayed':
jump afterchoice02
Code: Select all
# buttons are displayed, everything works fine
'unrelated dialogue line' # if I use my buttons to set the at_friendly to True here, the dialogue option in the next menu shows up. if not, it doesn't show up.
menu:
'intro to the actual choice'
'option is displayed only' if at_friendly: # this doesn't refresh itself at all. it's either displayed or shown, based on the value of the variable that was set before I displayed this menu.
jump afterchoice01
'option is always displayed':
jump afterchoice02