Search found 3 matches
- Thu Oct 02, 2014 7:17 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] random in menu
- Replies: 4
- Views: 1063
Re: random in menu
Will putting list of names in a variable work for you? label start: $ name_list = ['Sara','Cindy','Julie','Megan'] $ name = renpy.random.choice(name_list) "I'll ask her... my name is [name]" $ a = renpy.random.choice(name_list) $ b = renpy.random.choice(name_list) menu: "It's a [a].&...
- Thu Oct 02, 2014 5:47 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] random in menu
- Replies: 4
- Views: 1063
Re: random in menu
Should help - http://www.renpy.org/doc/html/other.html#renpy-random Test this and works, thx. label start: $ name = renpy.random.choice(['Sara','Cindy','Julie','Megan']) "I'll ask her... my name is [name]" but, the problem is that for every time you have to make a function always have to ...
- Thu Oct 02, 2014 4:44 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [Solved] random in menu
- Replies: 4
- Views: 1063
[Solved] random in menu
good, I wonder how I can load a random text in the game. type array with random function and the would be text [array] ? this is the idea (usin php) label start: $targetArray = array("Sara","Cindy","Julie","Megan"); $rand = array_rand($targetArray); $name = $t...