Lemma Soft Forums

Supporting creators of visual novels and story-based games since 2003.


Visit our new games list, blog aggregator, IRC, and wiki.
Activation problem? Email [email protected]
It is currently Thu May 23, 2013 4:49 pm

All times are UTC - 5 hours [ DST ]


Forum rules


Ask questions about one topic per thread, and use a descriptive subject. "NotImplemented error in script.rpy" is a good subject, "Tom's problems" is not. Remember to include all of traceback.txt or error.txt when reporting a problem, as well as the relevant lines of script. Use the [code] tag to format scripts.



Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Multiple routes
PostPosted: Sun Jan 22, 2012 8:40 pm 
Regular

Joined: Tue Jan 17, 2012 12:26 pm
Posts: 36
Completed: Chii's Adventure!
When I'm making a VN with multiple routes, how do I write that in the Ren'py engine? I understand how to use the flag system and the point system (more or less), but when coding all of that in the jEdit-script thing its going to get all cluttered, isn't it? So how would I make it less cluttered? I hope my question makes sense.


Top
 Profile Send private message  
 
 Post subject: Re: Multiple routes
PostPosted: Sun Jan 22, 2012 9:02 pm 
Miko-Class Veteran
User avatar

Joined: Thu Dec 22, 2011 4:26 am
Posts: 993
Location: United States
Projects: Eternal Memories, plot bunnies that won't die.
Organization: HellPanda Studios
You can use multiple .rpy files. Just make sure to employ jumps.
One .rpy file would say this:
Code:
jump flag_1

It would jump to this in another file
Code:
label flag_1:

Just make sure that when you create a new file, you go and change it into a .rpy file. If you don't do that, it won't get read.

This allows you to avoid the clutter that comes from putting everything on one .rpy file.

_________________
Know some awesome people? Want to thank them? Do it here!
For up to date info on my VN projects: HellPanda Studios Blog.
Tsundere VN
My new policy: All my games will have a redhead. Period.

Not really checking the forums any more due to time constraints, so if you want to contact me, PM. I'll get a notification and log in. :mrgreen:
Also, I've been hit and run posting, which means I don't see many replies. If you want to respond to something I've said, also feel free to PM me.


Top
 Profile Send private message  
 
 Post subject: Re: Multiple routes
PostPosted: Sun Jan 22, 2012 9:30 pm 
Regular

Joined: Tue Jan 17, 2012 12:26 pm
Posts: 36
Completed: Chii's Adventure!
Okay, that helps me. Thank you. Another question though, if after a certain while I want the two points to come together so that you'll be in the same scene no matter which choice you chose, how would I go about doing that? Would I have to code the same thing in each file or is there a way I could use just one file?


Top
 Profile Send private message  
 
 Post subject: Re: Multiple routes
PostPosted: Sun Jan 22, 2012 9:48 pm 
Miko-Class Veteran
User avatar

Joined: Thu Dec 22, 2011 4:26 am
Posts: 993
Location: United States
Projects: Eternal Memories, plot bunnies that won't die.
Organization: HellPanda Studios
You simply jump back to the same spot. Two files would both lead to the same thing. As in one file saying:
Code:
"Text for file one."
jump flag

and the other file saying
Code:
"Text for file two."
jump flag

then having the spot where there is shared text labeled like this:
Code:
label flag:
"shared text"


If you want to split from the shared file again back to the individual files, you'll probably want to use python.

_________________
Know some awesome people? Want to thank them? Do it here!
For up to date info on my VN projects: HellPanda Studios Blog.
Tsundere VN
My new policy: All my games will have a redhead. Period.

Not really checking the forums any more due to time constraints, so if you want to contact me, PM. I'll get a notification and log in. :mrgreen:
Also, I've been hit and run posting, which means I don't see many replies. If you want to respond to something I've said, also feel free to PM me.


Top
 Profile Send private message  
 
 Post subject: Re: Multiple routes
PostPosted: Sun Jan 22, 2012 10:06 pm 
Regular

Joined: Tue Jan 17, 2012 12:26 pm
Posts: 36
Completed: Chii's Adventure!
Ah, alright. Thank you again. I'll look into python too.


Top
 Profile Send private message  
 
 Post subject: Re: Multiple routes
PostPosted: Sun Jan 22, 2012 10:27 pm 
Miko-Class Veteran
User avatar

Joined: Thu Dec 22, 2011 4:26 am
Posts: 993
Location: United States
Projects: Eternal Memories, plot bunnies that won't die.
Organization: HellPanda Studios
If you're interested in learning about python, I suggest going here: http://www.renpy.org/wiki/renpy/doc/tut ... Statements

It's probably the python you'll use the most (unless you're doing a stat raising dating sim or something).

In addition to if statements you can do if not statements too which work like this:
Code:
if not python_statement:
    "text, text, text"


The Wiki is a good place to check out if you're new to Ren'Py.

_________________
Know some awesome people? Want to thank them? Do it here!
For up to date info on my VN projects: HellPanda Studios Blog.
Tsundere VN
My new policy: All my games will have a redhead. Period.

Not really checking the forums any more due to time constraints, so if you want to contact me, PM. I'll get a notification and log in. :mrgreen:
Also, I've been hit and run posting, which means I don't see many replies. If you want to respond to something I've said, also feel free to PM me.


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: pod7, pwisaguacate


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Protected by Anti-Spam ACP
Powered by phpBB® Forum Software © phpBB Group