Search found 25 matches

by Duugan
Fri Sep 09, 2016 1:23 am
Forum: Scripts & Packages
Topic: Targetting help
Replies: 47
Views: 38600

Re: Targetting help

Ok Chrio. Thanks again. Those examples did in fact help. I had set up a trigger to eat/drink when I'm hungry/thirsty and it was bugging me that when sleeping, it would trigger and try to run the script when I wasn't awake. I made 2 more triggers for sleep and awake and set variables accordingly. The...
by Duugan
Thu Sep 08, 2016 8:52 pm
Forum: Scripts & Packages
Topic: Targetting help
Replies: 47
Views: 38600

Re: Targetting help

Thanks Chrio. I tested it out this morning and it was working like a charm. I even made one for HP (\d+)\(/d+) MP to report my mana. Then I was feeling ambitious and used said mana variables in a practice trigger that uses offensive spells only if I'm over 50% mana. Then I made an alias that convert...
by Duugan
Thu Sep 08, 2016 10:40 am
Forum: Scripts & Packages
Topic: Targetting help
Replies: 47
Views: 38600

Re: Targetting help

It's been a while, so I don't remember every issue I had... I know originally I had [Name] #/# HP and it wouldn't read the number with anything I tried. I changed it to .* and it got the name and number, so I moved the name elsewhere and left the code alone. I suppose in hindsight, I needed an escap...
by Duugan
Wed Sep 07, 2016 10:04 pm
Forum: Scripts & Packages
Topic: Targetting help
Replies: 47
Views: 38600

Re: Targetting help

I wasn't using the $ because there is indeed more after the HP. In order to capture the 123/456 though, it requires a perl string, right? Is that why I had to use (.*) because it should have been (\d+)/\(\d+) HP?
by Duugan
Wed Sep 07, 2016 3:00 pm
Forum: Scripts & Packages
Topic: Targetting help
Replies: 47
Views: 38600

Re: Targetting help

As you are not interested in capturing whatever \w+ matches ("Name") you don't put it in parenthesise...! If you did you'd have to change the indexes for matches[...] in the script. For testing purposes, I was just changing the text color with the script. The <> were giving me issues, but...
by Duugan
Wed Sep 07, 2016 9:33 am
Forum: Scripts & Packages
Topic: sendQueue function
Replies: 4
Views: 5979

Re: sendQueue function

chrio wrote:Thanks for sharing. It's nice that it handles fractions of seconds aswell.
I agree. It sounds awesome, but I'm a self-taught (with forum help) novice that will never understand scripting enough to even attempt this table nonsense. :D
by Duugan
Wed Sep 07, 2016 7:21 am
Forum: Scripts & Packages
Topic: Targetting help
Replies: 47
Views: 38600

Re: Targetting help

chrio wrote:
Duugan wrote:Any idea how to get a trigger for HP with <Name><###/### HP?
Perl regex pattern: ^<\w+><(\d+)/(\d+) HP$
Interesting. In this instance, the \w+ doesn't need to be in parenthesis? I tried something similar, but had it in parenthesis and it wasn't working. I imagine that's why?
by Duugan
Tue Sep 06, 2016 2:50 am
Forum: Scripts & Packages
Topic: Targetting help
Replies: 47
Views: 38600

Re: Targetting help

I convinced her to change it to Name ###/### HP and that works just fine. :)
by Duugan
Tue Sep 06, 2016 1:36 am
Forum: Scripts & Packages
Topic: Targetting help
Replies: 47
Views: 38600

Re: Targetting help

Any idea how to get a trigger for HP with <Name><###/### HP?
My wife is stubborn and I haven't been able to get it to register...
by Duugan
Mon Sep 05, 2016 2:36 pm
Forum: Scripts & Packages
Topic: Targetting help
Replies: 47
Views: 38600

Re: Targetting help

Ok, well I used a combination of stuff to get it how I have it now.

Thanks again guys. I doubt I'd ever have been able to figure ANY of this out without your help! :)