What I'm trying to do is generate a random number, then depending on what it is, display different text to the user.
Code: Select all
$ r = renpy.random.randint(1,10) #Generates the Int, stores it in the variable
if r==1,3: #If the Int generated is 1, 2 or 3, display success
"success"
else: #if it is anything else, display fail
"fail
I've tried so many variations of this code, such as
Code: Select all
elif r==4,5,6,7,8,9,10:
"fail"
What happens is that it ALWAYS displays whatever the first block is, and then continues as told. I know it is generating a random number (I changed success to "[r]" to test this", it just doesn't seem to be actually checking what that number is at any point.
What am I doing wrong?