Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(7 Kb)
Download
Updated: 10-14-14 06:31 AM
Pictures
File Info
Compatibility:
Warlords of Draenor Pre-Patch (6.0.2)
Updated:10-14-14 06:31 AM
Created:08-11-13 03:13 PM
Downloads:656
Favorites:18
MD5:

Spell Toggle

Version: 1.0.4
by: Gello [More]

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

What this addon does

There are sometimes spells we macro for situations that don't have a [condition]. 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. etc

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 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 spell(s) 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 [mod:alt] 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.

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:

To cast the current shout, unless Alt is down when it will toggle to the other shout:
/click [mod:alt] Shout:Toggle; Shout:Cast
To always do a shout even while toggling:
/click [mod:alt] Shout:Toggle
/click Shout:Cast
To cast the current shout, unless the macro is right-clicked, then toggle:
/click [btn:2] Shout:Toggle; Shout:Cast
A toggle with one spell

In addition to toggling between two spells, you can now toggle one spell on or off.

Some people macro cooldown spells to cast with other abilities. For instance:
#showtooltip Colossus Smash
/cast Bloodbath
/cast Colossus Smash
which is fine for trash or soloing, but you probably want greater control when Bloodbath is used for raid bosses. You can set up a toggle with only one spell and use this addon to toggle the spell on or off:
#showtooltip Colossus Smash
/click [mod] Bloodbath:Toggle; Bloodbath:Cast
/cast Colossus Smash
Now when you're out soloing you can have Bloodbath cast alongside Colossus Smash. When you join a raid you can toggle Bloodbath off to use the cooldown separately for more control.

If you want the spell to be active by default, make it your primary spell and leave the secondary spell slot empty.
If you want the spell to be disabled by default, make it your secondary spell and leave the primary spell slot emtpy.

Knowing what spell a toggle will cast

Because it's often not obvious what spells are enabled when they're buried into larger macros, there's an option at the bottom of each toggle to tell you what will cast when you toggle the spell.

When you log in or reload, the first spell of each toggle will be the first spell loaded.

Multiple toggles in one macro

You can also have multiple toggles for multiple cooldowns in one macro:
#showtooltip Colossus Smash
/click [mod] BerserkerRage:Toggle; BerserkerRage:Cast
/click [mod] Recklessness:Toggle; Recklessness:Cast
/click [mod] Bloodbath:Toggle; Bloodbath:Cast
/click [mod] SkullBanner:Toggle; SkullBanner:Cast
/cast Colossus Smash
and remember you can have separate macros to cast and toggle to make things simpler:

Cast a bunch of cooldowns (if toggled on) in addition to Colossus Smash:
#showtooltip Colossus Smash
/click BerserkerRage:Cast
/click Recklessness:Cast
/click Bloodbath:Cast
/click SkullBanner:Cast
/cast Colossus Smash
Toggle whether all those cooldowns will attempt to fire when you use the above macro:
/click BerserkerRage:Toggle
/click Recklessness:Toggle
/click Bloodbath:Toggle
/click SkullBanner:Toggle
Toggling more than two spells

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

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.

Optional Files (0)


Archived Files (3)
File Name
Version
Size
Author
Date
1.0.2
7kB
Gello
09-14-13 06:32 PM
1.0.1
6kB
Gello
09-11-13 10:01 AM
1.0.0
6kB
Gello
08-11-13 03:13 PM


Post A Reply Comment Options
Unread 09-16-13, 03:09 PM  
Enkidu
A Kobold Labourer

Forum posts: 0
File comments: 55
Uploads: 0
This is perfect, thank you!
Enkidu is offline Report comment to moderator  
Reply With Quote
Unread 09-14-13, 06:35 PM  
Gello
A Scalebane Royal Guard
AddOn Author - Click to view AddOns

Forum posts: 444
File comments: 350
Uploads: 101
1.0.2 just posted has the ability to toggle one spell on/off as Enkidu suggested.

Any users of a previous version: if your macro icons are the red ? icon after updating, remove the #show or #showtooltip in your macro if you want this addon to handle the icon changing. For some uses it's preferable that this addon not mess with a macro's icon (like when the toggle spell is a cooldown to be turned on/off). Starting with this update if a macro begins with a #show/#showtooltip and the macro also contains a /cast, this addon will cease to mess with the icon.
Gello is offline Report comment to moderator  
Reply With Quote
Unread 09-12-13, 03:24 PM  
Gello
A Scalebane Royal Guard
AddOn Author - Click to view AddOns

Forum posts: 444
File comments: 350
Uploads: 101
Re: Sweeping Strikes.

Originally Posted by Enkidu
Is it possible to make a global toggle for Sweeping Strikes using this mod?
I would like to hit a button that 'binds' Sweeping Strikes to any consequent button press until I hit it again, to maintain it up the whole time.
Is this possible with the mod currently? Could the mod be changed to support it?

Could be much more convenient than paging and having pages over pages of macros.

Thank you!
That could be useful and it wouldn't be too tough. I can make "nothing" be an option. It would be useful for like tying bloodbath or other cooldowns to rotation abilities when out soloing, and turning them off for raid bosses.

It can "sort of" support it now, only the UI won't save a toggle until you have two spells defined. In the meantime if you want to play around with it, copy this to chat:

/run PickupSpell(76268)

(if you're a warrior this is the armor skill passive ability--other classes or low levels will need to pickup another passive) and drop it in one of the two spell slots, then sweeping strikes in the other.

The annoying bit is the icon will reflect the current toggle spell: sweeping strikes or amor skills. I'll make this addon not attempt icon changes if there's a #show/#showtooltip in the macro.

It's a nice suggestion thanks! No guarantees but I'll try and find time to make the changes this weekend.
Gello is offline Report comment to moderator  
Reply With Quote
Unread 09-12-13, 08:18 AM  
Enkidu
A Kobold Labourer

Forum posts: 0
File comments: 55
Uploads: 0
Sweeping Strikes.

Is it possible to make a global toggle for Sweeping Strikes using this mod?
I would like to hit a button that 'binds' Sweeping Strikes to any consequent button press until I hit it again, to maintain it up the whole time.
Is this possible with the mod currently? Could the mod be changed to support it?

Could be much more convenient than paging and having pages over pages of macros.

Thank you!
Enkidu is offline Report comment to moderator  
Reply With Quote
Unread 08-26-13, 05:17 PM  
Resike
A Molten Giant
AddOn Author - Click to view AddOns

Forum posts: 640
File comments: 213
Uploads: 10
This sounds awsome.
Resike is online now Report comment to moderator  
Reply With Quote
Unread 08-15-13, 01:08 PM  
Elenya
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
This is sweet as! Nicely done
Elenya is offline Report comment to moderator  
Reply With Quote
Unread 08-13-13, 12:40 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1391
File comments: 3369
Uploads: 89
WHHHHHHHHHHHHHHHHHHHHHHHHHAT. I like.
__________________
| Simple is beautiful.
| Roth UI | Roth UI FAQ | GoogleCode | Zork | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
zork is offline Report comment to moderator  
Reply With Quote
Unread 08-12-13, 10:38 AM  
ravagernl
Premium Member
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 1149
File comments: 23
Uploads: 4
Very awesome addon I've always wanted something like this for my paladin (hammer of the righteous/crusader strike)!
ravagernl is online now Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: