World of Warcraft Forever API · Totem.md, for your AI
Totem (global functions)
7 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
DestroyTotem
DestroyTotem(slot)
Arguments
slot | luaIndex |
|---|
GetNumTotemSlots
numSlots = GetNumTotemSlots()
Returns
numSlots | number |
|---|
GetTotemCannotDismiss
cannotDismiss = GetTotemCannotDismiss(slot)
Arguments
slot | luaIndex |
|---|
Returns
cannotDismiss | bool may be nil |
|---|
GetTotemDuration
duration = GetTotemDuration(slot)
Arguments
slot | luaIndex |
|---|
Returns
duration | LuaDurationObject |
|---|
GetTotemInfo
haveTotem, totemName, startTime, duration, icon, modRate, spellID = GetTotemInfo(slot)
May return nothing.
Its returns can be secret values (in some instances and fights): guard them before any arithmetic.
Arguments
slot | luaIndex |
|---|
Returns
haveTotem | bool | |
|---|---|---|
totemName | cstring | |
startTime | number | |
duration | number | |
icon | fileID | |
modRate | number | |
spellID | number |
GetTotemTimeLeft
timeLeft = GetTotemTimeLeft(slot)
Its returns can be secret values (in some instances and fights): guard them before any arithmetic.
Arguments
slot | luaIndex |
|---|
Returns
timeLeft | number may be nil |
|---|
TargetTotem
TargetTotem(slot)
Arguments
slot | luaIndex |
|---|
Tables
TotemInfoScript structure
haveTotem | bool | |
|---|---|---|
totemName | cstring | |
startTime | number | |
duration | number | |
icon | fileID | |
modRate | number | |
spellID | number |