I need help with Branching script

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
TalrixTrinity
Regular
Posts: 27
Joined: Sun Jan 03, 2016 2:38 am
Projects: Asathera Chronicles, Name Pending
Organization: TalrixTrinity
Soundcloud: mateus-sephiroth
Location: USA
Contact:

I need help with Branching script

#1 Post by TalrixTrinity »

So, I'm sorry if this question has already been asked or if it's a simple fix, but I have no idea how to do this. Knowing my luck, it's probably right under my nose the entire time but I have to ask.
So I am creating the choice screen and I have the two choices up.
Example :


menu:
"Eggs":
jump Eggs

"Cereal":
jump Cereal

label Eggs:
scene bg mckit
M "I feel like eggs."



label Cereal:
scene bg mckit

M "How about some cereal?"


Every time I play it, it jumps from 'I feel like eggs' to 'How about some cereal? I've searched through the instructions to try and fix this. I found out that typing return takes you back to the menu but I need the choices to lead to the next part of the story. How do I do this?

Like I said, I'm really sorry if this has already been asked. I can't find the answer. I appreciate the help!

User avatar
Rosstin
Veteran
Posts: 368
Joined: Mon Jan 31, 2011 5:43 pm
Completed: Rex Rocket, Kitty Love, King's Ascent
Projects: Road Redemption, Queen At Arms
Organization: Aqualuft Games
Contact:

Re: I need help with Branching script

#2 Post by Rosstin »

Code: Select all


menu:
  "Eggs":
    jump Eggs
  "Cereal":
    jump Cereal

label Eggs:
  scene bg mckit
  M "I feel like eggs."
  jump scene2

label Cereal:
  scene bg mckit
  M "How about some cereal?"
  jump scene2

label scene2:
  M "Feels good to have eaten all that."
  jump scene3


Image

TalrixTrinity
Regular
Posts: 27
Joined: Sun Jan 03, 2016 2:38 am
Projects: Asathera Chronicles, Name Pending
Organization: TalrixTrinity
Soundcloud: mateus-sephiroth
Location: USA
Contact:

Re: I need help with Branching script

#3 Post by TalrixTrinity »

Yay!
Last edited by TalrixTrinity on Sat Jan 30, 2016 11:20 pm, edited 1 time in total.

TalrixTrinity
Regular
Posts: 27
Joined: Sun Jan 03, 2016 2:38 am
Projects: Asathera Chronicles, Name Pending
Organization: TalrixTrinity
Soundcloud: mateus-sephiroth
Location: USA
Contact:

Re: I need help with Branching script

#4 Post by TalrixTrinity »

Rosstin wrote:

Code: Select all


menu:
  "Eggs":
    jump Eggs
  "Cereal":
    jump Cereal

label Eggs:
  scene bg mckit
  M "I feel like eggs."
  jump scene2

label Cereal:
  scene bg mckit
  M "How about some cereal?"
  jump scene2

label scene2:
  M "Feels good to have eaten all that."
  jump scene3



I love you! Thank you so much!

Post Reply

Who is online

Users browsing this forum: No registered users