Thread Tools Display Modes
05-15-09, 10:39 AM   #1
Tornaattori
A Defias Bandit
Join Date: May 2009
Posts: 3
Help with MSBT Trigger

Hi, I've been using Mik's Scrolling Battle Text for ages now, but I've only recently begun implementing my own triggers.
I have read the readme-file and done some testing, but I can't seem to get this particular trigger to work.

Here's what I want to do:
-Arena: Someone on the opposing team goes below 25% hp, a notification pops up saying "<name of the player (maybe even pet)> is below 25%!"

If this has been anwsered in some previos post, please throw me a link!
Thanks!

/Tornaattori
  Reply With Quote
05-15-09, 10:47 AM   #2
Mikord
A Theradrim Guardian
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 61
There isn't a way to do it with the current version. You could do it for a member on your own team or your current target, but not any random arena opponent.
  Reply With Quote
05-15-09, 10:54 AM   #3
Tornaattori
A Defias Bandit
Join Date: May 2009
Posts: 3
Yeah, I managed to get it working for my current target. I'm still having problems getting the name of my target to show though.

Is it even possible to get the name of the target to show or am I just doing something horribly wrong?

Thanks for the quick answer!

/T
  Reply With Quote
05-15-09, 11:59 AM   #4
Mikord
A Theradrim Guardian
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 61
I think you just need to use the %r (name of the recipient) event code. I believe that one is available for health changes. It should also be colored according to the class of that person if you have the class coloring options enabled.
  Reply With Quote
05-15-09, 03:08 PM   #5
Tornaattori
A Defias Bandit
Join Date: May 2009
Posts: 3
Originally Posted by Mikord View Post
I think you just need to use the %r (name of the recipient) event code. I believe that one is available for health changes. It should also be colored according to the class of that person if you have the class coloring options enabled.
If I use "%r" in the Output Message, I get the following error (spam inc):

Date: 2009-05-15 22:49:46
ID: 1
Error occured in: Global
Count: 1
Message: ...rface\AddOns\MikScrollingBattleText\MSBTTriggers.lua line 457:
bad argument #1 to 'string_find' (string expected, got nil)
Debug:
[C]: ?
[C]: ?
...rface\AddOns\MikScrollingBattleText\MSBTTriggers.lua:457:
...rface\AddOns\MikScrollingBattleText\MSBTTriggers.lua:431
...rface\AddOns\MikScrollingBattleText\MSBTTriggers.lua:569:
...rface\AddOns\MikScrollingBattleText\MSBTTriggers.lua:519
...rface\AddOns\MikScrollingBattleText\MSBTTriggers.lua:705:
...rface\AddOns\MikScrollingBattleText\MSBTTriggers.lua:702
AddOns:
Swatter, v3.1.13 (<%codename%>)
Bartender4, v4.3.2
ButtonTimers, v1.2.2
Examiner, v09.04.18
Gladius, vr25
InspectEquip, v1.2.3
InternalCooldowns, v
MikScrollingBattleText, v5.4.55
MSBTOptions, v
Necrosis, v3.0 (r221)
oRA2, v2.0.$Revision: 657 $
Prat30, v3.1.5
Prat30HighCPUUsageModules, v
Prat30Libraries, v
Quartz, v1.0
QuartzFlight, v1.0
QuartzGCD, v1.0
QuartzInterrupt, v1.0
QuartzLatency, v1.0
QuartzMirror, v1.0
QuartzPet, v1.0
QuartzPlayer, v1.0
QuartzRange, v1.0
QuartzSwing, v1.0
QuartzTimer, v1.0
QuartzTradeskill, v1.0
RatingBuster, v
Recount, v
SexyMap, v
(ck=28b)



There may be a problem with the way I've set up the trigger, so here's how I've done it:

Trigger Classes:
-All Classes

Main Events:
-Health Change - 2 Conditions:
-Threshold - Is Less Than - 25
-Unit ID - Is Equal To - Target (also have one for focus)

Output Message: %r is below 25!

Any further help would be very much appreciated!

/T
  Reply With Quote
05-15-09, 03:18 PM   #6
Mikord
A Theradrim Guardian
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 61
Oops. You have it correct. It looks like I introduced a little bug when updating for class coloring. I'm dropping a new rev later tonight and I'll have it fixed in that.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Help with MSBT Trigger


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off