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


Joined: 07 Apr 2003
Posts: 8

PostPosted: Thu May 20, 2004 10:10 pm   

Problems with ",'s"
 
<Health %d/%d
#If(1%<700) {#EXEC ;west;up;south}
Thats my trigge rim using right now. The mud im playing putd a "," on numbers over 1k. Now i want to put that in my trigger so it allows me to execute west up south like above. I would like to know how to do this just changeing the #If (1%<700) to 2,500. When i try putting a" ," in I get a synthax error.

<Health 2,500/12420 thats what the prompt would look like.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Thu May 20, 2004 11:09 pm   
 
Use the %n wildcard instead of %d.

Got to love the Pattern Matching help page.
Reply with quote
immortalking
Newbie


Joined: 07 Apr 2003
Posts: 8

PostPosted: Thu May 20, 2004 11:49 pm   
 
<Health %n/%n
#If(1%<2500) {#EXEC ;west;up;south}
So that would be the new trigger? Cause it seems that it just keeps shooting off even when my health is over 2500
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Fri May 21, 2004 12:29 am   
 
PATTERN MATCHING HELPFILE will explain the things you are doing wrong

Copy and paste this in the command line and hit enter
#TR {^~<Health (%n)/(%n)} {#IF (%1<2500) {#EXEC ;west;up;south}} "" {prompt|nocr}
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