Quantcast
Channel: WoWInterface - Latest list
Viewing all articles
Browse latest Browse all 49801

Spell Toggle (1.0.0)

$
0
0
This small addon allows you to set up macros to cast a spell or toggle the spell it casts.

There are sometimes spells we macro for situations that don't have a . For instance, warriors fighting one mob will use Heroic Strike, or fighting ten mobs will use Cleave instead. Battle Shout if no Death Knight in the group, Commanding Shout otherwise. Monks might use Tiger Palm if in melee range, or Crackling Jade Lightning at a distance. Warlocks might use Curse of Elements in PVE, or Curse of Exhaustion in PVP.

Modifier keys like Alt+ Ctrl+ and Shift+ are useful for doubling up more than one spell onto a macro. But it can get mildly tedious hitting those extra keys to cast alternate spells for long stretches. It's even more tedious to muck around with the action bars when a DK joins the group or you queue for a BG.

This addon allows you to double up spells onto macros without requiring a modifier to cast the alternate spell every time. You set up a toggle (either a separate macro or the same macro) to alternate which spell the macro will cast.

__ How to use __

You can bring up the UI by entering /spelltoggle or /st into chat.

Hopefully the UI is self explanatory, but for each toggle you need to give it a name and the two spells it's going to toggle.

Once saved, you can now use the /click commands in place of /cast to cast or toggle the spell. You can copy-paste them from the bottom of the UI to your macro if you want.

For instance, if you've been using this macro:
/cast Commanding Shout; Battle Shout

It casts Commanding Shout if Alt is held, and Battle Shout otherwise.

To turn this into a toggle, open /spelltoggle, click New and give it any name like "Shout". Then drag Battle Shout and Commanding Shout from your spellbook to their slots on the UI. Then click Save.

http://imgur.com/cq8CCUE.png

Now to cast the shout:
/click Shout:Cast

To toggle to the other shout:
/click Shout:Toggle

Just about anything you can do with /cast you can do with /click. Some examples:

/click Shout:Toggle; Shout:Cast
to cast the current shout, unless Alt is down when it will toggle to the other shout.

/click Shout:Toggle
/click Shout:Cast
to always do a shout even while toggling.

/click Shout:Toggle; Shout:Cast
to cast the current shout, unless the macro is right-clicked then toggle.

If you're interested in alternating more than two spells in a macro, you might want to check out the addon Select, which lets you cast from a list of spells that you can change by right-clicking the macro. Spell Toggle is more suitable for toggling spells in the heat of combat without needing to right-click anything.

If you've read this far and you're asking yourself: "Why? This seems unnecessary." That's fine. This is an alternate style of keybinding I've been using for years. Occasionally someone on the official forums will ask how to do this, and I figured it was time to write a UI so anyone can set it up without lua knowledge. I don't expect this to have widespread appeal.

Viewing all articles
Browse latest Browse all 49801

Trending Articles