I'm looking for a way to save information between luatext updates (as local seems to reset its value every time the text is updated)
If i don't declare a variable as local, it gets shared between ALL the texts (I think I may be polluting some global space >.>)
What is the accepted/correct way to do this?
An example would be a counter that goes up every time a player hits the max rage event.
If there are 3 warriors in the party how do i keep a separate counter for each warrior?
- Registered User
Member for 13 years, 10 months, and 3 days
Last active Fri, Oct, 4 2013 21:32:41
- 0 Followers
- 4 Total Posts
- 0 Thanks
Jun 1, 2010Posted in: Unit FramesQuote from Shefki
if event == "ACTIVE_TALENT_GROUP_CHANGED" then
Is it possible to grab the passed in arguments for events?
Like this (shamelessly stolen from wowwiki)
local timestamp, type, sourceGUID, sourceName, sourceFlags, destGUID, destName, destFlags = select(1, ...) if (event=="COMBAT_LOG_EVENT_UNFILTERED") then if (type=="SPELL_DAMAGE") then local spellId, spellName, spellSchool = select(9, ...) if (spellName=="Mind Blast" and critical==true) then DEFAULT_CHAT_FRAME:AddMessage("Mind Blast Just Critted!"); end end end
Feb 19, 2010Before I open a ticket for this, I thought I'd ask in case it's already possible.Posted in: Unit Frames
There is currently a 'text' which displays incoming damage/heals as flashing red/green numbers. I would like to tap into this, with the following logic:
If it's a critical heal, that was cast by me (a disc priest) add 0.3*the heal amount to an internal counter.
If it's an absorb, subtract the absorbed amount from the internal counter (this makes several assumptions I know, but it should be close enough)
Ideally it would also react to PW:S casts and add the appropriate amount to the internal counter too.
Oct 20, 2009I've been messing around with the fader module, and I was wondering what else could be specified in that manner for individual units in a group.Posted in: Unit Frames
For example, I have made a fader module which effectively 'hides' the player in a raid group (fully transparent) and allows me to have a 3x3 setup in 10 man raids. Unfortunately the unit frame is still there, just invisible.
Would it be possible to also set the unit's 'Click through' property (or whatever it is called) based on a simple UnitIsUnit check?
If it is already possible, what module type will I need to use as a base?
- To post a comment, please login or register a new account.