Hi, Whenever I test out my choices, my 2nd choice dialogue shows after my first choice dialogue,when it should only show when I choose it.
I'm sure the answer is something simple,i've overlooked,but I can't find it. If someone could help me I would be really grateful.
I have it scripted like this:
menu:
"Get involved":
jump get_involved
"dont get involved":
jump dont_get_involved
label get_involved:
m "Maybe they were fine until you started picking at them"
f "The training school is the other way little noisy wanabe knight."
"grrrrr"
label dont_get_involved:
m "Hey,look at that deal on fabrics!"
(solved)menu choice 2nd choice dislogue showing
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
- JitterySlob
- Newbie
- Posts: 8
- Joined: Wed Apr 13, 2016 4:37 pm
- Contact:
(solved)menu choice 2nd choice dislogue showing
Last edited by JitterySlob on Wed Aug 03, 2016 7:33 am, edited 1 time in total.
- trooper6
- Lemma-Class Veteran
- Posts: 3712
- Joined: Sat Jul 09, 2011 10:33 pm
- Projects: A Close Shave
- Location: Medford, MA
- Contact:
Re: menu choice dialogue problems
The program goes from top to bottom unless you tell it otherwise. So in your code:
So you start at the menu on line 1. Let's say your choose don't get involved at line 5. Line 6 will jump you to line 11. Then you continue on from there, to line 12.
What happens if you pick Get involved on line 3? Line 4 jumps you to line 7. Then the computer continues on from there to line 8...and then line 9...and then line 10...and then...because you haven't told it to do anything different, it goes on to line 11, then 12. If you don't want it to go to line 11 after line 10, you need to put in a jump to where you want it to go. Something like:
Or something along those lines.
Code: Select all
label start: #1
menu: #2
"Get involved": #3
jump get_involved #4
"dont get involved": #5
jump dont_get_involved #6
label get_involved: #7
m "Maybe they were fine until you started picking at them" #8
f "The training school is the other way little noisy wanabe knight." #9
"grrrrr" #10
label dont_get_involved: #11
m "Hey,look at that deal on fabrics!" #12
What happens if you pick Get involved on line 3? Line 4 jumps you to line 7. Then the computer continues on from there to line 8...and then line 9...and then line 10...and then...because you haven't told it to do anything different, it goes on to line 11, then 12. If you don't want it to go to line 11 after line 10, you need to put in a jump to where you want it to go. Something like:
Code: Select all
label start:
menu:
"Get involved":
jump get_involved
"dont get involved":
jump dont_get_involved
label get_involved:
m "Maybe they were fine until you started picking at them"
f "The training school is the other way little noisy wanabe knight."
"grrrrr"
jump after_choice1
label dont_get_involved:
m "Hey,look at that deal on fabrics!"
jump after_choice1
label after_choice1:
"And so we went of with our day."
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
*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
- JitterySlob
- Newbie
- Posts: 8
- Joined: Wed Apr 13, 2016 4:37 pm
- Contact:
Re: menu choice 2nd choice dislogue showing
Ah,thank you!
Who is online
Users browsing this forum: Bing [Bot], Google [Bot]
