Search found 4 matches
- Mon May 12, 2014 12:55 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Show a random image? [Solved]
- Replies: 2
- Views: 3051
Re: Show a random image?
Thank you, Asceai. I knew there had to be a way...
- Mon May 12, 2014 5:16 am
- Forum: Ren'Py Questions and Announcements
- Topic: Show a random image? [Solved]
- Replies: 2
- Views: 3051
Show a random image? [Solved]
So I have a tonload (not really) of potential images I want to show one of based on a random number. Here's what I have so far... I can make up a declared image name like so: $ num = renpy.random.randint(1, 20) $ thing = "thingy" + str(num) [thing] now contains "thingy17" or what...
- Sat May 10, 2014 9:45 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Trouble with text variables [Solved]
- Replies: 2
- Views: 538
Re: Trouble with text variables
See! I told you it was simple. Thanks briannavon! And just for completeness, any one of those three formats will work (either single or double quotes) as long as it is in the right place.
- Sat May 10, 2014 9:32 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Trouble with text variables [Solved]
- Replies: 2
- Views: 538
Trouble with text variables [Solved]
This should be simple, but I can't find it anywhere. I'm just starting out, and I'm prolly doping something totally stupid, so there's that as well... So frustrated I actually joined the forum. :D Here's the code, totally generic. # Declare characters used by this game. define e = Character('Eileen'...