World of Warcraft Forever API · Console.md, for your AI
Console (global functions)
10 functions, 7 events, 4 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
distance = CalculateStringEditDistance(firstString, secondString)
Arguments
firstString | stringView | |
|---|
secondString | stringView | |
|---|
Returns
result = ConsoleEcho(command, [addToHistory], [prefix])
Arguments
command | cstring | |
|---|
addToHistory | bool default false | |
|---|
prefix | cstring may be nil | |
|---|
Returns
result = ConsoleExec(command, [addToHistory])
Arguments
command | cstring | |
|---|
addToHistory | bool default false | |
|---|
Returns
commands = ConsoleGetAllCommands()
Returns
color = ConsoleGetColorFromType(colorType)
Arguments
Returns
fontHeightInPixels = ConsoleGetFontHeight()
Returns
consoleIsActive = ConsoleIsActive()
Returns
ConsolePrintAllMatchingCommands(partialCommandText)
Arguments
partialCommandText | cstring | |
|---|
ConsoleSetFontHeight(fontHeightInPixels)
Arguments
SetConsoleKey(keystring)
Arguments
Events
message | cstring | |
|---|
colorType | number | |
|---|
eventName | cstring | |
|---|
value | cstring | |
|---|
showConsole | bool may be nil | |
|---|
Tables
Debug | 0 |
|---|
Graphics | 1 |
|---|
Console | 2 |
|---|
Combat | 3 |
|---|
Game | 4 |
|---|
Default | 5 |
|---|
Net | 6 |
|---|
Sound | 7 |
|---|
Gm | 8 |
|---|
Reveal | 9 |
|---|
None | 10 |
|---|
DefaultColor | 0 |
|---|
InputColor | 1 |
|---|
EchoColor | 2 |
|---|
ErrorColor | 3 |
|---|
WarningColor | 4 |
|---|
GlobalColor | 5 |
|---|
AdminColor | 6 |
|---|
HighlightColor | 7 |
|---|
BackgroundColor | 8 |
|---|
ClickbufferColor | 9 |
|---|
PrivateColor | 10 |
|---|
DefaultGreen | 11 |
|---|
Cvar | 0 |
|---|
Command | 1 |
|---|
Macro | 2 |
|---|
Script | 3 |
|---|