WoW:XML/Script: Difference between revisions

112 bytes added ,  15 January 2023
Line 12: Line 12:
== Attributes ==
== Attributes ==
* function {{attrtype|string}} (optional)
* function {{attrtype|string}} (optional)
*:global name of function to call, in lieu of inline text.
*: named function to call using a simple global name. Can be used instead oof inline script payload text.
* method {{attrtype|string}} (optional)
* method {{attrtype|string}} (optional)
*:this frame Lua object or 'mixin' name of function to call, in lieu of inline text.
*: named method to call using this frame's Lua table or 'mixin' name of function to call, in lieu of inline text or 'function'.
* inherit ([[XML types#SCRIPTINHERITTYPE|SCRIPTINHERITTYPE]]) (optional)
* inherit ([[XML types#SCRIPTINHERITTYPE|SCRIPTINHERITTYPE]]) (optional)
*: order to run this script relative to any inherited scripts for this event. Default is 'none'.
*: order to run this script relative to any other scripts for this event including any 'inherited'. Default is 'none'.
* intrinsicOrder ([[XML types#SCRIPTINTRINSICORDERTYPE|SCRIPTINTRINSICORDERTYPE]]) (optional)
* intrinsicOrder ([[XML types#SCRIPTINTRINSICORDERTYPE|SCRIPTINTRINSICORDERTYPE]]) (optional)
*: order to run this script relative to any implementation scripts for this event. Used only in an intrinsic definition. Default is 'none'.  
*: order to run this script relative to any implementation scripts for this event. Used only in an intrinsic definition. Default is 'none'.