WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Macro Help (https://www.wowinterface.com/forums/forumdisplay.php?f=140)
-   -   Misdirect smart-macro (https://www.wowinterface.com/forums/showthread.php?t=59345)

JahirahDK 11-14-22 03:35 PM

Misdirect smart-macro
 
Hey everyone
I am trying to stitch together an intelligent Misdirection macro able to adapt and behave in accordance to circumstance....
Im looking to advance my current MD macro with some additional utility without having to rely addons...
Quote:

Misdirection macro
/cast [@focus,exists,nodead,help][help,nodead][@pet,nodead] Misdirection

This is the functionality I'd like to add...
Is this possible to achieve with API and scripting?
Quote:

If [@focus,noexists]
-- then set my current target as /focus and announce %t in party chat...
If [@focus,exists]
-- then bypass announcement and function normally

SDPhantom 11-14-22 06:36 PM

Better yet, it doesn't even require scripting.
/stopmacro lets you halt execution when a macro condition matches.
Code:

/cast [@focus,help,nodead][help,nodead][@pet] Misdirection
/stopmacro [@focus,help,nodead][nohelp][dead]
/focus
/p Misdirecting %t

Note: [help] implies [exists], you don't need to check both.


All times are GMT -6. The time now is 11:15 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI