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


Joined: 01 Jan 2003
Posts: 32

PostPosted: Tue Jun 15, 2004 5:04 am   

Triggers are a mess
 
What do I use in a trigger to show if something isn't always in the trigger?

2|709 Lord

3| 8 Lord

How can I match these two? in the first one there is no space between | and 709 but in the second there are 2

#TR [1-40]|(what do I put here)[1-999] Lord} {...}
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Tue Jun 15, 2004 5:13 am   
 
Your best bet for something like that is either three triggers or a more generic trigger

#TR {(%d)~|(*) %w} {...}
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Tue Jun 15, 2004 11:14 am   
 
Use the fixed width wildcard &nn.

#TR {%d~|&3 %w} {...}

You can put parenthesis on whatever you want to capture.
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Tue Jun 15, 2004 12:22 pm   
 
Yeah or what Vijilante said. I keep forgetting about those :P
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