RegisterForSave

From Warcraft Wiki
Jump to navigation Jump to search
Links
Info
Added in 1.0.0

Registers a global with the specified name to be saved.

RegisterForSave("variable")

Arguments

variable
String - The name of the variable to save.

Details

  • This function is only available to secure code, and will save the variable in the WTF/Account/ACCOUNTNAME/SavedVariables.lua file.
  • Addons must use the SavedVariables and SavedVariablesPerCharacter .toc fields to specify names of variables they want to save.

Patch changes