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
loaded | bool |
|---|
C_CVar.GetCVar
value = C_CVar.GetCVar(name)
Arguments
name | cstring |
|---|
Returns
value | string may be nil |
|---|
C_CVar.GetCVarBitfield
value = C_CVar.GetCVarBitfield(name, index)
Arguments
name | cstring | |
|---|---|---|
index | luaIndex |
Returns
value | bool may be nil |
|---|
C_CVar.GetCVarBool
value = C_CVar.GetCVarBool(name)
Arguments
name | cstring |
|---|
Returns
value | bool may be nil |
|---|
C_CVar.GetCVarDefault
defaultValue = C_CVar.GetCVarDefault(name)
Arguments
name | cstring |
|---|
Returns
defaultValue | string may be nil |
|---|
C_CVar.GetCVarInfo
value, defaultValue, isStoredServerAccount, isStoredServerCharacter, isLockedFromUser, isSecure, isReadOnly = C_CVar.GetCVarInfo(name)
Arguments
name | cstring |
|---|
Returns
value | cstring | |
|---|---|---|
defaultValue | cstring | |
isStoredServerAccount | bool | |
isStoredServerCharacter | bool | |
isLockedFromUser | bool | |
isSecure | bool | |
isReadOnly | bool |
C_CVar.RegisterCVar
C_CVar.RegisterCVar(name, [value])
Arguments
name | cstring | |
|---|---|---|
value | cstring may be nil |
C_CVar.RemoveTempCVar
C_CVar.RemoveTempCVar(name)
Arguments
name | cstring |
|---|
C_CVar.ResetTestCVars
C_CVar.ResetTestCVars()
C_CVar.SetCVar
success = C_CVar.SetCVar(name, [value])
Arguments
name | cstring | |
|---|---|---|
value | cstring may be nil |
Returns
success | bool |
|---|
C_CVar.SetCVarBitfield
success = C_CVar.SetCVarBitfield(name, index, value)
Arguments
name | cstring | |
|---|---|---|
index | luaIndex | |
value | bool |
Returns
success | bool |
|---|
C_CVar.SetTempCVar
C_CVar.SetTempCVar(name, [value])
Arguments
name | cstring | |
|---|---|---|
value | cstring may be nil |
Tables
CVarInfo structure
value | cstring | |
|---|---|---|
defaultValue | cstring | |
isStoredServerAccount | bool | |
isStoredServerCharacter | bool | |
isLockedFromUser | bool | |
isSecure | bool | |
isReadOnly | bool |