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.
rayminator wrote: ↑Sat Jan 02, 2021 10:06 am
it because you have nothing in the action renpy is reading your code right by ignoring that button cause you have nullaction
hovered SetVariable("schoolfloor", "0") won't do anything not in less it has something in the action try putting setvariable in action
ok I did notice the you are putting "" around the number hovered SetVariable("schoolfloor", "0") when it should be hovered SetVariable("schoolfloor", 0)
rayminator wrote: ↑Sat Jan 02, 2021 10:52 am
ok I did notice the you are putting "" around the number hovered SetVariable("schoolfloor", "0") when it should be hovered SetVariable("schoolfloor", 0)
Your actions/hovered (btw hovered will work with a NullAction on the action) are not altering the screen variable, just a global variable.
In most cases it makes more sense to just use global variables though (easier to keep track of)
Remix wrote: ↑Sat Jan 02, 2021 11:20 am
Use SetLocalVariable or SetScreenVariable
Your actions/hovered (btw hovered will work with a NullAction on the action) are not altering the screen variable, just a global variable.
In most cases it makes more sense to just use global variables though (easier to keep track of)