Yes you can include menus inside of an if statement. You can also include quite a lot of stuff in your menus as well. I took a look at your large chunk of code...and mostly I'm seeing lots of errors in your indentation (you can't have labels inside labels, for example). And if you have errors in your indentation, then your game is not going to work.
Other things I noted:
-initialize your variables using default
-you don't need those labels for the various small things the person says after you choose a menu option, you can just put that dialogue in the menu.
-when you have two+ options and the answer can't be more than one of those options, use if/elif/else. It is more efficient.
Anyway, here is my rewrite of your code. Tested and it works.
Code: Select all
# Declare characters used by this game.
define a = Character('A', color="#c8ffc8")
define b = Character('B', color="#c8ffc8")
define c = Character('C', color="#c8ffc8")
define t = Character('T', color="#c8ffc8")
#Use default to declare your variable
default front = False
default middle = False
default back = False
default name = "Protag"
# The game starts here.
label start:
c "Where are you going to sit?"
menu:
"front":
$ front = True
a "You're sitting with me? Ok then."
"middle":
$ middle = True
b "The seat next to me is free if you want."
"back":
$ back = True
c "You can't see clearly at the back but it's the bext place to get a nap."
t "Alright then,there's gonna be a new student here. Meet D."
if front:
a "What do you think of him, [name]?"
menu:
"Not bad.":
a "I guess he is not that bad."
"...":
a "Answer something."
"I like you more.":
a "Well I'm glad not being replaced by him."
elif middle:
b "A new kid huh? What do you think of him?"
menu:
"I don't know.":
b "Hard to say huh?"
"He looks weird.":
b "You think so?"
"Meh...":
b "That's kinda mean."
else:
c "Troublesome..."
menu:
"Indeed.":
c "I know right?"
"Seriously?":
c "What? I'm lazy."
"Not really.":
c "Still so troublesome."
t "Well, that's it, I guess. On to class."
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe:
http://lemmasoft.renai.us/forums/viewto ... 51&t=21978