Page 1 of 1

Modifier macros

PostPosted: Sat Aug 01, 2015 11:31 pm
by NoLemon
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!

Re: Modifier macros

PostPosted: Sun Aug 02, 2015 10:20 pm
by Aunstic
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

Re: Modifier macros

PostPosted: Sun Aug 02, 2015 11:45 pm
by Marodheure
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

Re: Modifier macros

PostPosted: Mon Aug 03, 2015 1:41 am
by NoLemon
Awesome, is it possible to do it without changing target?

Re: Modifier macros

PostPosted: Mon Aug 03, 2015 9:04 am
by schaka
You can always add TargetLastTarget() or TargetLastUnit() or something after the Holy Shock.

Re: Modifier macros

PostPosted: Mon Aug 03, 2015 11:00 am
by NoLemon
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! :)

Re: Modifier macros

PostPosted: Mon Aug 03, 2015 1:17 pm
by Marodheure
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)