Hello code-savvy neighbors. I have a specific problem which I am trying to chew on a solution for… (TL;DR below for you if you don’t care about the context )
The new Balance druid system–which relies on a pendulum swing between two different ‘eclipse’ buffs that are triggered by spamming either starfire or wrath, and which must be activated in alternation–is a little clunky for me. I want to smooth things out by creating a weak aura to more easily track which Eclipse I am on/working toward and/or just create create a macro that fires either starfire or wrath, depending on which state I am in.
Typically, I shy heavily away from using macros that combine multiple spells/abilities into one button, but in this case I wonder if that is almost preferable to creating an aura, where I’d have to devote a constant % of my awareness toward, just so I know which of my 2 pew pew nukes to spam, while the only determining factor seems to be which of the two arbitrary eclipse buffs I am on. I’m fine with that in some cases (like, being aware of multiple things in my feral rotation doesn’t bug me, and is more complex, but this just…bothers me). If it is that simple, I think I’d almost prefer making a macro that decides whether or not I cast Starfire or Wrath, based on which Eclipse I am in/exiting.
So…for you beautiful folks who have taken the time to learn C++ (or whatever language macros are in…I think I heard it was C++…I know some Javascript but that doesn’t seem to help me with these):
TL;DR
Can you write a macro that puts the following conditions into workable code? I’l paste the text from the Eclipse ability at the bottom, if you want to refer to it.
If Solar Eclipse is–or most recently was–triggered, cast Wrath
If Lunar Eclipse is–or most recently was–triggered, cast Starfire
If no eclipse (solar eclipse/lunar eclipse) has been recently triggered, cast Wrath
Hey, thank you, I realize that this is kind of a complicated problem to be coming to the forums with (at least for a baby-coder like my. My wife just laughed at me and said it’s only an if-statement, but she doesn’t know how to code it either so… thanks.
------------------for reference---------------------------------
**Eclipse
Casting 2 Starfire empowers Wrath for 15 sec. Casting 2 Wrath empowers Starfire for 15 sec. These Eclipses occur in alternation.
Eclipse (Solar)
Wrath cast time reduced 8% and damage increased 20%.