How many macros wow




















I tried to make a countdown macro for using my Shroud of Concealment, but alas no luck. I do not want an addon for just this. In advance. In another comment, someone asked about having multiple sets of brackets, semicolons, etc. Comment by Unaffiliated Tested 9. Comment by alanwelch91 can you add a bit on castsequence macros? Please keep the following in mind when posting a comment: Your comment must be in English or it will be removed. Unsure how to post?

Check out our handy guide! Simply browse for your screenshot using the form below. Screenshots containing UI elements are generally declined on sight, the same goes for screenshots from the modelviewer or character selection screen. Please review our Screenshot Guidelines before submitting! WoWPedia has a list of many possible slash commands available to the default game client. If you want to see a full list, you can pull it directly, in-game, with a script below in the Tips and Tricks section of the guide.

Many addons also add their own slash commands, usually to open a configuration menu or perform a specific action; most of these can be used from a macro as well as typed directly into the chat edit box e. There is also a special macro command, showtooltip. This will show the icon and information for an item or ability, the same as if you had dragged the item or ability onto your action bar.

This macro, when placed on your action bar, would function exactly the same as dragging the spell Heal from your spellbook. This can be very helpful when trying to keybund UI actions not visible in the default keybinding UI.

Another powerful use would be conditional branching for scripts, which enables you to do some pretty advanced stuff. Macros cannot make smart decisions for you.

Macros cannot be any longer than characters, unless you use an addon to circumvent this limit. Macros cannot circumvent the global cooldown to use more than one item or ability at a time. There are some exceptions, but this is the general rule. Macros cannot include a delay for most commands. Certain commands e. Conditionals are a way to extend the macro interface. They allow limited decision-making to macros; be aware that they are limited to what Blizzard has specifically allowed for each command, and that not all commands may accept the same conditionals.

We are going to modify this macro with the [harm] conditional, so it does something different when an enemy is targeted:. The macro will now use Holy Fire if you are pressing a modifier Ctrl, Shift, or Alt and you have an enemy target, Smite if you have an enemy target and are not pressing a modifier, Heal if you are pressing a modifier without an enemy target, and Flash Heal if none of the other conditions are true. It is important to remember the proper syntax when using multiple conditionals.

Another important feature of conditionals is the ability to use an empty conditional, []. Empty conditionals function exactly as if you had dragged the spell from your spell book, meaning they will respect your auto-self-cast settings, and will properly alert you if a target is required rather than silently failing without a target.

They also serve as a fallback option to ensure a tooltip is generated if other conditions are not met. In the above example, if you have an enemy targeted, the macro will never cast Heal or Flash Heal, no matter what you do. You need to target a friendly or clear your target in order to cast a healing spell. Attempts to perform the action on the listed unit, unit can be a UnitID player, target, focus, pet, party1, raid1targettarget, etc or a name Adreaver-Undermine. Names are case-sensitive and only valid if the named player is a member of your group.

Additionally, for Cross-Realm players, omit spaces but not punctuation in the realm name e. A special unit is [ mouseover] , which refers to the unit or unitframe you are pointing your cursor at.

Particularly useful for healers to cast healing spells on party members without having to change targets, they are also useful for things like interrupts, offensive dispels, and sending your pet to attack one target while you attack another. Note that [ unit] assumes the unit is there unless you specifically check for it. Use [ unit,harm] to check for enemies, [ unit,help] to check for friendlies, or [ unit,exists] to check for either.

This allows you to cast a different spell when pressing ctrl, shift, or alt. If desired, you can use multiple modifiers together - [mod:ctrlalt] for example, will only register when pressing ctrl AND alt at the same time. This checks which mouse button you used to click the macro. These check the status of your target. Combat allows you to check if you are in combat. This is helpful when you have certain spells that can only be used out of combat, for example mounts.

The above macro would use your Aspect of the Cheetah in combat, and summon your mount out of combat, thus giving you a speed boost in either scenario. This checks if you have a certain talent selected, where R and C are the Row and Column of the talent. For example, this macro will make you invisible, using the Camouflage talent if known, and a Potion of Concealment if not:.

