Alright, so let's pretend we have a menu.
Code: Select all
menu:
"Are you a boy or a girl?"
"I'm a boy.":
"You get to wear the blue shirt!"
"I'm a girl.":
"You get to wear the red shirt!"
"I identify as a helicopter." if WeirdosAllowed == 1:
"You get to wear this... metal... sheet...?"Let's say we'd want the "say" statement (That is currently "Are you a boy or a girl?") affected by our variable. How would we do that?
Code: Select all
menu:
"Are you a boy or a girl?" if WeirdosAllowed == 0
"Are you a boy, girl or a helicopter?" if WeirdosAllowed == 1
"I'm a boy.":
"You get to wear the blue shirt!"
"I'm a girl.":
"You get to wear the red shirt!"
"I identify as a helicopter." if WeirdosAllowed == 1:
"You get to wear this... metal... sheet...?"Code: Select all
menu:
if WeirdosAllowed == 0:
"Are you a boy or a girl?"
else:
"Are you a boy, girl or helicopter?"
"I'm a boy.":
"You get to wear the blue shirt!"
"I'm a girl.":
"You get to wear the red shirt!"
"I identify as a helicopter." if WeirdosAllowed == 1:
"You get to wear this... metal... sheet...?"So, is there a way how to make the "say" depend on a variable?

