conditionally show a menu item?
Posted: Sat May 28, 2011 12:19 am
To simulate a conversation I am trying to invoke a new menu item as one gets more information.
I have tried numerous attempts but I cannot seem to find a simple way to do this. (either code becomes spaghetti or unnecessarily long)
I was thinking of something like;
etc etc
is there a way to incorporate the presence of certain menu items using python boolean expressions?
I have tried numerous attempts but I cannot seem to find a simple way to do this. (either code becomes spaghetti or unnecessarily long)
I was thinking of something like;
Code: Select all
$knowledge = 0
menu conversation:
if knowledge > 0 && knowledge < 2:
"I know this"
$ knowledge += 1
jump conversation
is there a way to incorporate the presence of certain menu items using python boolean expressions?