View Single Post
11/16/23, 03:15 AM   #3
sinnereso
AddOn Author - Click to view addons
Join Date: Oct 2022
Posts: 247
Originally Posted by Baertram View Post
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?

Last edited by sinnereso : 11/16/23 at 03:25 AM.
  Reply With Quote