Skip to content

Star Wars Galaxies

Target and Engage

Picks the nearest hostile and opens fire. The basis of every unattended combat macro ever written for this game, for better and worse.

SWG · General49 chars
/targetClosestEnemy;
/pause 1;
/attack;
/pause 3;

Where to paste this

  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.