Choices and paths

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
peuairy
Newbie
Posts: 1
Joined: Tue Dec 18, 2018 9:39 am
Contact:

Choices and paths

#1 Post by peuairy »

Hello everyone, I'm pretty new to Ren'Py so I don't really know much about the abilities of that engine so my question is:

Is it possible to make 2 different paths (like after playing a bit, you get on the bad or good path based on your choices) and then the "real" game starts there.

User avatar
Per K Grok
Miko-Class Veteran
Posts: 882
Joined: Fri May 18, 2018 1:02 am
Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
itch: per-k-grok
Location: Sverige
Contact:

Re: Choices and paths

#2 Post by Per K Grok »

peuairy wrote: Tue Dec 18, 2018 9:44 am Hello everyone, I'm pretty new to Ren'Py so I don't really know much about the abilities of that engine so my question is:

Is it possible to make 2 different paths (like after playing a bit, you get on the bad or good path based on your choices) and then the "real" game starts there.
Sure you can. That's pretty much a standard thing to do.

you could have a menu with different choices. Depending on the choice the game will jump to a different label and each of those labels led to a different path.

Or you can have one or more variables that you add or subtract to according to different choices the player make. At some point you have an if/elif/else-statement that will direct the game to different paths depending on the value of that variable or those variables.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]