Jump to content
FORUMS
Sign in to follow this  
Worms4u

Is this macro possible?

Recommended Posts

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

 

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...