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
fattony
Apprentice


Joined: 27 Dec 2001
Posts: 105
Location: USA

PostPosted: Fri Mar 01, 2002 7:01 am   

Trigger question - Ticks
 
When my MUD ticks, it shows the text this way:
hp: 416 (416) sp: 659 (1341)

But, when I'm in a party with other players, their ticks show like this:
Vladd [party]: hp: 416 (416) sp: 840 (1341)

Problem is that I can't set the pattern of a trigger to the "hp: 416 (416) sp: 659 (1341)" format, cause it will also trigger off of the other player's ticks while in party.

Is there any way to make it ONLY trigger off of "hp: 416 (416) sp: 659 (1341)" WITHOUT any text before it? Thanks for your time.

Fat Tony
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Fri Mar 01, 2002 7:06 am   
 
You are looking to pattern match the following concepts:

Pattern Matching:
^ force pattern to match starting at the beginning of the line
$ force pattern to match ending at the end of the line

#TRIGGER {^hp: (%d) ~((%d)~) sp: (%d) ~((%d)~)} {pattern}

The following won't match as "hp: .." doesn't start at the beginning of the line:

Vladd [party]: hp: 416 (416) sp: 840 (1341)




TonDiening
Beta Upgrading to 6.26
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