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.
Couple things: 1. You're looking for SetField, since you're trying to change a field in a class object, not a simple variable. 2. There are multiple ways to do what you want in terms of setting boundaries for values. The simplest is using min/max functions.
philat wrote: ↑Thu Oct 19, 2017 1:09 am
Couple things: 1. You're looking for SetField, since you're trying to change a field in a class object, not a simple variable. 2. There are multiple ways to do what you want in terms of setting boundaries for values. The simplest is using min/max functions.