Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Greiger
Newbie


Joined: 24 Jul 2002
Posts: 2
Location: USA

PostPosted: Wed Jul 24, 2002 7:24 am   

Random chance of emote when button is pushed?
 
I'm have Zmud using a simple skill Repeating Fist whenever I push it.
The problem is I want it to have a random chance to have my character say somthing before the skill is used. Just like how final fantasy tactics is with spells and stuff.
Is that even possible?
Reply with quote
Charbal
GURU


Joined: 15 Jun 2001
Posts: 654
Location: USA

PostPosted: 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
Reply with quote
Greiger
Newbie


Joined: 24 Jul 2002
Posts: 2
Location: USA

PostPosted: Wed Jul 24, 2002 10:11 pm   
 
Ok thanks I was after the one that has a 75% chance of saying one thing. But I'll write down the others. I think I have an idea for them.
I bow before your infinite wisdom.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net