Originally Posted by Tazmyr
Trying to understand the behavior and interaction between ZO_SavedVars:NewCharacterId() and ZO_SavedVars:NewAccountWide() ...
If I want to offer character-specific saved variables, would I call BOTH functions and then decide which set of variables to actually use?
If I do call BOTH, at save time, does the game save BOTH sets of variables?
Thanks!
Tazmyr
|
You'll actually want to call them on add-on loaded. It'll then save automatically when the user logs out or reloadui. If you call both, then both will be saved - they're different tables and don't affect each other
If you just want to offer character specific variables, then you only need the characterID variables. If you plan to do different svaed variable profiles (e.g. writ crafter, you can choose between account wide and character specific) then you'd use both.