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.
doesn't work. Because persistent values aren't just strings. Any ideas on how to resolve this smartly?
I've ran into the same problem when I wanted to change integer values. I feel like I'm missing something obvious.
First argument to SetVariable is name of the variable, not the vairable itself. SetVariable("hours", 5)
The `name` argument must be a string, and can be a simple name like "strength", or
one with dots separating the variable from fields, like "hero.strength"
or "persistent.show_cutscenes".[/qoute]
Ocelot wrote: ↑Fri Nov 19, 2021 6:50 pm
First argument to SetVariable is name of the variable, not the vairable itself. SetVariable("hours", 5)
The `name` argument must be a string, and can be a simple name like "strength", or
one with dots separating the variable from fields, like "hero.strength"
or "persistent.show_cutscenes".[/qoute]