Search found 2 matches

by icecreamheadache
Wed Apr 18, 2018 4:19 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] My randInt script always displays the first possibility, no matter what Int the variable is
Replies: 3
Views: 449

Re: My randInt script always displays the first possibility, no matter what Int the variable is

gas wrote: Wed Apr 18, 2018 4:16 pm If r <4
If r> 3
Are the correct checks in that given case
Thanks so much! I've been looking all over, a lot of the other examples of this kind of code seem to be wrong.
by icecreamheadache
Wed Apr 18, 2018 4:07 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] My randInt script always displays the first possibility, no matter what Int the variable is
Replies: 3
Views: 449

[SOLVED] My randInt script always displays the first possibility, no matter what Int the variable is

I know this is going to be the easiest solution. I'm new to ren'py and I think this is just a syntax issue. What I'm trying to do is generate a random number, then depending on what it is, display different text to the user. $ r = renpy.random.randint(1,10) #Generates the Int, stores it in the varia...