|
Post by sirmarkus on Nov 2, 2008 6:55:40 GMT -5
there are a few buff out there that have a X number of how much you have. Example: Priest Inner Focus and the Shaman Shields .
There numbers become less when you get hit. Is it possible to get these numbers in the center buttom text display?
|
|
|
Post by lothaer on Nov 2, 2008 7:20:24 GMT -5
i think what hes asking for is a option to show how much damage/charges the shields of certain charges have left.
sounds like a good idea but put it on the back burner.
|
|
|
Post by docseuzz on Nov 6, 2008 15:19:21 GMT -5
if you can get the name of the ability triggered by the button click (e.g. "Inner Fire"), you should be able to call: _,_,_,chargeCount= UnitBuff("player","Inner Fire") if (chargeCount ) and (chargeCount>0) and (doShowCountforSphere(buttonid) ) then Lunar.Sphere:SetSphereText(chargeCount) end
or something to that effect ... I don't know if when a charge drops the PLAYER_AURAS_CHANGED event is fired or not....
just a thought and some pseudo-code....
|
|
|
Post by Moongaze on Nov 6, 2008 16:45:07 GMT -5
Yeah, having the buff stuff would probably require people to type the name of the buff, and I could always have a funtion for that to make it easier, or let people drag the spell. However, some spells that cast buffs will have a buff that is of a different name than the spell itself, although rare. I plan to add a custom item/spell count feature to the count display for the sphere text and the gauges which will let the user select a spell or item of their choice and it will display it's count. With spells, this is pretty much for spells with reagents ... but unless I'm mistaken, spells with reagents don't cast buffs that have counts. So, if the spell has no count, I could just have LS look for a buff of the same name and return the count from that as well.
Although, I thought the UnitBuff feature required buff IDs, and not buff names... so I don't know if that would work. But if it does accept buff names in the logic, that would make my life much much easier =D
|
|