View Single Post
03/02/14, 05:41 PM   #4
Errc
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 30
Originally Posted by Myrroddin View Post
I mean if you want, say, MyAddOn_SV and MyAddOnDB. One would be general settings, the other could be character specific, with both in the same AddOn. You could do this in WoW, so I'm guessing you can do this in ESO. I just want to know the syntax in the .txt file, whether the two are separated by spaces or commas or listed on two lines.

The other option would be one SV file, where you would have MyAddOnDB.universal_setting.someSetting and MyAddOnDB.character_setting.someSetting.

Think of how AceDB allowed this. You could have MyAddOnDB.profile.someSetting and MyAddOn.Seerah.someSetting.

The second option would be better, but I could work with either. Just wondering how you would set it up.
No need to make multiple saved vars files. Can make separate SV for character specific or for the whole account.

Code:
sv.char = sv.char or ZO_SavedVars:New( SvName , version , "main" , defaultChar )
sv.profile = sv.profile or ZO_SavedVars:NewAccountWide( SvName , version , "main" , defaultAccount )
  Reply With Quote