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.
I'm trying to get a button action that will take a variable, say, time_cnt, and then set that variable to time_cnt + 1.
However, it seems to me that SetVariable accepts variables as a string and does not take in their value? Or at least I haven't had much success figuring it out... Is it possible to use SetVariable as a time counter? And if so, what is the proper syntax of that?
This definitely works, you must be getting an error somewhere else. (Of course you also need to declare the variable first)
When I added only that, it gave me an error, then I removed it and it started working again. Now I just tried it again and suddenly it works? XD No idea why, but I'm not complaining. I must have had a typo somewhere.