 |
hykou Wanderer
Joined: 29 Apr 2004 Posts: 63 Location: USA
|
Posted: 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? |
|
|
 |
Vijilante SubAdmin

Joined: 18 Nov 2001 Posts: 5187
|
Posted: 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")} |
|
|
 |
hykou Wanderer
Joined: 29 Apr 2004 Posts: 63 Location: USA
|
Posted: 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 ()?
|
|
|
 |
Rorso Wizard
Joined: 14 Oct 2000 Posts: 1368
|
Posted: 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  |
|
|
 |
hykou Wanderer
Joined: 29 Apr 2004 Posts: 63 Location: USA
|
Posted: Fri Jul 16, 2004 4:05 am |
thanks... that was a simple mistake! thanks once again
|
|
|
 |
|
|