Learn Macro Coding in Just Two Days!

By >revolt_

With thanks to Revolt for giving us permission to use this.

DAY ONE: The Basics

/macro MacroName /commands

The macro command will create a macro button on the hotbar labeled with the MacroName. If you click on that newly created macro hotbar button, it will execute the commands that you typed in after the MacroName.


Example:
/macro Greeting /wave Howdy, mate!


This macro called, "Greeting", will execute the emote /wave and will type in "Howdy, mate!" in the currently open chat window. You don't have to put chat text into double quotes. Just write your text into the macro with a space between other commands or emotes.

 

return to top



Useful Commands

Now, a little list of useful commands for macro "coding". You can get an extensive list of commands into your system window with the /commands command.



(1) /invoke AbilityName

The /invoke command will activate the given ability as long it is actually loaded.


Example:
/invoke Stun1


As you see, you will have to remember some naming conventions for AbilityName. NoSpaceBetweenWords. Upgrade Attacks becomes UpgradeAttacks. If an ability has a version number like Logic Cannon 1.0, it will just become LogicCannon1. Scrap the .0 part. Remember that some abilities have version numbers though you may never have noticed them. Eg Gaussian Blur is GaussianBlur1.



(2) /use HotbarSlotNumber, HotbarPageNumber

The /use command will activate the ability/item/weapon/apparel/macro that has been placed in that specific hotbar slot and page. Remember to type a space after the comma.


Example:
/use 1, 5


Will use the ability/item/weapon/apparel/macro placed on slot 1 and page 5 of your hotbar.



(3) /savelo LoadOutTemplateName

This extremly handy command will save your current ability loadout under the name you specified. Though to properly use it you'll need another command.

/loadlo LoadOutTemplateName

This command will load the ability loadout that you have previously saved under LoadOutTemplateName. That means every ability will be like when you typed in /savelo LoadOutTemplateName.


Example:

Load all your Coder abilities. Then type in:

/savelo Coder

Change your loadout to whatever you want or even unload all your abs. Then type in:

/loadlo Coder


Whozaaa! Now all your Coder abilities you had previously loaded while typing /savelo Coder have been loaded again into your memory. Schweet, huh? (Kudos to Marie for the discovery. Smile)



(4) Now we just need a command to control the flow of the macro. Whoozaa! What's that? Isn't that a lovely /pause command over there?


Example:

/macro Taco /eatataco; /pause 50; /eatsomemoretacos


This macro will pause for 5 seconds until it proceeds with the /eatsomemoretacos command. /Pause 10 means it will pause for 1 second. /Pause 30 will stop for 3 seconds.

As you have seen in the above example, I've used semicolons to execute more than one command. The semicolon is your best friend.

 

return to top



The Meaty Stuff (Creative Macro Usage)

So, let's get to the meaty stuff now. I'll show you some examples of creative macro usage:



(1) Hacker Evade Combat Buff Macro:


/macro Evade /target Revolt; /invoke EvadeCombat; /pause 25; /invoke GaussianBlur1; /pause 20; /StandOff; /pause 20; /invoke UpgradeAttacks


This macro will automatically activate all the specified hacker buff abilities once you press the macro button. Though you have to stand still for it. With this macro you won't have that much hassle with your buff abs as a hacker. I typed in /target Revolt because you have to target yourself if you want to use Gaussian Blur. As you can see, I had to tweak the /pause timers so the abilities don't disrupt themselves while activating.

If you want to Update your hacker buff abs, then type in the following to get the following macro button on your hotbar:


/macro Update /target Revolt; /invoke GaussianBlur1; /pause 20; /StandOff; /pause 20; /invoke UpgradeAttacks




(2) Abitity Loadout Changing Macro Buttons (for ease of use):

Load all your coder abs. Type in: /savelo Coder

Then load all your hacker abs. Type in: /savelo Hacker

Atleast load all your martial artist abs. Type in: /savelo MA

Then open page 10 of your hotbar (or whatever page you like) and type in the following:


/macro Coder /loadlo Coder

/macro Hacker /loadlo Hacker

/macro MA /loadlo MA


Now you will have three macro buttons on your hotbar that can switch all your ability loadouts as you wish. Quite handy, huh? Especially for Coders. But you have to be at a hardline, of course, to switch your loadouts.



(3) Disco Lightning Clothing (don't ask...):

Aquire two or three sets of clothing that are basically the same, only different in their colors. Perhaps choose some good contrasts like black/white or pink and turquoise (O_.). Open a free hotbar page and put your two sets of clothes on it.

You will need two free slots somewhere on your hotbar.

Now type in the following with the right page and slots of course:


/macro WhoIsDaDanceCommander? /use 1, 5; /pause 1; /use 2, 5; /pause 1; /use 3, 5; /pause 1; /use 4, 5; /use 10, 5


(That last /use uses slot 10 of page five. It has to be free at the moment.)

And now type in the following: Twisted Evil


/macro ImDaDanceCommander! /use 9, 5


Now you just have to move the macro "WhoIsDaDanceCommander?" to slot 9 on page 5 and the macro "ImDaDanceCommander!" to slot 10 on page 5. Now what does this nonsense do? Basically it will cycle through your two (or more if you want) sets of different colored clothes and will create something like a living disco lightning equipment. Nice to have for parties.

If you want to stop that endless cycle, just move one of your DanceCommander macros to another slot on the hotbar and it will stop automatically.

"Wo's da dance commander?"

 

return to top



DAY TWO:



Eat a taco.



Congratulations! You have learned how to code macros in only two days! /macro Gratz /thumbsup w00t /cheer

Happy macro coding! ;)

>revolt_