Thread Tools Display Modes
Prev Previous Post   Next Post Next
04/02/14, 06:09 PM   #1
Vuelhering
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 169
two questions about saved variables

Maybe someone can shed some light on this...

Q1:
Let's say I have a saved variable named "sv", which I load through
Code:
sv = ZO_SavedVars:New("myaddon", major, nil, {} , nil) or {}
I can do things like
sv.foo = "bar", and d(sv.foo) produces "bar".

But traversing sv with pairs() is bizarre. How do I traverse the keys I just stored?


Q2:
Saved variables are different for each character.

How do I make one that's global to all characters?
  Reply With Quote
 

ESOUI » Developer Discussions » General Authoring Discussion » two questions about saved variables


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off