Slash commands allow the player to type commands into the chat window to interact with add-ons. This tutorial describes the necessary steps to add slash commands to your addon. A fast example: SLASH_TEST1 = "/test1" SLASH_TEST2 = "/addontest1" SlashCmdList["TEST"] = function(msg) print("Hello World!") end When a user types a command starting with "/test1" or "/addontest1", WoW will run the Lua function assigned to SlashCmdList["TEST"], passing the command string without "/test1 " to the function as 'msg'.
Attributes | Values |
---|---|
rdfs:label |
|
rdfs:comment |
|
dcterms:subject | |
dbkwik:wowwiki/pro...iPageUsesTemplate | |
abstract |
|