lunaMacro
Guides / Building configs

Building configs

A config is your team plus the list of steps that places and upgrades it. Everything here lives on the Build page.

Your team

Open Build > Team. Each of the six hotbar slots has:

FieldWhat it's for
NameThe unit's name as the game shows it at the top of its panel, such as Iron Sentinel. lunaMacro checks it before upgrading, so the right unit always gets the upgrade. Leave it empty to skip the check.
KeyThe key that picks this unit up to place it. Click it, then press the key.
TypeGround, Hill or Farm. Each type has its own pause after placing (see Placement), spots that turn out blocked are remembered per type, and Anti leech places farms first.

Recording a match

The fastest way to build a config is to play a match yourself while lunaMacro writes it down.

  1. Get into a match and press Record on the Build page, or F5.
  2. Walk to where you want to stand. Your spot is saved as soon as you place your first unit.
  3. Play as normal. Each unit you place, upgrade, sell, or whose ability you use or switch to auto becomes a step.
  4. Press F5 again to finish.

Recording replaces the steps already in the config. Make a new config first if you want to keep the old one.

Only the order of what you did is kept, not the timing. When the macro plays it back, each step waits until there's enough yen.

Steps

Each step names a unit slot and a spot on the screen. The first step with a new spot places a unit there. Later steps on the same spot work on that same unit: upgrading it further, using its ability, or selling it.

OptionWhat it does
SlotWhich hotbar slot the step uses. None makes a step that only waits.
X, YWhere the unit goes. Type them in, click on the map preview, or press Pick spot and click in the game.
Upgrade toThe level to upgrade the unit to, or MAX to upgrade until it's fully upgraded.
Wait afterMilliseconds to wait before the next step.
Sell unitSells the unit on this spot.
Auto abilitySwitches the unit's ability to auto, or back off.
Use abilityUses the ability once. Abilities that ask where to go get the target X and Y, which you can also pick in the game.
First run onlyOnly does this step on the first match of a run.
Before startingDoes this step during the countdown, before the match begins.
EnabledUntick to skip a step without deleting it.

Add upgrade adds a step that only upgrades a unit placed earlier, so it can never place a second one by mistake.

Select several steps with Shift or Ctrl and move them up or down together. A step can also copy another one by its number.

The step editor in lunaMacro
Editing a step.

Moving units

Changing a step's X or Y moves that whole unit: every one of its steps follows, from when it's placed until it's sold.

To move your whole team at once, press Move units. It goes through your units in order: click each one's new spot in the game, or press Skip to leave it where it is. Press Done to stop part-way.

How placing works

If a unit's spot is taken or blocked, lunaMacro tries the nearest free spots around it and keeps the one that works for the rest of the match. You can limit how far it may move in Settings > Placement. When there isn't enough yen yet, it waits for more.

Run options

OptionWhat it does
Config nameThe config's name.
When the stage endsReplay the stage, or return to the lobby. The Summer Event always goes back to the lobby and joins again.
Times to runHow many matches to play. 0 keeps going until you stop it.
StageThe map this config is for. In the Summer Event, each map uses its own config.
Save my spotStand where this config's units go, in a match, and press it. Each run teleports back to spawn and walks you there by the minimap before placing.

The Configs page

The Configs page lists every config under its mode, with its map and how many steps it has. From there you can open one, delete it, or use Copy to to copy it into another mode.

Packs and sharing

A pack is a set of configs, usually one per map, kept together. Copy code turns a config or a whole pack into a code you can send to a friend, and Paste brings one in from your clipboard.

Routines

The Routine page plays several configs one after another, each for as many times as you set. Between configs, lunaMacro goes back to the lobby, lets you know on Discord and waits for you to start the next one.