Ike 20 Report post Posted December 13, 2016 Hi, I would like to introduce you to my AddOn 'CastModifier', which allows you to use Conditionals inside your /cast macros. This allows you to write some fairly advanced macros in a very compact manner, without the need to learn Lua! Here are some examples: In addition, this AddOn also allows you to use Conditionals inside your "/target" macros and adds the new "/petattack" chat command with full Conditionals support! A list of every available Conditional, including its parameters, extra remarks, and a how-to-install tutorial can be found on the AddOn's Github page. Github Page I greatly appreciate any feedback and any ideas for additional features that may improve this AddOn! Cheers, Ike 3 Share this post Link to post Share on other sites
Skipadawoop 6 Report post Posted December 13, 2016 (edited) Excellent addon, i'm currently giving it a try. One question though, i'm trying to do a mouseover taunt macro with appropriate stance switch. How would i add a mouseover conditional to this macro (which works fine) : /cast [stance:2] Taunt; Defensive Stance Edited December 13, 2016 by Skipadawoop 0 Share this post Link to post Share on other sites
Ike 20 Report post Posted December 13, 2016 You just add @unitid into the brackets. In this case, @mouseover since you want to cast on your mouseover target. /cast [stance:2 @mouseover] Taunt; Defensive Stance You can read it as "When you are in stance 2, cast the following on your mouseover target: Taunt. Otherwise, cast Defensive Stance." I'd go even a step further and add "harm" as well. This makes sure that there will be no error messages when your mouseover target isn't something you can attack, like a player. /cast [stance:2 @mouseover harm] Taunt; Defensive Stance When you are in stance 2 and your mouseover target is hostile, cast Taunt. Otherwise, cast Defensive Stance. This should do the trick! 1 Share this post Link to post Share on other sites
jagonx 7 Report post Posted December 16, 2016 simply the best vanilla addon ive ever seen. tysm. 0 Share this post Link to post Share on other sites
randomguy 0 Report post Posted December 16, 2016 I was not aware this was even possible without modifying client itself. Really useful addon. ty 0 Share this post Link to post Share on other sites
Barrymanalow 1 Report post Posted December 16, 2016 /cast !Attack Brilliant! 0 Share this post Link to post Share on other sites
Skipadawoop 6 Report post Posted December 16, 2016 You just add @unitid into the brackets. In this case, @mouseover since you want to cast on your mouseover target. /cast [stance:2 @mouseover] Taunt; Defensive Stance You can read it as "When you are in stance 2, cast the following on your mouseover target: Taunt. Otherwise, cast Defensive Stance." I'd go even a step further and add "harm" as well. This makes sure that there will be no error messages when your mouseover target isn't something you can attack, like a player. /cast [stance:2 @mouseover harm] Taunt; Defensive Stance When you are in stance 2 and your mouseover target is hostile, cast Taunt. Otherwise, cast Defensive Stance. This should do the trick! Thanks ! By the way, would it be possible to do a macro to cast battle stance , charge, and cast defensive stance once it's done ? 0 Share this post Link to post Share on other sites
Ike 20 Report post Posted December 16, 2016 I'm glad you guys are liking this Addon! Thanks ! By the way, would it be possible to do a macro to cast battle stance , charge, and cast defensive stance once it's done ? /cast [combat stance:1] Defensive Stance; [stance:1] Charge; Battle Stance Untested, but this should work. When in combat and in Battle Stance, switch to Defensive Stance. When not in combat and in Battle Stance, go ahead and Charge. If neither just go into Battle Stance. 0 Share this post Link to post Share on other sites
Melodyx 2 Report post Posted December 22, 2016 is there a way to make spell tooltips show (to track cooldown for exampe) while using supermacro + castmodifier? 0 Share this post Link to post Share on other sites
Ike 20 Report post Posted December 22, 2016 (edited) Yes, there is. It's not very pretty but it works: /run if nil then CastSpellByName("Innervate") end This enables cooldown and range tracking. Tooltips not so much, though, but I believe SuperMacro takes care of that. Just replace "Innervate" with your spell's name (and don't remove the "double quotes"). Edit:Put this line at the beginning of your macro Edited December 22, 2016 by Ike 0 Share this post Link to post Share on other sites
Melodyx 2 Report post Posted December 22, 2016 Thanks. Also, is there a reason why spells with lower ranks in the macro can't be executed? not sure why 0 Share this post Link to post Share on other sites
Garvan 0 Report post Posted December 22, 2016 Is there a way to write conditionals for combat? My old macros don't work with this addon enabled so I need something to: /cast Freezing trap or if [player = incombat] cast feign death. I can't seem to get this to work. Love the mouseover support though! Thank you 0 Share this post Link to post Share on other sites
Ike 20 Report post Posted December 23, 2016 Little update: Fixed a bug that happened in conjunction with SuperMacro, where the entire Macro wouldn't be executed after the first line. Fixed a bug that sometimes caused the wrong target to be re-targeted. Make sure to re-download the Addon! Thanks. Also, is there a reason why spells with lower ranks in the macro can't be executed? not sure why But you can! /cast [myhp<30] Life Tap(rank 1) ; Life Tap This one, for example, works just fine! Is there a way to write conditionals for combat? My old macros don't work with this addon enabled so I need something to: /cast Freezing trap or if [player = incombat] cast feign death. I can't seem to get this to work. Love the mouseover support though! Thank you Check out the Documentation! There you'll find everything you need and then some! /cast [combat] Feign Death; Freezing Trap 0 Share this post Link to post Share on other sites
Garvan 0 Report post Posted December 23, 2016 Thanks! Sorry, I read over it as best I could but am pretty illiterate in macros and most computer language. 0 Share this post Link to post Share on other sites
Ike 20 Report post Posted December 23, 2016 No worries. I guess this is somewhat advanced to someone who's never done anything like this before. I'm glad to help, so don't be afraid to ask questions! 0 Share this post Link to post Share on other sites
Melodyx 2 Report post Posted December 24, 2016 (edited) Thanks for your help i appreciate it. In regards to channeled spells, in this case for blizzard, it was possible in later expansions to make a macro to stop the big green circle from being toggled on and off while spamming, is this also possible? because i can't seem to get it to work with /cast !Blizzard to be more precise, the reticle area is this https://streamable.com/dvvjq Appreciate your time. Edited December 24, 2016 by Melodyx 0 Share this post Link to post Share on other sites
jagonx 7 Report post Posted December 24, 2016 Hi. Is it possible not print ''raid №'' when mouseover? 0 Share this post Link to post Share on other sites
Ike 20 Report post Posted December 24, 2016 Oh, my bad! I've removed that! 0 Share this post Link to post Share on other sites
jagonx 7 Report post Posted December 24, 2016 Oh, my bad! I've removed that! Tested - SWEET! 0 Share this post Link to post Share on other sites
Rayaleith 2 Report post Posted January 1, 2017 Hmm... I am testing the @mouseover and it works fine but it does not work with Grid, although it is in the compatibility list. 0 Share this post Link to post Share on other sites
gotmilk0112 10 Report post Posted January 1, 2017 (edited) So if I wanted to make a macro that would use Mortal Strike, and also use Heroic Strike if Rage is over 80, I would do: /cast [mypower>80] Heroic Strike; Mortal Strike Correct? Edited January 1, 2017 by gotmilk0112 0 Share this post Link to post Share on other sites
Ike 20 Report post Posted January 2, 2017 (edited) 14 hours ago, Rayaleith said: Hmm... I am testing the @mouseover and it works fine but it does not work with Grid, although it is in the compatibility list. Thank you for reporting this bug! Should be fixed. 12 hours ago, gotmilk0112 said: So if I wanted to make a macro that would use Mortal Strike, and also use Heroic Strike if Rage is over 80, I would do: /cast [mypower>80] Heroic Strike; Mortal Strike Correct? Almost. You can read your macro as "If I have more than 80% rage, cast Heroic Strike. If I have less than that, cast Mortal Strike". So only one of the two will be cast. If you always want to cast Mortal Strike and additionally Heroic Strike, you'd need something like this: /cast [mypower>80] Heroic Strike /cast Mortal Strike If I have more than 80% rage, cast Heroic Strike. Alway cast Mortal Strike Edited January 2, 2017 by Ike 1 Share this post Link to post Share on other sites
Heymom 1 Report post Posted January 5, 2017 Ike, I think i love you.. if you were a girl ill ask you on a date :P 0 Share this post Link to post Share on other sites
Narki 0 Report post Posted January 5, 2017 hi! any chance to make with this addon spammable macro for shapeshift? like in tbc /cast [stance:1] Feral Charge or /cast !Bear Form i bind Bear form to "mouse scroll down", Cat form to "mouse scroll up", and when server start lag, sometimes i scroll it twice, what takes me back to caster form :( thank you. 0 Share this post Link to post Share on other sites
Ike 20 Report post Posted January 5, 2017 (edited) The easiest way to do this would be like this: /cast [stance:0] Bear Form This will cast Bear Form when you're not shapeshifted. Edited January 5, 2017 by Ike typo 0 Share this post Link to post Share on other sites