Modifier macros

Modifier macros

by NoLemon » Sat Aug 01, 2015 11:31 pm

Hello!
I was wondering if it were possible with the SuperMacro addon to create a command whereby holding a modifier key switches the target of the spell, for example:
If I hold shift, Holy Shock casts on myself, if I don't hold it, it casts on my target.

Thanks!
NoLemon
Private
Private
 

Re: Modifier macros

by Aunstic » Sun Aug 02, 2015 10:20 pm

Not too sure about SuperMacro, but it seems easy enough just by:
Code: Select all
/script local a = IsShiftKeyDown(); if(a == nil) then CastSpellByName("Holy Shock"); else TargetUnit("player"); CastSpellByName("Holy Shock"); end
Image
User avatar
Aunstic
Knight-Lieutenant
Knight-Lieutenant
 

Re: Modifier macros

by Marodheure » Sun Aug 02, 2015 11:45 pm

Hi NoLenom and Aunstic.

If NoLemon want receive Holy Sock on him without change target he should use this script, (look CastSpellByName second argument), (i come from an other vanilla server, sorry if that don't work here).

Code: Select all
/script local a = IsShiftKeyDown(); if(a == nil) then CastSpellByName("Holy Shock"); else CastSpellByName("Holy Shock", 1); end
Marodheure
Tester
 

Re: Modifier macros

by NoLemon » Mon Aug 03, 2015 1:41 am

Awesome, is it possible to do it without changing target?
NoLemon
Private
Private
 

Re: Modifier macros

by schaka » Mon Aug 03, 2015 9:04 am

You can always add TargetLastTarget() or TargetLastUnit() or something after the Holy Shock.
schaka
Senior Sergeant
Senior Sergeant
 

Re: Modifier macros

by NoLemon » Mon Aug 03, 2015 11:00 am

Awesome! Perfect. Any way of incorporating a mouseover too? Or is that not possible?
So by order of importance: If I have shift held, it casts on my no matter what, if I've got a mouseover, it casts on them, and then if neither of the above are true, it casts it on my selected target?

Thanks! :)
NoLemon
Private
Private
 

Re: Modifier macros

by Marodheure » Mon Aug 03, 2015 1:17 pm

Hi, it's possible but not in macro, but with an addon.

Try this addon : MySpecialTargeting : https://mega.co.nz/#!oJZWwCIC!8RMI1gYflRBw_xWFQly_xzVF3-CTUFyyCgJ-fYroyhM

For use this addon you must to do this macro : /run MySpecialTargeting("Holy Shock")
Image

Info : mouseover = all unit (player, npc, ennemy ...) except you.

What behavior do you want when you use your macro bind without shift held, without target and without player under your mouse, your cursor will be like that :
Image
Do you want highlight or not ? (highlighted cursor = ready to cast on next unit clicked except you)
Marodheure
Tester
 


Return to Addons & macros