My code:
Code: Select all
default turn = "one"
screen turnOne:
frame:
imagebutton auto "pika.jpg" action (SetScreenVariable(turn, "two"))
screen turnTwo:
frame:
imagebutton auto "charmander.png" action (SetScreenVariable(turn, "three"))
screen turnThree:
frame:
imagebutton auto "cafe.jpg" action (SetScreenVariable(turn, "one"))
label start:
if turn == "one":
show screen turnOne
elif turn == "two":
show screen turnTwo
else:
show screen turnThree
e "..."
Help?
PS: If you know any way to dynamically change screen actions when some conditions are met in-game please let me know. For example, I have a textbutton say "Attack" and I want it to output different text based on certain conditions, like "HP = 100%", "<50%", "if evolution = True", etc.
I tried action If() and it would be suitable if I could chain it in some way, or have more than one If().
Thanks!