#Simple move cast bar but it keeps resetting

3 messages · Page 1 of 1 (latest)

cloud canopy
#

I made a very simple WA to move my cast bar as the default position is not ideal for one of my characters. However it constantly resets which seems to be related to after looting, talking to a vendor, NPC, etc. I have tried "Always Active Trigger" within Player/Unit Info conditions as well as Custom Event (UNIT_SPELLCAST_START) to try and provoke it anytime I cast a spell. I can't figure out how to keep it where I move it?

The Action Init Custom Function is simply:

if aura_env then
CastingBarFrame:ClearAllPoints()
CastingBarFrame:SetPoint("CENTER", UIParent, "CENTER", 0, -375)
print("Cast bar moved")
end

Thank you for any insight, I am new to LUA and a WA noob.

cedar swan
#

Action Init only gets checked once when the aura is loaded for the first time, you'd want Action On Show or conditions tab if you want it to run code when something happens in the trigger.

but WeakAuras really isn't suited for what you're trying to do, it'd be best to use another addon like https://www.curseforge.com/wow/addons/moveany

cloud canopy
#

That makes sense. Do you know if it would be best to keep the always active trigger? Does that like execute constantly or?

As for the Addon, I used to use that but didn't like it and it had a bunch of annoying features that come packaged with it, so I wrote my own addon with the code above and had the same issues with it constantly resetting. I didn't know how to make it persistent, so this led me to WA as it's fairly light weight.