|
Tygerhart Novice
Joined: 04 Oct 2001 Posts: 43 Location: Canada
|
Posted: Tue Dec 03, 2002 9:47 pm
Dealing with mobs with multi -names... |
I hope some nice people can help me out here...
I'm trying to change the colours on my mud to indicate degrees of damage. Here's an example:
You damage big bad guy.
You damage big bad guy severely.
-or-
You damage Guy.
You damage Guy severely.
My problem is when I use * for the wildcard, Zmud doesn't make a diferentiation between "damage Big Bad Guy" and "damage Big Bad Guy severely". (It will do the same with single named mobs too).
Any hints would be greatly appreciated.
Thanks,
Tyger |
|
|
|
fattony Apprentice
Joined: 27 Dec 2001 Posts: 105 Location: USA
|
Posted: Tue Dec 03, 2002 11:47 pm |
Have you tried pattern matching?
#TRIGGER {^You damage *.$} {#co purple}
and
#TRIGGER {^You damage * severely.$} {#co red}
Try that.
Fat Tony |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Wed Dec 04, 2002 2:21 am |
You can also combine these:
#TR {You damage*(%w).} {#IF (%1 = "severely") {#CW red} {#CW purple}}
Fattony's method depends on changing the colors in a particular order (by having the triggers in that order), so that the final change for any pattern is the desired color. This method actually checks to see which color is desired. Either method can work.
LightBulb
Senior Member |
|
|
|
|
|