4.8 Feature Requests

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.
Message
Author
Megaman Z
Miko-Class Veteran
Posts: 829
Joined: Sun Feb 20, 2005 8:45 pm
Projects: NaNoRenO 2016, Ren'Py tutorial series
Location: USA
Contact:

#46 Post by Megaman Z »

so it's the same as having something like this in VisBASIC, then...

Code: Select all

private sub refreshgame
'[meaningless code here]
ENDING: 'label
NM "<yatta yatta>" 'yes, I'm still stealing code examples from the source code of my game... so sue me!
'etc.

ENDING: 'another label
NM "<different yatta yatta...>"
'etc.
'multiple lines of code
goto ENDING
end sub
(I know that this would produce an error...)
~Kitsune Zeta

chronoluminaire
Eileen-Class Veteran
Posts: 1153
Joined: Mon Jul 07, 2003 4:57 pm
Completed: Elven Relations, Cloud Fairy, When I Rule The World
Tumblr: alextfish
Skype: alextfish
Location: Cambridge, UK
Contact:

#47 Post by chronoluminaire »

It's exactly as if all your scripts are put together. In any order. First all the init blocks are executed, then the splashscreen or main menu is called, and unless you've overridden it the game will start at the Start label. Then you can jump around as you wish.

For example, in When I Rule The World I had two files just containing init (images.rpy for the images and init.rpy for everything else); one file (chapter1.rpy) for the first section of script, from the start: label up until the second choice; one file for each of the branches from there (eletis.rpy and takeshi.rpy), which can under some circumstances jump between one and the other; and one file for the credits and ending (omake.rpy). Those correspond to the different .rpyc files you see in the WIRTW game directory. I renamed them for release to avoid giving anything away about the plot structure.

Post Reply

Who is online

Users browsing this forum: No registered users