View Single Post
05-27-23, 07:54 PM   #1
MinguasBeef
A Wyrmkin Dreamwalker
AddOn Author - Click to view addons
Join Date: May 2019
Posts: 51
How to identify the SavedVariables / SavedVariablesPerCharacter vars?

So, in my addon toc let's say I have the following...

## SavedVariables: MAV
## SavedVariablesPerCharacter: MCV

I know that the account wide variables will be stored in MAV and the character variables will be stored in MCV.

Is there any way I can retrieve these variables with a function on a per addon basis?
Ex. If I did GetSavedVariables("MyAddonName") I would want to get MAV back or if I did GetSavedVariablesPerCharacter("MyAddonName") I would want to get MCV back. Is there any built in function in the WoWAPI like this?

Ex.
GetSavedVariables("Dominos") might return the DominosDB variable since Dominos.tos is set up such as
## SavedVariables: DominosDB
  Reply With Quote