Im trying to set a Menu depending on certain things during the game... example, this is the original code:
Code: Select all
$ picturetaken = False
label label_1
"{i}She is taking walking by, what do you want to do?{/i}"
menu:
"Leave before she see you":
jump label_2
"Take a picture":
jump label_3
label label_3
$ picturetaken = True
play sound "sounds/fx/takepicture.mp3"
"{i}I hope she didn't notice me{/i}"
"{i}I better leave quickly...{/i}"
jump label_1
label label_2
"{i}I better leave...{/i}"
jump next_scene
So, after you take the picture, I want to remove the "Take a picture" option... so, if I do this:
Code: Select all
menu:
"Leave before she see you":
jump label_2
if not picturetaken:
"Take a picture":
jump label_3
Code: Select all
File "game/historias.rpy", line 1438: expected menuitem
if not picturetaken:
^