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.
Not sure if I just misremember or maybe it's from another code language. It's been a long time since I've tried Ren'py.
Looks like it's from another language. In python, that statement says "if variable is equal to the tuple (1,6)", so it certainly isn't what you're looking for.
Maybe you're thinking of:
if variable in range(1, 6):
"Something happeneds."
Finished games
-My games: Sickness, Wander No More, Max Massacre, Humanity Must Perish, Tomboys Need Love Too, Sable's Grimoire, My Heart Grows Fonder, Man And Elf, A Dragon's Treasure, An Adventurer's Gallantry
-Commissions: No One But You, Written In The Sky, Diamond Rose, To Libertad, Catch Canvas, Love Ribbon, Happy Campers, Wolf Tails
Oh that's it! But wait, doesn't <= mean less or equal to?
Example:
if <= 10 Variable <= 20
"Activate!"
Doesn't this read as anything lower or equal to 10 and everything lower or equal to 20 will activate it?
Say that the variable is 9. That's lower than 10 and will therefor activate, right?
Exiscoming wrote:Oh that's it! But wait, doesn't <= mean less or equal to?
Example:
if <= 10 Variable <= 20
"Activate!"
Doesn't this read as anything lower or equal to 10 and everything lower or equal to 20 will activate it?
Say that the variable is 9. That's lower than 10 and will therefor activate, right?
So if Variable is greater than or equal to 10, and less than or equal to 20, it's true.
Finished games
-My games: Sickness, Wander No More, Max Massacre, Humanity Must Perish, Tomboys Need Love Too, Sable's Grimoire, My Heart Grows Fonder, Man And Elf, A Dragon's Treasure, An Adventurer's Gallantry
-Commissions: No One But You, Written In The Sky, Diamond Rose, To Libertad, Catch Canvas, Love Ribbon, Happy Campers, Wolf Tails
haha, thank you all for the help. I 'think' I get it now. And it seems to be working. I'll probably come up with more questions in the future, but for now thanks!