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 Sat May 25, 2013 4:01 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-Scripts?
PostPosted: Fri May 04, 2012 6:17 pm 
Newbie

Joined: Mon Feb 06, 2012 11:30 am
Posts: 3
Projects: Starry Eyed, Untitled
Organization: Survivor Studios
I feel stupid for asking this because it feels like everyone will know;
But how do you have multiple-scripts?
As in like; You know how the tutorial Ren'py comes with, when opened in the Editor, has multiple-scripts up there?
Yeah, how do you switch between scripts,
I'm very confused.
I'm a new person, I know. ;~;
Help?


Top
 Profile Send private message  
 
 Post subject: Re: Multiple-Scripts?
PostPosted: Fri May 04, 2012 6:23 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
Well, if I'm understanding your correctly, you want to click the tab in J-edit with the script that you want to edit (just think like with a web browser's tabs). If you're asking about making more scripts to work on, just create a new one (and make sure to label it ".rpy" or it'll just be a random file). The Ren'Py launcher should open any .rpy files in the "game" folder of your game.

_________________
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-Scripts?
PostPosted: Fri May 04, 2012 6:28 pm 
Newbie

Joined: Mon Feb 06, 2012 11:30 am
Posts: 3
Projects: Starry Eyed, Untitled
Organization: Survivor Studios
redeyesblackpanda wrote:
Well, if I'm understanding your correctly, you want to click the tab in J-edit with the script that you want to edit (just think like with a web browser's tabs). If you're asking about making more scripts to work on, just create a new one (and make sure to label it ".rpy" or it'll just be a random file). The Ren'Py launcher should open any .rpy files in the "game" folder of your game.


I mean, hrmm... How can I put this... Let's say you're making a dating sim and you have five girls to choose from based around choices,
Each girl has their own tab in jEdit,
But the prologue has it's own tab as well,
How do you get the prologue tab to load up another tab?
I've seen it done before;
I'm not making sense, my apologies. ;~;


Top
 Profile Send private message  
 
 Post subject: Re: Multiple-Scripts?
PostPosted: Fri May 04, 2012 6:30 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
Ah, Ren'Py reads the scripts at the same time. You can use "label" and "call" or "jump" just like you could on the same script.

Example:

This is your main script:
Code:
label start:
    "random text"
    jump girlonespath

This is girl one's script:
Code:
label girlonespath:
    "Girl One's Random Text"

_________________
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-Scripts?
PostPosted: Fri May 04, 2012 6:36 pm 
Newbie

Joined: Mon Feb 06, 2012 11:30 am
Posts: 3
Projects: Starry Eyed, Untitled
Organization: Survivor Studios
redeyesblackpanda wrote:
Ah, Ren'Py reads the scripts at the same time. You can use "label" and "call" or "jump" just like you could on the same script.

Example:

This is your main script:
Code:
label start:
    "random text"
    jump girlonespath

This is girl one's script:
Code:
label girlonespath:
    "Girl One's Random Text"


Ooohhh! Okay!
So it loads them all up at once.
That helps me quite a lot,
Thank you very much! :D


Top
 Profile Send private message  
 
 Post subject: Re: Multiple-Scripts?
PostPosted: Fri May 04, 2012 6:38 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
Yup, there's not much difference between 1 .rpy file and 20 .rpy files (well, there's more of them, but you get what I mean :lol: )

_________________
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: No registered users


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