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
tylanthea
Newbie


Joined: 06 Apr 2004
Posts: 4

PostPosted: Tue Apr 06, 2004 1:16 pm   

Triggering for patterns that starts with *
 
I was trying to make a trigger for a line that generally looks like this:

* Kraelyth 19+6 Deathknight 1300/1300 900/900 210/210 223515200

The trigger pattern I have currently is
^@blahblah%s&leader%s%x%s%w%s%d/%d%s%d/%d%s%d/%d%s%d,
where @blahblah is a text variable with the value *
When I fire this trigger, my leader variable doesn't get updated by the trigger. Does anyone have any ideas on how to do this? Thanks.

btw, I can get a pattern match, but only the variable leader does not get updated.
Reply with quote
tobei
Newbie


Joined: 19 Mar 2004
Posts: 9
Location: Canada

PostPosted: Tue Apr 06, 2004 1:20 pm   
 
#TRIGGER {^* (%w) (%d)~+(%d) (%w) (%d)~/(%d) (%d)~/(%d) (%d)~/(%d) (%d)} {#var Leader %1}
or
#TRIGGER {^* &Leader %d~+%d &LeaderClas %d~/%d %d~/%d %d~/%d %d} {#NOOP}
that would prolly do it too...
Reply with quote
tylanthea
Newbie


Joined: 06 Apr 2004
Posts: 4

PostPosted: Tue Apr 06, 2004 1:25 pm   
 
Hmm.. seems like that doesn't work.. Thanks for the help though
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Tue Apr 06, 2004 1:26 pm   
 
Are you saying that the line from the mud starts with * if so just quote it with ~

^~*%s&leader%s%x%s%w%s%d/%d%s%d/%d%s%d/%d%s%d,
Reply with quote
tylanthea
Newbie


Joined: 06 Apr 2004
Posts: 4

PostPosted: Tue Apr 06, 2004 1:27 pm   
 
When i used it in this format,
^*%s&Leader%s%d~+%d%s&LeaderClas%s%d~/%d%s%d~/%d%s%d~/%d%s%d

The leaderclas variable is updated, but not the leader variable.. It seems that it is skipping the leader variable and going straight to the blank space after it, and store that into the leader variable..
Reply with quote
tylanthea
Newbie


Joined: 06 Apr 2004
Posts: 4

PostPosted: Tue Apr 06, 2004 1:30 pm   
 
woooo... hahaha.. thanks nexela.. quoting it with ~ solved the problem instantly XD.
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