This is largely a legacy feature as of 8. These check if you are in a stance or form, with [stealth] specifically checking for Stealth or Prowl, for Cat Form Druids. Rogues also have additional stances, with rogues using additional [form:2] for Vanish and [form:3] for Shadow Dance. Any help would be appreciated. This is used to check if you have the specified item type equipped, like [equipped:Shirts] to check if you are wearing a shirt. You can only check for a specific item type, not for an individual item by name.

This checks if you have a pet out, and optionally, what kind. This checks which of your specializations you are currently in. Demon Hunters only have 2 specializations, and Druids have 4. All other classes have 3. This checks which actionbar you are currently on. This would allow the same macro, placed on two different pages, to function differently depending on which page you were on at any given moment.

Primarily used in actionbar swap macros, not particularly useful outside of this limited context. This indicates whether you are in a group. A great usage here is to invert the conditional, which will allow you to spam your abilities near the end of a channel without clipping it early. These all refer to the area where you are. If you are outside in an area where you can summon your mount , [outdoors] will be true. Otherwise, [indoors] will be true. These indicate your current movement status.

Scripting is an advanced feature sometimes used in macros. Secure actions are those things which are reserved for the Blizzard UI, and are not available to addons. Essentially, if you use a script in a macro, you are using a micro-addon. It has all the abilities and limitations of a normal addon, but restricted to a character limit. Useful examples are announcing cooldown or crowd control targets in a raid environment, calculating variables and returning the result e. How many glyphs do I have left to learn?

There are far more possibilities available with scripting than I could possibly describe here, so if you have specific questions or a script you want to share, feel free to mention it here or post a new thread. You get this same warning if you type a script directly in the chat window without a macro.

The warning is essentially telling players to be careful of running custom scripts they get on the internet or from other players, that they should not run any scripts they do not trust. There are a few changes to the macro system specific to WoW Classic. For the most part, the API is unchanged, and live macros should work in most cases. Classic WoW returns to the ranking system for spells.

Most spells with an absolute value effect read: not percentage-based have multiple ranks, which cost an increasing amount of mana and sometimes have a longer cast time for higher ranks.

Use spell ranks in macros like so:. There are a number of tricks and shortcuts you can use in your macros to make them go a bit further within the character limit. Take a look at some of the examples below, and feel free to submit your own in a reply. Okay, that should be all the still relevant content from the original thread, migrated to the new forum and taking full advantage of the new markdown syntax.

I miss you old forum. Tinkerizmo please remove the link to my old thread from your first post - the entirety of the relevant content has been copied to the OP here, and between the formatting changes and BfA spell changes I think the old thread is best left on the old forums.

However, when you start dealing with macro options and sequences you'll be happy to know that you can intermingle items and spells in the same command. In general, you cannot cast more than one spell with a single click of a macro.

Most spells and some items trigger the global cooldown GCD which keeps you from taking too many actions at once. This was not the case prior to patch 2. Macros like this do not work anymore. As soon as Overpower fails to cast, the game will block all the other spells from casting as well, even though the GCD is not actually triggered.

There is a bit of good news, though. Certain spells can actually be cast at the same time in a single macro. Any spell that is instant and does not trigger the GCD can be followed by another cast "Next Melee" abilities like Heroic Strike fall under this category too. The spell's tooltip will tell you if it's instant, but you have to use the spell or check a spell database site like thottbot. Prior to patch 2. Targeting is another common task in macros.

This is accomplished either by using dedicated targeting slash commands which actually change your target or by using the [ unit ] macro option on commands that accept them. When you use the macro option, you are actually casting the spell or using the item directly on the unit without changing targets. Macro options will be covered in great detail in Part II.

For now, here's how to use the targeting commands. This is a plus or a minus depending on your situation. Unfortunately, it will also target irrelevant units like corpses. This makes macros like the following much less useful than they might first appear.

If no Blackwing Mages are around, this might target someone in your raid who happens to have the letters B and L in their name. While they're safe from the wrath of your curse, it's still a bit disconcerting.

Another problem is that it may target something yards behind you that you don't really care about. Patch 2. In addition to specifying the name of someone you would like to target, you can also provide a unit ID. For instance, your current target can always be accessed by the "target" unit ID obviously not the most useful for the command we're discussing at the moment :P. You yourself are accessed by the "player" ID, and if you have a pet it would be referenced by "pet.

