WowAddons

World of Warcraft Forever API · C_CVar.md, for your AI

C_CVar

12 functions, 1 tables, as Blizzard documents them for Forever 1.60.1 (70959).

Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.

Functions

C_CVar.AreCVarsLoaded

loaded = C_CVar.AreCVarsLoaded()

Returns

loadedbool

C_CVar.GetCVar

value = C_CVar.GetCVar(name)

Arguments

namecstring

Returns

valuestring may be nil

C_CVar.GetCVarBitfield

value = C_CVar.GetCVarBitfield(name, index)

Arguments

namecstring
indexluaIndex

Returns

valuebool may be nil

C_CVar.GetCVarBool

value = C_CVar.GetCVarBool(name)

Arguments

namecstring

Returns

valuebool may be nil

C_CVar.GetCVarDefault

defaultValue = C_CVar.GetCVarDefault(name)

Arguments

namecstring

Returns

defaultValuestring may be nil

C_CVar.GetCVarInfo

value, defaultValue, isStoredServerAccount, isStoredServerCharacter, isLockedFromUser, isSecure, isReadOnly = C_CVar.GetCVarInfo(name)

Arguments

namecstring

Returns

valuecstring
defaultValuecstring
isStoredServerAccountbool
isStoredServerCharacterbool
isLockedFromUserbool
isSecurebool
isReadOnlybool

C_CVar.RegisterCVar

C_CVar.RegisterCVar(name, [value])

Arguments

namecstring
valuecstring may be nil

C_CVar.RemoveTempCVar

C_CVar.RemoveTempCVar(name)

Arguments

namecstring

C_CVar.ResetTestCVars

C_CVar.ResetTestCVars()

C_CVar.SetCVar

success = C_CVar.SetCVar(name, [value])

Arguments

namecstring
valuecstring may be nil

Returns

successbool

C_CVar.SetCVarBitfield

success = C_CVar.SetCVarBitfield(name, index, value)

Arguments

namecstring
indexluaIndex
valuebool

Returns

successbool

C_CVar.SetTempCVar

C_CVar.SetTempCVar(name, [value])

Arguments

namecstring
valuecstring may be nil

Tables

CVarInfo structure

valuecstring
defaultValuecstring
isStoredServerAccountbool
isStoredServerCharacterbool
isLockedFromUserbool
isSecurebool
isReadOnlybool

It takes WowAddons

Free, for Windows, macOS and Linux: it puts the addon in your game in one click and keeps it up to date. Open it once, then press Install again.

WowAddons runs on your computer: open wowaddons.gg there.

Download for Windows