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.
Is it possible to change something like dialogue text color etc. during the game and seeing the changes reflect real time? I tried changing the color of the text font in the script and it didn't reflect any changes. An example:
Create a style and use that, I can't give an example right now as I need to head out, but some searching the documentation for styles may help. https://www.renpy.org/doc/html/style.html
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
I want to permanently change the text color by choices in the game. Not sure if we can change (hard coded?) variables.
I'm wondering if I'll need to redefine everything on the side and change it that way? If that even makes sense. Using my own screens and variables unless someone more knowledgeable can give me an idea haha
I'm not at home for the next two days, so I can't give an example, but what you want to do is edit the say screen and add a variable that controls which style it uses.
Others might be able to help better than I can, I haven't fiddled with multiple styles yet, do am not overly familiar with the subject.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
I'd advise against trying to redefine style parts (as you'd likely need to call renpy.rebuild_styles() which is quite a heavy function and will lag for a moment)
The alternative (and likely better) way is to set what_prefix and suffix attributes for your characters (you can even make them all different) using an interpolated variable and then alter that value as the game progresses...
What I'm doing doesn't rely on characters or anything like that, it's a theme building/template type program I mentioned a while back I wanted to work on and gui.rebuild() works perfectly I think.