Remove Advertisements

General Macro Help - Focus and Mod Question

All things /script related

Moderators: Fridmarr, Worldie, Aergis, _Chloe

General Macro Help - Focus and Mod Question

Postby Cogglamp » Wed Aug 31, 2011 6:35 am

So I use a lot of modifier macros (primarily utilizing shift), but I've run into the issue where I'd like a little more functionality from my macros and need some help to see if what I'm thinking is even possible. Any help would be greatly appreciated.

Here's what I'm looking for:

Mage Example:

I have Spellsteal and Counterspell currently in one modifier macro so I've got it as follows:

#showtooltip
/cast [mod:shift] Spellsteal; Counterspell

What I'm looking for is being able to set a focus and be able to Counterspell the focus if I have a focus. If I don't have a focus, then it would default to Counterspelling my current target. All of that plus being able to use Spellsteal through a modifier. Is this possible? If so, how would I go about writing it?
Cogglamp
 
Posts: 728
Joined: Tue Apr 26, 2011 8:04 am

Re: General Macro Help - Focus and Mod Question

Postby Zalaria » Wed Aug 31, 2011 7:04 am

Do you want the macro to set the focus? If not, something like this should do what you want:

#showtooltip
/cast [mod:shift] Spellsteal; [@focus,harm,nodead][] Counterspell


This site can explain how it works: http://www.macroexplain.com/
Dovie'andi se tovya sagain - It's time to roll the dice
User avatar
Zalaria
Maintankadonor
 
Posts: 646
Joined: Tue Sep 11, 2007 7:27 am

Re: General Macro Help - Focus and Mod Question

Postby Cogglamp » Wed Aug 31, 2011 7:06 am

Awesome, thank you!

Great site too. I appreciate the quick response.
Cogglamp
 
Posts: 728
Joined: Tue Apr 26, 2011 8:04 am


Return to Add-ons, UI, and Macros

Who is online

Users browsing this forum: No registered users and 0 guests


Remove Advertisements

Who is online

In total there are 0 users online :: 0 registered, 0 hidden and 0 guests (based on users active over the past 5 minutes)
Most users ever online was 380 on Tue Oct 14, 2008 6:28 pm

Users browsing this forum: No registered users and 0 guests