#Looking for ways to generalize WA around spell id

1 messages · Page 1 of 1 (latest)

exotic marlin
#

Hi, I'm making a weakaura for a spell id that uses custom scripts that need to use that spell id. Would be great if I could generalize it to work with any spell id that I can put it one place and have the trigger scripts use it. For example, I load the weakaura when that spell id is known (learned), but is there any way for me to access that spell id from within a trigger script. Or is the name of the weakaura in any way made accessible from within a script in which case I could name the weakaura as the spell id.
Any ideas?
Thanks!

plush lion
#

You want to check load settings?

Tbh, what you're describing is Custom Options

exotic marlin
#

Yeah if I can check load settings from within a script that would do it. Is this possible?

plush lion
#

Yes, but I'd encourage you to just use Custom Options

exotic marlin
#

Yes this is what I needed, thanks. Curious if it's possible to have the load condition evaluate to the custom option?

#

If not, not that big of a deal : )

plush lion
#

That's not possible, no

exotic marlin
#

Okay. I looked a bit around recursively in the members of aura_env but couldn't find where load conditions are stored. Idk if you have any ideas where I can look for it 😛

plush lion
#

WeakAuras.GetData(auraName)
DO NOT write to the table this gives, only read