Worms4u

Is this macro possible?

Sign in to follow this  

5 posts in this topic

Hello, I was wondering if this macro was possible, if it is, how would one write it?

 

If Runic power >= 80
     Cast Death Coil
Else
     Cast Clawing Shadows

 

Is something like this doable? Thanks!

Worms

Share this post


Link to post
Share on other sites

No, it is not possible to have any sort of logic in a macro (ie. if/else statements).

Share this post


Link to post
Share on other sites

 

11 minutes ago, Orthios said:

No, it is not possible to have any sort of logic in a macro (ie. if/else statements).

Actually, that's not true. While they might not be written in the typical boolean pseudo-code "if/else" manner, conditional modifiers are possible within macros, possibly the most common one being the harm/help condition.

Unfortunately, ressources are one of the things that are not covered by conditionals. And if there were addons that allow for on-the-fly macro editing based on your current ressources, it might be bordering on automation.

Edited by jinsu2301
On second thought, it would most definitely be automation, and that's a no-go.

Share this post


Link to post
Share on other sites
9 minutes ago, jinsu2301 said:

 

Actually, that's not true. While they might not be written in the typical boolean pseudo-code "if/else" manner, conditional modifiers are possible within macros, possibly the most common one being the harm/help condition.

Unfortunately, ressources are one of the things that are not covered by conditionals. And if there were addons that allow for on-the-fly macro editing based on your current ressources, it might be bordering on automation.

You're right, I should've been a bit more clear.  Boolean logic (ie. comparisons and equality) is unallowed in macros.  Also, flow-of-control statements (ie. if/else statements and for/while loops) are unallowed as that is automation, as you mention.

Share this post


Link to post
Share on other sites
On 9/24/2018 at 12:39 PM, Worms4u said:

Hello, I was wondering if this macro was possible, if it is, how would one write it?

If Runic power >= 80
     Cast Death Coil
Else
     Cast Clawing Shadows

Is something like this doable? Thanks!

Worms

not possible, however with weakauras I believe you can use boolean logic to display an icon that will remind you to use death coil vs clawing shadows

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.