I am familiar with the renpy random.randit and random.choice mode, but is there an option where I can get renpy to select multiple answers out of them?
Code: Select all
# return a random float between 0 and 1
$ randfloat = renpy.random.random()
# return a random integer between 1 and 20
$ d20roll = renpy.random.randint(1, 20)
# return a random element from a list
$ randfruit = renpy.random.choice(['apple', 'orange', 'plum'])
and then followed by something like
if randfruit contains apple: show image1 on left hand side
if randfruit contains orange: show image3 on right hand side
if randfruit contains plum: show image2 at middle
I suspect I'll need to use a list function or something but I'm unsure of where to start. If someone can point me in the right direction or give me tips on how to achieve what I need, that would be very much appreciated. Thanks