Chapter Selection help

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
CharacterGreen
Newbie
Posts: 4
Joined: Mon Jun 18, 2018 9:15 pm
Contact:

Chapter Selection help

#1 Post by CharacterGreen » Tue Jun 19, 2018 2:37 pm

I recently joined Ren'py and I hope you would understand that I'm not well versed on the engine and would like massive help.

At the beginning of my visual novel/dating simulator, you choose 1 out of 8 girls to have a relationship with. I want my game to have a Chapter Selection that adds a chapter as you progress through the game or finish a chapter, which I already don't know how to do. Along with that, I want the player to be able to replay the entire game to experience the other girls but I don't want the chapters that will be added to overwrite the previous chapters. So what I need is a Chapter Selection screen that allows for 8 different storylines with their respective chapters.

Thank you in advance!

User avatar
gas
Veteran
Posts: 439
Joined: Mon Jan 26, 2009 7:21 pm
Contact:

Re: Chapter Selection help

#2 Post by gas » Tue Jun 19, 2018 3:36 pm

Believeme, the shortest way to begin with is to read the quick tutorial in the docs. What you want to do is SO basic that is like asking "how to make a game".
Anyway, as an hint, you need to read about LABELS, the very first thing, and SCREEN LANGUAGE...
10 ? "RENPY"
20 GOTO 10

RUN

CharacterGreen
Newbie
Posts: 4
Joined: Mon Jun 18, 2018 9:15 pm
Contact:

Re: Chapter Selection help

#3 Post by CharacterGreen » Tue Jun 19, 2018 8:21 pm

Do you think you could give me like an example script because I can't seem to find anything on a Chapter Selection type thing in the tutorials?

User avatar
Imperf3kt
Eileen-Class Veteran
Posts: 1605
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

Re: Chapter Selection help

#4 Post by Imperf3kt » Tue Jun 19, 2018 8:35 pm

Thats because no such thing really exists that encompasses all uses.

Here's a brief to making your own though:
Step one: create a screen
Step two: add a button to navigation menu, that opens said screen
Step three: add buttons to your chapter screen that take a player to each desired label

You can use something like this:

Code: Select all

screen chapters():
    tag menu

    textbutton "Chapter one" action Start("chapter_one")
    textbutton "Chapter two" action Start("chapter_two")

Code: Select all

label chapter_one:
    "This is chapter one."
    return # ensures when chapter one ends, the player doesn't continue into chapter two.

label chapter_two:
    "This is chapter two."
    return
Don't forget to link the "chapter screen" in the navigation menu.

You also don't have to use textbuttons, you could use images if you prefer.
Image

Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Post Reply

Who is online

Users browsing this forum: Kinmoku, Remix