I have a problem with in-game menu.
Code for menu:
Code: Select all
menu menupokoj:
"-Ask Her How She's Doing- (10 gold) (ne)" if quest3 == True and quest3postup == 0 and zlataky < 10:
"nejde"
"-Ask Her How She's Doing- (10 gold)" if quest3 == True and quest3postup == 0 and zlataky >= 10:
call quest3_0
You can change the variable (zlataky) in the screen:
Code: Select all
screen statistikyhrac:
zorder 4
modal True
imagemap:
ground "gui/stats/statistikyhrac.png"
idle "gui/stats/statistikyhrac-idle.png"
hover "gui/stats/statistikyhrac-hover.png"
if zlataky>=5:
hotspot (702, 288, 100, 50) action [SetVariable("hvyjednavani", hvyjednavani+1), SetVariable("zlataky", zlataky-5) ]
I change variable so zlataky < 10 but the menu choice is still active. (picture 2)
I have to close mene and open it again and then the choice is not active any more. (picture 1)
Is there a way how to change menu choices imediately when I close screen?
Thank you