Another question about SavedVariables
View Single Post
07/25/18, 02:33 PM
Join Date: Mar 2014
Use two variables in your addon, like accData and charData. Assign them to the appropriate zoysavedvars:newaccountwide or :newuniquecharacterid (don't know the exact name anymore) functions.
The parameters of both function calls should use the same addon name as identifier but different table keys (parameter before the default values, after the version, which is most of the time nil but accepts a string). This will make the account wides e.g. not directly appear below AccountWide but your chosen settings table key.
Works fine for me. I'll first load the accountwide settings, check some code from them and then load char settings to local settings (if user chose to store it per char), or just will use the account wides if he chose to use them (and assign them to local settings then).
View Public Profile
Send a private message to Baertram
Find More Posts by Baertram