so ive included a couple menu flags so far, and used the if/else statements referring to them and all that. when playtesting, though, if i choose the option with the flag, it does that line then jumps immediately past the rest of the dialogue to the next menu
i dont know how to explain this properly, but i guess my question is how to end an else statement so i can jump back to the linear gameplay. sorry if im being confusing, im confused
if/else jumping to wrong part [SOLVED]
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.
-
- Newbie
- Posts: 7
- Joined: Sun Jun 17, 2018 10:46 am
- Tumblr: birdybirdnerd
- Contact:
if/else jumping to wrong part [SOLVED]
Last edited by birdybirdnerd on Mon Jul 23, 2018 11:00 pm, 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: if/else jumping to wrong part
Post your code please. We can’t say unless we see it.
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
- xavimat
- Eileen-Class Veteran
- Posts: 1461
- Joined: Sat Feb 25, 2012 8:45 pm
- Completed: Yeshua, Jesus Life, Cops&Robbers
- Projects: Fear&Love
- Organization: Pilgrim Creations
- Github: xavi-mat
- itch: pilgrimcreations
- Location: Spain
- Discord: xavimat
- Contact:
Re: if/else jumping to wrong part
Probably a problem with blocks, indentation and colon (:). Understanding these things in renpy/python is critical.
As trooper says, show your code, please. Put the code between [ code][/code] tags to preserve your indentation.
As trooper says, show your code, please. Put the code between [ code][/code] tags to preserve your indentation.
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)
-
- Newbie
- Posts: 7
- Joined: Sun Jun 17, 2018 10:46 am
- Tumblr: birdybirdnerd
- Contact:
Re: if/else jumping to wrong part
i figured it out, im sorry i forgot to respond. it was a problem with not giving the code a place to jump back to, so it jumped forward to the next place it could. thanks though
Who is online
Users browsing this forum: Google [Bot], Majestic-12 [Bot]