Code: Select all
label LPMenu:
"What would you like to do?"
menu:
"Repeat Goal Sequence (1 of %(lpmenu_choices)i)":
jump LPPlayGoalSequence
"Edit piano function (2 of %(lpmenu_choices)i)":
jump LPPiano
if flen > 0:
"Edit flute function (3 of of %(lpmenu_choices)i)":
jump LPFlute
if glen > 0:
"Edit guitar function (%(functions + 1)i of %(lpmenu_choices)i)":
jump LPGuitar
"Test my answer (%(lpmenu_choices - 1)i of %(lpmenu_choices)i)":
jump LPAnswer
"Exit Level (%(lpmenu_choices)i of %(lpmenu_choices)i)":
if level == -1: #just built with level-editor
jump leditor #return them to the level editor
elif level == 0: #loaded from code
jump leditM
else: #built-in level
jump startCode: Select all
File "game/level_player.rpy", line 36: expected menuitem
if flen > 0:
^