 |
Aselarin Beginner
Joined: 23 Jul 2005 Posts: 26
|
Posted: 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 ? |
|
|
 |
shalimar GURU

Joined: 04 Aug 2002 Posts: 4718 Location: Pensacola, FL, USA
|
Posted: 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 |
|
|
 |
Aselarin Beginner
Joined: 23 Jul 2005 Posts: 26
|
Posted: Wed Jul 06, 2011 10:52 pm |
thanks alot!
that worked perfectly |
|
|
 |
|
|