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
Fastidious
Beginner


Joined: 03 Sep 2004
Posts: 12

PostPosted: Fri Sep 10, 2004 5:55 am   

Simple scripting problem
 
Im making a stat guage button that displays a stat within zmud on the button. Basicly this mud is a pkill mud with weapons that have "Weapon Flags" on them. The flags do stat damage like "-1 Dex" per hit. Anyways, the object is to set a trigger to cue my gauge when I am hit. It works perfectly and im glad I could do it. But I ran into a problem that prob seems commin for everyone who writes triggers. The fake emotes and so on.

Q: Can anyone suggest a refrence or solution to making my one trigger not go off on emotes or tells.

-Trigger-
Pattern - Your skin soars up with plague.
Value - #MATH DEX @DEX+@STAT1

-Dont Want-
Tristen Your skin soars up with plague.
(trigger sets off)
or
(Tristen Tells You) Your skin soars up with plague.


If anyone can help or suggest something for me to read up on or anything please let me know. I know this has to be simple, but im learning :)

-Fastidious
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Fri Sep 10, 2004 9:55 am   
 
Read the Pattern Matching page in the help. It explains using anchors ^ and $ to mark the beginning and end of line into the pattern.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Fastidious
Beginner


Joined: 03 Sep 2004
Posts: 12

PostPosted: Fri Sep 10, 2004 10:53 am   
 
Did the trick with the ^ stuff. Thanks for the piece of info that was right in my face.
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