Originally Posted by Baertram
SV is a global table with the name you specify at the txt file per ## SavedVariables: <globalName>
So your your sv file on the disk and you see the contents like
<globalName> = {
["@AccountName"] = {
["Charactername here"] = { ....
Just update it like this then:
<globalName>["@AccountName"]["Charactername here"]["variableName"] = xyz
|
I have accountwide and character variables already set up.. I guess what I'm asking is is it possible to edit "char1" char variable from "char2" and how?
my variables are setup like this:
Code:
MyAddon.savedVariables = ZO_SavedVars:NewAccountWide( MyAddon.svName, MyAddon.svVersion, nil, defaultSavedVars )
MyAddon.charVariables = ZO_SavedVars:NewAccountWide( MyAddon.svName, MyAddon.svVersion, GetUnitName("player"), defaultSavedCharVars )
is it possible to do a "MyAddon.charVariables.something = something" to save something on each characters variables from a single character?