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.
Hello!
The following code results in the Transforms I'm applying to each actionbutton sometimes not working at all on one or more buttons. More worryingly, since I'm doing multiple-choice-type minigames this way, the correct choice will often be the transform that isn't working.
After some testing, this appears to only affect text-based images defined purely in Ren'py, as you see below. When I'm using normal images all the transforms work fine.
Is this because of my bad coding skill or because of a glitch?
Buttons are inactive (= cannot be hovered or selected) if the action is impossible or already fulfilled -- i.e., since myvariable is already False, there's no point to setting it to False, so choices 2 and 3 are inactive. If you try it with myvariable defaulting to None, all three choices will be active. This would be easier to see if you used the default buttons to test, since those are grayed out if inactive.
philat wrote:Buttons are inactive (= cannot be hovered or selected) if the action is impossible or already fulfilled -- i.e., since myvariable is already False, there's no point to setting it to False, so choices 2 and 3 are inactive. If you try it with myvariable defaulting to None, all three choices will be active. This would be easier to see if you used the default buttons to test, since those are grayed out if inactive.
Wow, thank you so much!
I'm so happy the solution doesn't require hours of recoding... I was really afraid of that haha.