but
I don't know how to have the button start a label or an action of my own?
This is ..what I have. I know it's wrong. Am I close though?
Code: Select all
screen action_screen:
frame xalign 1.0 yalign 0.0:
has vbox
hbox:
if "Candy Bar" in items:
textbutton "Eat Candy Bar" action jump label eat_candy_bar
vbox xalign 0.9 yalign 0.370:
textbutton "Done" action Return()
label action_screen_label:
call screen action_screen
return
label eat_candy_bar:
$ items.remove("Candy Bar")
show screen intelligence_screen
$ intelligence += 1
hide screen intelligence_screenFor example like in my code, I want to have an inventory of something. I have an action button and inventory button.
The inventory button just shows what I have. I wasn't sure how to make it so the text that is added to the inventory could actually be interactive so I just created an action button that will open up a list of buttons to interact with.
if the character has a candy bar in their inventory, it will show up and they can consume it and it is taken from their inventory and they gain points from it etc.
How would I go about making this work?
Or to just simply make the inventory list items be interactive instead so I don't need an action button?
Just have the person open their inventory and can click on the item and use it?
I've tried looking this up but I haven't had any luck.
Thank you!

