Reply
Thread Tools Display Modes
Unread 11-07-12, 03:27 PM   #1
Gaelinar
A Kobold Labourer
Join Date: Nov 2012
Posts: 1
Feral Druid Macros

I am working on this macro, but for the life of me I cannot figure out the if behind conditionals. something like:
#showtooltip mangle
/castsequence [harm,nostealth,(behind)] !shred; [harm, nostealth,reset=target] !mangle; !ravage [harm, stealth]
/cast [nostealth,help] !Cenarion Ward
Gaelinar is offline   Reply With Quote
Unread 11-07-12, 03:52 PM   #2
semlar
A Molten Giant
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 506
It can't be done, there is no condition for being behind or in front of your target.
semlar is offline   Reply With Quote
Unread 11-08-12, 12:53 AM   #3
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 4,105
Also:

- The exclamation prefix (eg. "!shred") is only useful for abilities that are toggles, like shapeshift forms or autoattack. For regular abilities, it doesn't do anything.

- Conditions must come before the ability, so you have to write "[harm, stealth] Ravage" instead of "Ravage [harm, stealth]".

- As written, your macro will only ever show the Mangle icon. Better to use more sensible conditional ordering, and let the game show the icon of the ability that will actually be used when you activate the macro.

- You can't specify different conditions for each ability in a castsequence. You can only specify conditions for the whole sequence. In your case, though, I don't see any reason to use a castsequence, since there is no static rotation for cats, and none of those abilities (except Cenarion Ward) have cooldowns. Just use /cast; then you can specify the conditions for each ability.

Anyway, you have two options:

1. Split those into two buttons:
Code:
#showtooltip
/cast [stealth] Ravage; [help] Cenarion Ward; Mangle
Code:
#showtooltip
/cast [stealth] Ravage; Shred
Both will use Ravage if you are stealthed. If you're not stealthed, the first button will use Cenarion Ward if your target is friendly or Mangle otherwise, and the second button will use Shred. You don't need to explicitly specify [harm] since offensive abilities don't do anything if you don't have a hostile target; it's not like friendly spells where you'll get the annoying "glowing hand" cursor.

2. Or use a modifier key:
Code:
#showtooltip
/cast [stealth] Ravage; [help] Cenarion Ward; [mod] Mangle; Shred
If you're in stealth, use Ravage. Otherwise, if your target is friendly, use Cenarion Ward. Otherwise, if any modifier key (Alt, Ctrl, or Shift) is pressed, use Mangle. Otherwise, use Shred.

Personally I'd use two buttons, since it's not like cats are overflowing with tons of abilities.
__________________
Author/maintainer of Grid, PhanxChat, ShieldsUp, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
Phanx is offline   Reply With Quote
Reply

Go BackWoWInterface » AddOns, Compilations, Macros » Macro Help » Feral Druid Macros

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off