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 Tue May 21, 2013 8:17 am

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  [ 5 posts ] 
Author Message
PostPosted: Sun Apr 29, 2012 10:58 pm 
Newbie

Joined: Sun Apr 29, 2012 10:53 pm
Posts: 8
Hello I recently began programming using the Ren'Py engine and was wondering if all scripts share scope with each other. For example if I defined charsprites/image.png in one script would it be visible in a separate script file in the same game? The reason I'm asking this is I have a large amount of images that are going to be defined and would like to make a separate script file to avoid cluttering the main script.

In addition to this, I'm assuming its possible to call between scripts during gameplay? For example if I wanted to split each act of the vn into seperate script files to avoid having one huge script to scroll through in order to make edits.


Top
 Profile Send private message  
 
PostPosted: Sun Apr 29, 2012 11:03 pm 
Miko-Class Veteran
User avatar

Joined: Mon Feb 06, 2012 9:50 pm
Posts: 715
Location: NYC
Projects: Icebound
Organization: Fastermind Games
Every script you put in the game folder works in tandem, as long as you put the relevant label in the other script file and jump to it, it should work the same as if they were both in a single file.

_________________
ImageImage


Top
 Profile Send private message  
 
PostPosted: Mon Apr 30, 2012 7:33 am 
Newbie

Joined: Sun Apr 29, 2012 10:53 pm
Posts: 8
Thanks, also is there a way to edit the 'say' function to not display the character name at the top of the dialogue box, and instead use the color for that defined character for all the text in the box?


Top
 Profile Send private message  
 
PostPosted: Mon Apr 30, 2012 1:49 pm 
Miko-Class Veteran
User avatar

Joined: Fri Dec 11, 2009 5:25 pm
Posts: 937
You could set it while character declaration
Code:
define e = Character(None, what_color="#ccc")

http://www.renpy.org/doc/html/dialogue.html#defining-character-objects


Top
 Profile Send private message  
 
PostPosted: Mon Apr 30, 2012 4:12 pm 
Regular
User avatar

Joined: Mon Apr 16, 2012 8:37 am
Posts: 61
Location: swiss
I was thinking, no idea why, call was needed instead of jump if you worked on numerouse files in a game script. I will correct that mistak and use jump instead.

Thanks


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 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