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
Tygerhart
Novice


Joined: 04 Oct 2001
Posts: 43
Location: Canada

PostPosted: 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
Reply with quote
fattony
Apprentice


Joined: 27 Dec 2001
Posts: 105
Location: USA

PostPosted: 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
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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
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