Right now, I have monkeypatched this solution:
Code: Select all
screen home_morn():
tag menu1
imagebutton auto "gui/iconarm_%s.png" xalign 0.6 yalign 0.15 focus_mask True hovered tt.Action("One of Somalaire's blacksmiths is prepared to teach me about armouring. Cost: 200c") action If ( (Money >= 200), true = [SetVariable("morning", "Arm"), Return()], false = Jump ("needmoney"))
#the Return () statement takes them back to the code in script/rpy, which then checks the variables and runs the corresponding event
#and then later on...
label needmoney:
Le "I can't afford this..."
jump day #this brings back the home_morn screen
1) when it jumps to the needmoney label, the home_morn screen menu disappears. I want to stay on the home_morn menu AND have the dialogue appear at the bottom of the screen
2) I'm sure there are more elegant ways of doing this than jumping around a bunch of labels. What I basically want to do is this...
Code: Select all
imagebutton auto "gui/iconarm_%s.png" xalign 0.6 yalign 0.15 focus_mask True hovered tt.Action("One of Somalaire's blacksmiths is prepared to teach me about armouring. Cost: 200c")
if Money >= 200:
action [SetVariable("morning", "Arm"), Return()]
else:
Le "I can't afford this..."
action NullAction