Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API EditMacro

Last wiki revision 2023-06-10

Modifies an existing macro. macroID = EditMacro(macroInfo, name [, icon, body])

  • macroInfo: - The index or name of the macro to be edited. Index ranges from 1 to 120 for account-wide macros and 121 to 138 for character-specific.
  • name: - The name to assign to the macro. The current UI imposes a 16-character limit. The existing name remains unchanged if this argument is nil.
  • icon: : FileID - The path to the icon texture to assign to the macro. The existing icon remains unchanged if this argument is nil.
  • body: - The macro commands to be executed. If this string is longer than 255 characters, only the first 255 will be saved.
  • macroID: - The new index of the macro, as displayed in the "Create Macros" UI. Same as argument "index" unless the macro name is changed, as they are sorted alphabetically.
  • If this function is called from within the macro that is edited, the rest of the macro (from the final character's position of the /run command onward) will run the new version.

Source

https://warcraft.wiki.gg/wiki/API_EditMacro · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.