In short, you don't.
The game reads information from the various SavedVariables files for addons when your character logs in. After that, the files aren't used until your character logs out or you /reload at which time all the files are overwritten with what is currently "in-game".
Because of this you can't usefully write to the files while playing.
Last edited by Fizzlemizz : 01-23-21 at 09:17 AM.
|