I should know this too...

Posted by David Berthiaume on Wed 13 Apr 2005 08:20 AM — 2 posts, 14,502 views.

#0
Ok, then, I got a trigger I need to set a variable. That part is easy. The tricky part is making it work.
| Name:Tubur       Hero Level:317            Align:Chaotic-Good      |

Thats the line.

In that line, I want to match only the Hero Level:317


Now, I can make it highlight it just fine, using \d+

But I need that nmber to be a wildcard. As soon as I do, it highlights the Align part as well, which is useless to me. I suppose I could make the entire line a trigger, but that kinda seems to be a bloated trigger.
Amended on Wed 13 Apr 2005 08:21 AM by David Berthiaume
Russia #1
Actually, a partial trigger is going to be more "bloated" than the one that matches the entire line, due to how regular expressions are processed. You always want to try to make the trigger as specific as possible. But in this case you can only use a partial trigger. Try:

\sHero Level:(\d+)\s