|
DarkBeo Newbie
Joined: 17 Mar 2003 Posts: 4 Location: Brazil
|
Posted: 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 |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: 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.
|
|
|
|
|
|
|
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
|
|