Charbal GURU
Joined: 15 Jun 2001 Posts: 654 Location: USA
|
Posted: Wed Jul 24, 2002 11:48 am |
Do you want your character to have a chance of not saying something or do you mean that you have a list of things and want your character to say one of them each time randomly?
#if (%random(1, 100) <= 75) {say Okay}
will say Okay about 75% of the time.
say %case(%random(1,4),"You will never win!","[yawn]","Interesting...","Take that!")
will say a random thing 100% of the time.
Or you can mix them:
#if (%random(1, 100) <= 75) {say %case(%random(1,4),"You will never win!","[yawn]","Interesting...","Take that!")}
- Charbal |
|