WowAddons

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

slotluaIndex

GetNumTotemSlots

numSlots = GetNumTotemSlots()

Returns

numSlotsnumber

GetTotemCannotDismiss

cannotDismiss = GetTotemCannotDismiss(slot)

Arguments

slotluaIndex

Returns

cannotDismissbool may be nil

GetTotemDuration

duration = GetTotemDuration(slot)

Arguments

slotluaIndex

Returns

durationLuaDurationObject

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

slotluaIndex

Returns

haveTotembool
totemNamecstring
startTimenumber
durationnumber
iconfileID
modRatenumber
spellIDnumber

GetTotemTimeLeft

timeLeft = GetTotemTimeLeft(slot)

Its returns can be secret values (in some instances and fights): guard them before any arithmetic.

Arguments

slotluaIndex

Returns

timeLeftnumber may be nil

TargetTotem

TargetTotem(slot)

Arguments

slotluaIndex

Tables

TotemInfoScript structure

haveTotembool
totemNamecstring
startTimenumber
durationnumber
iconfileID
modRatenumber
spellIDnumber

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