Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

XML/Script

Last wiki revision 2021-08-16

<Script> (child of ) executes Lua code. <Script file="" /> <Script> -- Lua code </Script>

  • file - Relative path to a file, in lieu of coding Lua inside the XML file.
  • Executed when reached by the XML parser, going from top to bottom.
  • Similar to when referring to another file.
  • Similar to except placed in rather than a.

The following code creates the frame first, then runs a script that refers to it:

The following code runs the script first, causing an error:

Source

https://warcraft.wiki.gg/wiki/XML/Script · 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.