#Run custom grow code on spec change

1 messages · Page 1 of 1 (latest)

tulip ermine
#

Is there a way to "rerun" the custom code after i changed class specs? Maybe with "run on..."?I have custom grow code that orders the auras in rows with a specific limit for each row. This limit should change if the SpecId == 267 (destro). My code is working but it doesn't get rerun after changing spec.

little ember
#

you need at least one controlled child aura which changes state in a way the dgroup is "interested in" for the layout to be updated

#

the "run on" input box lets you choose which parts of the child aura(s) state should, if they change, trigger grow code

rain elk
#

You can also just have some random aura that pops up for a ms on spec change.
That (would force the sort to run, and that) forces the grow to run

tulip ermine
#

Great advice, but i cant find a trigger which only fires on spec change or just fires once...i can't really find something in the default option. so i guess custom trigger it is. I found PLAYER_SPECIALIZATION_CHANGED as an event but im not sure how to use that in a trigger. Do you guys have a snippet lying around for a custom trigger which fires after spec change or can me help out how it might look?

rain elk
#

Custom -> Event
Event: PLAYER_SPECIALIZATION_CHANGED
Custom Trigger Function: function() return true end
Timed Hide: 0.001