This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
Macros with shift/alt/etc modifiers
Return to board index
Post by
2698
This post was from a user who has deleted their account.
Post by
Corveroth
You can use a combination of macros and keybindings, but if a keybinding and a macro would respond to the same key combination, the keybinding takes precedence. For example, I have, on my druid, my shapeshifts rebound to Shift-1 through Shift-5 (Dire Bear, Aquatic, Cat, Travel, Swift Flight). On the 3 key, I wanted to place my CC spells- Cyclone, Entangling Roots, and Hibernate. My initial macro for that looked like this:
/cast Hibernate; Entangling Roots; Cyclone
However, pressing Shift-3 activated Cat Form, not Roots. So I had to change the macro to using Alt-3 for Hibernate, and Ctrl-3 for Roots, to avoid that interference.
So, in short, you can bind an actionbar slot to S, and write a macro that will cast different spells depending on modifier keys. However, you need to make sure nothing is bound to Shift-S or that will take precedence.
Post by
HighFive
To elaborate:
using
will cast the ability if
any
modifier key is pressed.
using
will cast the ability if
no
modifiers key are pressed.
using
. The ability will be cast if the alt key is
not
pressed.
using
will cast the ability if
either
shift or ctrl is pressed.
using
will cast the ability if shift or ctrl, or neither of them is pressed.
using
will cast the ability if
both
shift and ctrl are pressed.
Did I miss anything?
A macro containing lots of the
mod
conditional is this rogue all-in-one poison macro (
taken from wowwiki
):/use Anesthetic Poison; Deadly Poison; Crippling Poison; Mind-numbing Poison; Wound Poison;Instant Poison
/use 16; 17
edit:(yes I did)
Cogwheel
said:
While modifier keys can only be one of shift, ctrl, or alt, there are a number of system variables that you can use in your modifier conditions as well. For instance, the SELFCAST variable means "whatever your self-cast modifier is set to." The default is alt (holding the alt key while casting a spell will attempt to cast it on yourself) though some addons give you the option to change this. If you create a macro like:
/cast Greater Heal
It will work as expected no mater what you have set as your self-cast key. Some other variables and their defaults (though with arguably much less utility) are as follows:
* AUTOLOOTTOGGLE (shift)
* STICKYCAMERA (ctrl)
* SPLITSTACK (shift)
* PICKUPACTION (shift)
* COMPAREITEMS (shift)
* OPENALLBAGS (shift)
* QUESTWATCHTOGGLE (shift)
Post Reply
This topic is locked. You cannot post a reply.