There is a joke about Kevin Bacon involving a macro like:. By itself, assist targets your target's target e. There is an interface option which will automatically start you attacking if you end up with a hostile target. Targets a unit with the exact name listed.

If the name is spelled wrong or that unit is not near you, your target will not be changed. As the names suggest, these commands will target your previous target, your last targeted friend, or your last targeted enemy. If you previously had no target, this command will do nothing.

These commands cycle through the specified type of unit. These commands cycle through the specified type of player controlled units. They're mostly useful for PvP. Cycles through your nearest party or raid members.

In fact, Blizzard had to change the name of the Mage elemental's Frost Nova to Freeze because there was no way to use it in a macro. Luckily the Burning Crusade patches brought us a host of new pet commands:. Sends your pet to attack your target.

You can also specify a name or unit ID and your pet will attack that instead. These commands manipulate the auto-cast of a given pet spell. The first will always turn auto-cast on, and the second will turn it off.

Recently, a new command has been added which will toggle a pet's auto-cast spells, petautocasttoggle. This will turn the auto-cast on if it is currently off, or off if it is current on, which can entirely replace the former command depending on the planned use.

By default, WoW uses the first spell or item that appears in a macro to show cooldown , range, and availability feedback on the button, and to pick which icon to display when you use the question mark icon. Take our multi-spell macro from earlier as an example:.

With this macro, WoW chooses Arcane Power for the feedback. However, this is probably not what you really want. The main point of this spell is to cast Pyroblast. The first few lines merely exist as support spells to make the Pyroblast more effective. You can make the button behave as if Pyroblast were the first spell by adding the following line to the top of the macro:.

If you used the question mark icon for the macro, the button will even have the icon of Pyroblast without any extra effort on your part. You can use a spell name, item name, item id item , inventory slot, or bag and slot numbers.

Similar to show is showtooltip. Normally when you mouse over a macro on an action bar, your tooltip displays the name of the macro. This is not incredibly useful most of the time especially if you use an AddOn like TheoryCraft to give you detailed spell information in tooltips. However, the showtooltip command allows you to specify a spell to use in the tooltip the same way as show.

If you use showtooltip, you do not need to use show. If you're happy with the spell that WoW is choosing for the feedback, you can use showtooltip without a spell to save space in your macro. Please Note: unlike slash commands, show and showtooltip must be written in lower case letters. The showtooltip and show commands will also accept the conditionals found further below.

Here's a simple example:. This line at the top of the macro will show icon and tooltip corresponding to the Conjure Water spell, unless shift is held down, in which case Conjure Food will be used instead, regardless of what else the macro is doing and which spells it is using.

Now that you have a solid foundation, let's cover some of the other slash commands at your disposal. Some of these commands may seem a bit pointless at first glance, but when you combine them with the macro options from Part II, they can perform some neat tricks.

Save two equipment sets. One called Tank that has a sword and shield equipped, one called DPS that has a two handed weapon equipped. Use this macro to switch between the two:. If you have a shield on, it'll equip your saved DPS set, otherwise it'll equip your saved Tank set.

Note: If you are trying to equip two of the same weapon simultaneously into different slots, your macro will not work properly. Note: AddOns are allowed to use the equipping functions directly, even during combat. By the same mechanism, you can use the equipping slash commands with AddOns like AfterCast or Chronos. You might have some trouble if the AddOn first checks whether the command is secure; the equipping commands are in the secure command list, though they aren't inherently secure.

Many times you will find yourself casting a series of spells or use certain items in the same order on pretty much any mob you fight. This means you can interchange spell names, item names, item IDs, inventory slots, and bag slot combinations. If the spell or item is used successfully, the sequence will move to the next entry.

You must repeatedly activate the macro to use all the spells in the sequence. Once you use the last entry in the list, it will reset to the beginning. This might be something you would use for a Warlock's opening attack.

Note, however, that if Immolate fails to cast for some reason out of mana, not in range, silenced, etc. Before the spell list but always after the conditionals , you can also specify reset conditions to start the sequence over before it reaches the end.

The basic syntax for reset conditions is:. Where n is the number of seconds of inactivity after which the macro should be reset. In other words, if more than n seconds pass without the macro being called, then the next time you call it the sequence will start from the first spell. Note that this is not the time since the first spell in the sequence was cast, but rather the time since the macro was last called to cast any of the spells in the sequence. This is a very important distinction because it means you cannot use a reset timer to account for cooldown.

