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
hykou
Wanderer


Joined: 29 Apr 2004
Posts: 63
Location: USA

PostPosted: Tue Jul 13, 2004 7:14 pm   

random colors not working...
 
#var tags {(|B)|(|R)|(|C)|(|M)|(|Y)|(|W)|(|G)|(|b)|(|r)|(|c)|(|m)|(|y)|(|w)|(|g)|(|D)|(|X)|(|I)}
#alias {ct} {
#var args "";
#loop %numparam() {#var args @args" "%param(%i)};
#var args %trim(@args);
clan talk %item(@tags,%random(1,%numitem(@tags)))@args|Y;
#abort;
}

this was writing with zMUD 7.05, which i have. now this isnt working for me, but it does work for others. |B |R |C etc... that is how you do the color codes for this mud. it trys to do ct ;; instead of random colors. anything wrong with it?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5187

PostPosted: Tue Jul 13, 2004 11:21 pm   
 
Sure is. The problem is in your lack of use of delimiters. Simply shortening will fix a few things.
#ALIAS ct {clan talk %concat(%item(@tags,%random(1,%numitem(@tags))),"%-1","|Y")}
Reply with quote
hykou
Wanderer


Joined: 29 Apr 2004
Posts: 63
Location: USA

PostPosted: Wed Jul 14, 2004 6:09 am   
 
that works better, except it only does blue which it should randomly do the listed colors... since |B is at the front maybe it only reconizes that. is there another way to add onto the #VAR tags without the | in between the ()?
Reply with quote
Rorso
Wizard


Joined: 14 Oct 2000
Posts: 1368

PostPosted: Wed Jul 14, 2004 8:51 am   
 
#ALIAS ct {clan talk %concat(%item(@tags,%random(1,%numitems(@tags))),"%-1","|Y")}

Please note the above spelling error Rolling Eyes
Reply with quote
hykou
Wanderer


Joined: 29 Apr 2004
Posts: 63
Location: USA

PostPosted: Fri Jul 16, 2004 4:05 am   
 
thanks... that was a simple mistake! thanks once again
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