Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
WoW
Talk
English
Views
Read
Edit
History
More
Search
Navigation
Home
Random page
Help using wiki
Editions
for WoW
for WildStar
for Solar2D
Documentation
for WoW
for WildStar
Reference
WoW
⦁ FrameXML
⦁ AddOns
⦁ API
⦁ WoW Lua
WildStar
⦁ AddOns
⦁ API
⦁ WildStar Lua
Engine
Tools
What links here
Related changes
Special pages
Page information
Site
Recent Changes
Editing
WoW:UI FAQ/Macros and scripts
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== What? (Definitions) == {{faqq}}'''No, really. What the heck are macros and scripts? ''' === Macros === Macros are a list of commands designed to be executed in series. A macro can consist of any number of /(command)s or pure text to up 255 characters. With some exceptions, these commands behave exactly as if you had typed them into the chat window. Users wishing to use more advanced commands are recommended to see the Interface Customization and World of Warcraft API sections at https://addonstudio.fandom.com/WoW_customization. === Scripts === Usually, not just in WoW, the term Script refers to a short to medium length program, written in some kind of simple programming language (called a scripting language). The purpose of a script is usually to control another program. World of Warcraft has a powerful programming language called [[Lua]] embedded inside it, which is used for scripting. What this means is that WoW is able to understand and execute little programs written in the Lua language. However, in WoW, a script is usually not something that you use by itself, i.e. you don't just type in a script and execute it (although this is also possible). Instead, there are several places in WoW where you have the option to enter scripts as part of something else. The kind of places that you can use a script: ;/script [command] : If you type the slash command "/script" in the chat box, you can follow it with one or more valid Lua language statements (i.e. a script). ;Macros : you can enter scripts as part of macros, by putting one or more "/script" commands in your macro. So what can a script do? There are many resources on Lua scripts. However, the most important point is that scripts are able to perform many more game actions than slash commands. This is done via a set of functions (called API or Application Programming Interface) that WoW makes available for use in scripts. There is a quite extensive list of all the API functions available for use in scripts at https://addonstudio.fandom.com/WoW_customization '''NOTE: Scripts are now mainly reserved for UI, the allowable API used within the /script tag is greatly reduced. It is however still usable.''' If you wish to create a macro to cast spells or use an item, refer to the [[Most_Used_Macros#2.0_Macro_Guide|2.0 Macro guide]]. The majority of the new limitations on the "/Script" tag cover these actions. For miscellaneous actions such as switching weapons, playing music, or sending chat messages; scripts still work fine. --Digital Utopia 05:25 2 February 2007 (CST)
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)