View Single Post
07/25/18, 03:59 PM   #3
Dueydoodah
Join Date: Aug 2015
Posts: 6
Originally Posted by Baertram View Post
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).
Thank you. I'll give it a shot.
  Reply With Quote