How do you do a code like :
if happy :
("dance","skip","sing" , 3)
if dance :
dance
if skip:
skip
if sing :
sing
if mad :
("yell", "scream", 2)
if yell :
yell
if scream :
scream
How do you do a probalbillty code?
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
-
briannavon
- Miko-Class Veteran
- Posts: 505
- Joined: Mon Mar 26, 2012 6:51 pm
- Location: Philadelphia
- Contact:
- Spiky Caterpillar
- Veteran
- Posts: 253
- Joined: Fri Nov 14, 2008 7:59 pm
- Completed: Lots.
- Projects: Black Closet
- Organization: Slipshod
- Location: Behind you.
- Contact:
Re: How do you do a probalbillty code?
Code: Select all
$ action = renpy.random.choice(('dance','skip','sing'))
if action=='dance':
"You dance until your feet can't take it any more."
elif action=="skip":
"You skip through the field."
Nom nom nom nom nom LEAVES.
-
briannavon
- Miko-Class Veteran
- Posts: 505
- Joined: Mon Mar 26, 2012 6:51 pm
- Location: Philadelphia
- Contact:
Re: How do you do a probalbillty code?
Thank you! 
Who is online
Users browsing this forum: Bing [Bot], Google [Bot]
