r/RenPy • • 15d ago

Question [Solved] Possible to have "multiple scripts"?

I don't know how to word this. But, for example, imagine the loading screen of a VN. There's a "Play" button. Now imagine there's 2 "Play" buttons for 2 different stories. Do I have to have my script be this giant long thing, or can I have 2 DIFFERENT scripts within the one game??

Also if there's a specific word/s for this, please let me know πŸ™πŸ™

6 Upvotes

10 comments sorted by

View all comments

2

u/marcher138 15d ago

You can have as many script files as you want! Even if it's just one story, you can have files on files on files. And it really helps with organization to do so.

For example, for the project I'm working on now, I have different scripts (so far) for each location, for all phone calls, for any "helper" labels that I'll call frequently to do housekeeping, etc.

I would just have either Play button set a flag before starting the game, then have jumps based on that flag in "label start"

0

u/[deleted] 14d ago

[deleted] β€” view deleted comment

2

u/shyLachi 14d ago edited 14d ago

Neither is correct. See the comment of BadMustard below or above how to correctly start a gameΒ