Skip to content
SW

Sony Online Entertainment / SWG Legends · 2003

Star Wars Galaxies macros

Star Wars Galaxies shipped a macro system so permissive that entire economies were built on it. Macros can loop by calling themselves, drive the toolbar slot by slot, and run unattended — which is exactly how a generation of players ground crafting, entertaining and buffing while asleep. The official servers closed in 2011, but Legends and the emulator community keep the system running unchanged.

Built-in macro editor

How macros work in SWG

Macros are written in the Options window and stored per character. Commands are separated by semicolons, /pause waits in seconds, /ui action drives interface elements, and a macro that ends by calling its own name loops forever.

Setting one up

  1. Open Options, choose the Macro tab and click New.
  2. Give the macro a name and an icon — the name is what other macros call it by.
  3. Write commands one per line, ending each with a semicolon.
  4. Use /ui action toolbarSlot00; to press a toolbar button, counting slots from 0.
  5. Finish with /macro yourname; to loop, and drag the macro onto a toolbar slot to start it.

Rules and limits

  • Toolbar slots run 0 to 23 — 0 to 11 across the top row and 12 to 23 across the bottom.
  • Toolbar panes are numbered 0 to 5, matching bars one through six.
  • You must leave at least /pause 0.1 between commands, and /pause 1 or more is far more reliable.
  • A looping macro keeps running until you type /dump, so always know how to stop one before you start it.
  • Semicolons end every command; leaving one off silently breaks the rest of the macro.

Macros by profession

Pick a profession to see only the macros that apply to it.

All SWG macros

27 macros, searchable and ready to copy.

27 macros

  • EN
    /say Entertainer buffs available, just ask;
    /pause 60;
    /macro buffannounce;

    Tells the cantina what you are offering on a timer. Half of the SWG social economy ran on macros exactly like this one.

  • SW
    /ui action toolbarSlot00;
    /pause 3;
    /ui action toolbarSlot01;
    /pause 3;
    /ui action toolbarSlot02;
    /pause 3;
    /macro combatloop;
    +2 more

    Cycles three toolbar abilities and repeats. Works for any combat profession because it addresses slots rather than named abilities.

  • TR
    /ui action defaultButton;
    /pause 2;
    /ui action defaultButton;
    /pause 2;
    /ui action defaultButton;
    /pause 3;
    /macro craftloop;
    +2 more

    Drives the crafting window slot by slot to produce a batch of identical items. SWG crafting has many confirmation clicks, and this is how crafters got through hundreds of them.

  • SW
    /alias inv /invite;

    Aliases wrap a command behind a shorter name and can be called from macros. Useful for anything you type constantly but do not want a whole macro for.

  • ME
    /curestate poisoned;
    /pause 2;
    /curestate diseased;
    /pause 2;
    /curestate bleeding;

    Walks through the state cures so one button handles whichever condition has landed. The ones that do not apply fail harmlessly.

  • EN

    Dance Loop

    Entertainer

    /dance basic;
    /pause 120;
    /flourish 1;
    /pause 10;
    /macro danceloop;

    Starts a dance, waits, and restarts itself. Entertainers have kept cantinas running on this exact macro for over twenty years.

  • ME
    /ui action toolbarSlot00;
    /pause 3;
    /ui action toolbarSlot01;
    /pause 3;
    /tell %TT Buffs done, safe travels;

    Buffs your target, announces it and moves on. Doctor buff lines outside starports were a fixture of the game and ran almost entirely on macros like this.

  • EN

    Flourish Cycle

    Entertainer

    /flourish 1;
    /pause 10;
    /flourish 2;
    /pause 10;
    /flourish 3;
    /pause 10;
    /macro flourishcycle;
    +2 more

    Rotates through flourishes to keep the audience buff building. Flourishes are what actually generate the entertainer experience and the buff, not the dance itself.

  • SW
    /follow;
    /pause 1;

    Follows your current target until you move. SWG planets are enormous and following someone who knows the way is a genuine time saver.

  • SW
    /pause 0.1;
    /pause 1;
    /pause 5;

    The minimum is a tenth of a second, but anything under a full second is unreliable under load. Most working macros use two seconds or more between actions.

  • ME
    /healdamage;
    /pause 3;
    /healstate;
    /pause 3;

    Fires your heal at whoever you have selected and pauses long enough for the cooldown. Chain it into a loop for sustained group healing.

  • SW
    /invite;
    /pause 2;
    /join;

    Invites your target and then joins. Buff lines and hunting parties both start with this pair of commands.