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.
menu:
"Casey" if caseyAlive == 1 and clock.time=="8AM", "9AM", "10AM", "5PM", "6PM", "7PM", "8PM":
jump Casey
"not casey":
pass
It seems like the menu won't recognise any variables if I have the "and" in there, so using this code "Casey" would show as a Menu item even at 11AM if she's dead.
If I remove the caseyAlive variable, the time element works and she only shows up at the correct times. If I remove the time variable, she only shows up if she's alive.
Swinwappy wrote: ↑Wed May 25, 2022 1:10 am
I'm very new to python. I made it myself
Thanks for this, mate!
It's actually renpy script which created the confusion, because python would have thrown a syntax error. If you want to compare multiple things in python you have to write the following.