Not sure I'm interpreting your variables right, but you can add your
if statements to each menu item, such that it will only be displayed on screen if those conditions are met. Something like:
Code: Select all
menu:
"Chizza" if croute >= 1:
jump chizzaEnding
"Macy" if froute >= 1:
jump macyEnding
"Mariel" if droute >= 1:
jump marielEnding
"Edna" if nroute >= 1:
jump ednaEnding
"Chizza and Macy" if croute >=1 and froute >=1:
jump chizzaMacyEnding
"Chizza and Mariel" if croute >=1 and droute >=1:
jump chizzaMarielEnding
"Chizza and Edna" if croute >=1 and nroute >=1:
jump chizzaEdnaEnding
"Macy and Mariel" if froute >=1 and droute >=1:
jump macyMarielEnding
"Macy and Edna" if froute >=1 and nroute >=1:
jump macyEdnaEnding
"Mariel and Edna" if droute >=1 and nroute >=1:
jump marielEdnaEnding
It's still going to end up pretty long code-wise, depending on how many characters you have but, on the upside, as you list the pairings, there's one fewer each time, since the preceding characters have already dealt with some of the permutations.
I'm still wrapping my head around menus myself, but I think the 'unexpected menu item' is the
if statement
preceeding the menu item.