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.
you can use variables as long as the variables are defined before the style is called for parsing. it's just a matter of init order.
even though you make it work, your styles won't be dynamic since styles are only called once during initialization.
style the displayable in the screen itself if you want to make it dynamic.
hell_oh_world wrote: ↑Sun Jul 25, 2021 2:10 am
even though you make it work, your styles won't be dynamic since styles are only called once during initialization.
You can change and rebuild styles during gameplay. Though simply not messing with style definitions and changing style based on some variable is still better.