How do i make multiple choices/paths in ren py?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
Post Reply
Message
Author
justanormalperson
Newbie
Posts: 2
Joined: Thu Mar 10, 2016 3:21 pm
Contact:

How do i make multiple choices/paths in ren py?

#1 Post by justanormalperson » Thu Mar 10, 2016 3:27 pm

so i was just making my new visual novel and i got to the point to add a second choice/path to it. the first one went well and everything is fine, but when i did the second one and launched the game, it just ended after the last line of the first choice. is there anything (simple) i can add or do to fix this?
this is what my paths look like:

Code: Select all

menu:
    "Show toy":
        jump choice_attitude
    "be cool":
        jump choice_cool
        
label choice_attitude:
    "whata"
    "cake"
    "raps"
    jump choice_done
    
label choice_cool:
    "dinos"
    "coolaid"
    "pimpel"
    jump choice_done
    
    label choice_done:
its obviously not the real thing, its just an example of what i do to make a first choice, and then when i try to add another one it doesn't work as i said before.

User avatar
AnthonyPython
Newbie
Posts: 2
Joined: Tue Mar 01, 2016 8:34 pm
Completed: I don't seek laughter...
Projects: Kyōki
Organization: Anthony Games
Contact:

Re: How do i make multiple choices/paths in ren py?

#2 Post by AnthonyPython » Thu Mar 10, 2016 8:43 pm

Just do exactly like how you did the first choice so it would be like

Code: Select all

menu:
    "Show toy":
        jump choice_attitude
    "be cool":
        jump choice_cool
        
label choice_attitude:
   menu:
      "whata":
           Jump choice_whata
       "cake":
           Jump choice_cake
       "raps":
           Jump choice_raps

    
label choice_cool:
   menu:
        "dinos":
               Jump choice_dinos
        "coolaid":
               Jump choice_coolaid
        "pimpel":
               Jump choice_pimpel

    
label choice_done:
Something like that.

not sure why you had the

Code: Select all

 jump choice_done
as that should be called when your at the end of the label that you jumped to after the choices have been made as the first jump would just skip the

Code: Select all

 jump choice_done 
I'm pretty sure if you have the menu choices it's ok not to have a jump unless your using like a if statement to see if you should show the choice's and if you don't show them and there is other code or none then yes the jump would be needed to prevent it from going to the label under it and you would use it to skip that label.

Also by the way when you put just

Code: Select all

 "test in quotes" 
that tell's ren'py to show text as an narrator by default.

User avatar
YzzaPizzaIsCheezy
Regular
Posts: 64
Joined: Mon Feb 15, 2016 11:40 am
Completed: Best Friends
Projects: Sweet and Spices (NaNo'16)
Organization: Pastelle Studios, Classical Projects
Contact:

Re: How do i make multiple choices/paths in ren py?

#3 Post by YzzaPizzaIsCheezy » Thu Mar 10, 2016 9:00 pm

Umm.... Excuse me but, you post it in the wrong forum. :oops:

User avatar
AnthonyPython
Newbie
Posts: 2
Joined: Tue Mar 01, 2016 8:34 pm
Completed: I don't seek laughter...
Projects: Kyōki
Organization: Anthony Games
Contact:

Re: How do i make multiple choices/paths in ren py?

#4 Post by AnthonyPython » Thu Mar 10, 2016 9:06 pm

ah he did... I was going to look through this section until I seen this, lolz
wrong section man... xD

Post Reply

Who is online

Users browsing this forum: No registered users