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
DarkBeo
Newbie


Joined: 17 Mar 2003
Posts: 4
Location: Brazil

PostPosted: Mon Apr 21, 2003 2:00 am   

Randon Prefixo and Sufixo
 
How can i random my Prefix and show the pair in the sufix?
Example:

#var prefix &R-&W<&R|&G-&W<&G|&c>&b>&B>&C>&W
#var sufix &W>&R-&n|&W>&G-&n|&C<&B<&b<&c<&n
#alias presufix {%item(@presufix, %random(1,3));#if (@prefix = ?????) {#var prechat ?????;#var suchat ?????};chat @prechat %-1 @suchat}

DarkBeo
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Mon Apr 21, 2003 3:34 am   
 
Try using %ismember. Vaguely like this pre=%item(%random);su=%item(%ismember(@pre)). In other words, %ismember is what your looking for, and you should look in the help.
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