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.
def func(a, b):
a += 3
b += 4
return a, b
z = 1
x = 2
z, x = func(z, x)
I can't use action SetVariable(), SetVariable() because I use function first and then when I try to SetVariables after that I have this annoying issue that button always lags one click behind (and it flashes white)
Can you not recode ui_inv_equip to set the variables itself and just do the one function action?
Alternatively, maybe a utility function that calls ui_inv_equip then sets both variables...