Use {{faqq}} and {{faqa}}
(Update me too!) |
(Use {{faqq}} and {{faqa}}) |
||
| Line 1: | Line 1: | ||
==Macros== | |||
{{faqq}}How do I write a Macro? | |||
{{faqa}}See the [[Macros]] page. | |||
{{faqq}}How do I write a Macro to do XXXX? | |||
{{faqa}}Check the [[Most Used Macros]] to see if someone has already done something like this. Check the question below "What can't a macro do?" to see if its going to be impossible. If neither of these help, try asking on the [http://forums.worldofwarcraft.com/board.aspx?fn=wow-interface-customization World of Warcraft UI & Macros Forum]. | |||
{{faqq}}What can't a macro do? | |||
{{faqa}}A Macro cannot: | |||
*Use more than 255 characters | *Use more than 255 characters | ||
*Call another macro (with the addon "Supermacro" it is now easy to run other macros in your macro) | *Call another macro (with the addon "Supermacro" it is now easy to run other macros in your macro) | ||
| Line 20: | Line 19: | ||
*Output anything to file other than saved variables | *Output anything to file other than saved variables | ||
{{faqq}}So what can a macro do? | |||
{{faqa}}You can call [[World of Warcraft API|any script command]] (/script ''ScriptFunction''), any standard WoW /command such as /say or /attack, and any additional /commands made available by the AddOns you've installed, for example if you install [[Cosmos]] you can use the [[Cosmos Slash Commands]]. If you need to write a long macro, write it as an AddOn in a lua file and bind it to a slash command, just like the Cosmos ones. See the section on Lua and XML for more details. | |||
{{faqq}}What's the real deal with pauses? | |||
{{faqa}}You can't use a pause before a spell or ability. However... you can kinda do pauses in certain ways. Firstly, the [[Cosmos]] [[Cosmos Slash Commands|slash commands]] includes a /in option. This will NOT work with spells or abilities, but works fine with chat commands. For example: "/in 5 /say Heal on the way!". You can also use certain script commands based on time, such as the movement commands. See the [[World of Warcraft API]] for more on those. | |||
== Also See == | |||
* [[UI FAQ/Macros and Scripts]] | |||
* [[Most used macros]] | |||
[[Category: | [[Category:FAQs]] [[Category:Macros]] | ||