Thread: SavedVars
View Single Post
06/15/18, 04:28 PM   #4
Tarlac
 
Tarlac's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2018
Posts: 10
Originally Posted by Baertram View Post
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
Yes Thank you Baertram, I was able to get this working. It took me a couple of days of researching, but I finally found out what you were talking about. ZO_SavedVars:NewCharacterIdSettings is what I finally used then was able to cycle through just as you said. Many thanks!!

Tarlac.
  Reply With Quote