Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Aselarin
Beginner


Joined: 23 Jul 2005
Posts: 26

PostPosted: Wed Jul 06, 2011 9:18 pm   

Help with capure trigger
 
Hi!

i need some help with capturing a value,
this is the pattern

Priest (11) Hunter (7)

and i want it to capture the numbers

any suggestions ?
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4691
Location: Pensacola, FL, USA

PostPosted: Wed Jul 06, 2011 9:20 pm   
 
#TR {Priest ~((%d)~) Hunter ~((%d)~)} {priests=%1;hunters=%2}

The parenthesis in the pattern need to be escaped out with a tilde, because otherwise it thinks it is trying to capture a section into a variable
_________________
Discord: Shalimarwildcat
Reply with quote
Aselarin
Beginner


Joined: 23 Jul 2005
Posts: 26

PostPosted: Wed Jul 06, 2011 10:52 pm   
 
thanks alot!

that worked perfectly
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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