In the documentation for SetVariable on the site:
https://www.renpy.org/doc/html/screen_actions.html
Is there a way to update this information?
When there is a bug, the error log Ren'Py provides, sometimes refers to 00* renpy files, and not directly to the code the user wrote.
In the specific case of using SetVariable(x,y) this will occur in the context of being located within an If within an action of a textbutton on a screen used by a screen.
The correct syntax is SetVariable("x",y).
The documentation on the site should be updated to say this, because it's very confusing and I fear some people may lose hours due to the lack of proper error_log during certain usage, as well as the vague definition for SetVariable on the website.
Current:
Code: Select all
SetVariable(variable, value)
Causes variable to be set to value.
Code: Select all
SetVariable(variable, value)
Causes variable to be set to value.
Variable must be a string (i.e. str(var) or just "var").
Thanks in advance. ^^