Thread: SavedVars
View Single Post
06/09/18, 01:53 PM   #3
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,912
First save your non accountwide data by help of the unique char id, instead of using the old way by their name! Names can change, ids wont.

Then you are able to access your savedvars via their global variable MyAddonSavedVariable. Your account name will be GetDisplayName(). Just do something like local sv = MyAddonSavefVariable['Default'][GetDisplayName()].
For uniqueCharId, charSavedVars in pairs(sv) do
d(charSavedVars["OffsetX"])
End
  Reply With Quote