As to the other conditions, "target" resets the sequence when you change targets; "combat" when you leave combat; "shift", "alt", and "ctrl" when you activate the macro with one of those keys depressed. You can specify any number of these conditions separated by slashes as shown. To make a macro cycle through two different 'sets' of spells that should be used together, where each set can not be used at the same time i. On the first button push this macro will cast Beserking and Trinket 1, on the second it will cast Icy Veins and Trinket 2.

If you used the question mark icon, WoW will automatically update the icon to the current element of the sequence. In this case, you can specify the icon using showtooltip as described above. One of the most common requests on this forum is for a macro to use a random mount. One use of this is for hunters to emulate stances by having a pair of macros like:. If you're on a page other than one of the two specified, it will be change to the first of the two.

For example, a Death Knight without the Horn of Winter minor glyph cannot cast Horn of Winter if a glyphed version of the buff is already on them from another Death Knight. The following macro solves this problem:. In patch 2. Until then and for everyone else, you may have to click the button twice.

This is useful for making "panic buttons" that interrupt whatever you're doing at the moment in favor of something more important. On a Warlock, for instance, you can use the following macro:. Its main use is to implement "fall-through" logic to prevent you from continuing a macro if certain conditions are true. See "Using focus" at the end of part II for an example.

For example, say your raid leader assigns you a target to sheep. Now you can use a macro like the following to cast sheep on your focus:.

Note that this is not the most efficient use of the focus feature. By default, it behaves like a left-click, but you can specify other mouse buttons in the command. There are a few ways to determine the name of the frame you're interested in:. For example, you might have a really long macro that doesn't fit into characters.

Put as much of it as you can in one macro and end it with the following line:. The rest of the code would go into a new macro that you would then place on MultiBarRightButton1 the first button of the right-hand vertical extra action bar. You can also do things that normally wouldn't be available to macros.

For instance, turning on auto-cast for a pet spell can't be done by Lua scripts and there isn't a secure command for it until the next patch, at least. However, you can write a macro to pretend that you right-clicked on one of your pet bar buttons:. This command will act like you right-clicked the 5th pet button from the left. As shown above, MultiBarRightButton1 refers to the first button of the right-hand vertical extra action bar.

MultiBarRightButton2 refers to the second button, and so on. Names for buttons on each of the standard action bars are as follows, replacing the with an appropriate number:. Scripts are very powerful tools that can make complex decisions based on a number of criteria. Because of this power, Blizzard has limited the types of things we're allowed to do with them in order to keep macros and AddOns from taking actions that should be controlled by the player.

This section starts with what you can't do because you shouldn't to get your hopes up. While scripts do remain useful for quite a few purposes, you cannot use them to cast spells, use items, change your action bar page or affect your target in any way.

You are limited to using the "secure" commands already shown for those tasks. A full treatment of Lua and programming in general is well beyond the scope of this document. However, if you have some programming experience, you should head over to Lua.

All the details of the UI environment can't be covered here, so some favorite scripts will be presented as an example. See the previously linked references and the old Mod author resources sticky for more information. The following macro on which CCWarn AddOn is based on will whisper everyone in your raid to change their targets if they have the same target as you.

This is to help keep them from breaking the sheep that this macro casts as well. There are two reasons that it looks as obfuscated as that. First, there is the character limit though there is a workaround in Part III ; you often need to take certain shortcuts in order to get a script to fit in a macro. Second, you have to keep the entire script on one line. Under more ideal circumstances, that code would look more like:.

Macro options are a way to control actions based on various pieces of information. To dive right into an example, the following macro will cast Renew on a friendly target and Shadow Word: Pain on a hostile one. When you run this macro, the [help] condition is checked. This determines whether your target is someone you can cast beneficial spells on. If the [help] is true, it then casts Renew and the macro moves to the next line.

Otherwise either you have no target, or you can't cast a helpful spell on your target , it falls through to the next clause. Now it checks for the [harm] condition. If true, it casts Shadow Word: Pain. If it isn't true no target or you can't harm your target then it does nothing because there are no more clauses.



0コメント

  • 1000 / 1000