Silver MoonTools and method

Alpha Storm is three lanes, not a cone

Every player has hoped the enemies would bunch up in front of Aika. I traced who an area move actually hits: the game works on a hidden 9 by 9 grid, the Wevl spells test a square of it, and Alpha Storm fires three straight lanes from Aika through her target.

Log 255 min read

Endymion keeps a wishlist for after the port reaches parity, and one line in it has been there since the start: “Attacks are positional but the player can’t position anyone, so a lot of combat is hoping enemies stand in the cone in front of Aika for Alpha Storm.”

Aika throws Alpha Storm, and sometimes it catches three enemies and sometimes one, and nothing on screen tells you why. Endymion’s idea for an optional real-time battle mode is that you could move your party around and line moves up. I’m designing that mode, and it can’t be designed without knowing how the game decides who is “in the cone”. So I went to find out. The short answer is that there is no cone.

The board nobody sees

Characters in a battle wander about between turns, and it looks like free movement. It isn’t. Underneath, the battle is played on a board: a 9 by 9 grid of cells, each 15 units across, with the party starting at one end and the enemies at the other. Big enemies cover several cells. Every frame, every character writes its number into the cell under its feet. When I looked at where everyone was standing between actions, every character was exactly on the centre of a cell. They walk from cell to cell; they never stop in between.

So “who’s in range” is a question about cells.

The rules don’t decide; the effect does

This was the first surprise. When a move with an area goes off, the battle rules don’t work out who is inside it. They work out the damage for everyone on the target side. Then the move’s visual effect plays, and somewhere in its script is a command that looks at the board and picks who the effect actually reaches. Those characters flinch and take their damage. Everyone else is let off, and the damage worked out for them is thrown away.

To watch this happen I added a trace to the port, --trace-area, which logs every character’s cell, the shape each effect tests with, who it found, and who was let off. Then I ran two battles with it: the deck battle from my spell tests (Log 20), where Vyse, Aika, Fina and Enrique cast every spell and S-move they have, and an ordinary random battle against four enemies. Every time, the characters who lost HP were exactly the ones the effect picked.

The effects pick in three ways I’ve found, and all of them work in cells.

Two 9 by 9 battle grids. On the left, a square area: Wevli hits the 3 by 3 cells around the enemy you pick, and Wevles the 5 by 5 around it, so an enemy two cells away is only caught by the bigger spell. On the right, Alpha Storm as traced in the port: Aika stands at column 3, row 7 and picks the enemy at column 3, row 3. Three lanes, columns 2 to 4, run from her to the far edge. They pass over Enrique, who is ignored, hit the target and a second enemy behind it at column 2, row 1, and miss the enemies at column 5, row 0 and column 1, row 4. A SQUARE AROUND THE TARGET Wevli 3 by 3, Wevles 5 by 5 0 0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 LANES FROM THE CASTER Alpha Storm, as traced 0 0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 Aika Enrique, ignored the target enemy hit enemy let off party member cells the move tests
Left, an example of the square kind: Wevli hits the 3 by 3 cells around the enemy you pick, Wevles the 5 by 5. Right, Alpha Storm exactly as it went in the traced battle: three lanes from Aika, through her target and on to the far edge.

A square around the target

The Wevl spells take a square of cells centred on the enemy you picked: Wevli is 3 by 3, Wevles and Wevlum 5 by 5, and Wevlen 7 by 7. On a 9 by 9 field, 7 by 7 is very nearly everyone. Anyone on the target’s side standing inside the square is hit.

Enemies use squares too. The boss of the deck battle has a blast aimed at one party member. It went off seven times, always taking the 3 by 3 around its target, and it only ever hit the party members standing inside. Once, Enrique was standing one cell outside the square and walked away untouched.

Lanes from the caster

The other kind sends a probe from the caster in a straight line towards the target, and it keeps going until it reaches the edge of the field. The probe is one, three or five lanes wide, a cell apart, and it finds whoever’s cell a lane passes over. The other side takes the hit. Allies in the way are found and ignored, so you can’t hurt your own party with it.

The lightning line works like this: Electri is one lane, Electres and Electrum three, and Electrulen five.

And so does Alpha Storm. In the trace, Aika stood at column 3, row 7 of the board and picked an enemy at column 3, row 3. The lanes ran up columns 2, 3 and 4:

  • they passed over Enrique at (2, 5), who was ignored,
  • they hit the target,
  • they hit a second enemy behind it at (2, 1),
  • and the two other enemies, at (5, 0) and (1, 4), were outside the lanes and let off.

So the way to catch three enemies with Alpha Storm isn’t to hope they crowd in front of Aika. It’s to have them in a line behind the one you pick, as seen from Aika, or shoulder to shoulder with it. You can’t move Aika, but you can choose the line: it’s set by which enemy you pick. An enemy standing behind your target from Aika’s point of view will be hit; one off to the side won’t, however close it is.

Even single blows turned out to be the same thing, one lane wide. An enemy’s plain attack and Vyse’s counterattack both showed up in the trace as a one-lane probe finding its target.

A cone, after all, but not Aika’s

There is a cone in the code: a triangle that opens out from the caster and catches anyone whose cell centre is inside it. Nothing the party cast in either battle used it, so it is probably for enemies’ breath attacks. That one is read from code only, not seen in a run.

Moves that hit a whole side don’t look at the board at all. Their effect is a ring that grows outward and reaches each character in turn, which only decides the moment each one flinches.

One move still doesn’t fit. Enrique’s Royal Blade counts as an area move, but it hit a single enemy every time, with no square, no lane and no cone in the trace. How it picks is still to find.

All of this comes from runs of the port; I haven’t yet checked the same battles in Dolphin.

What it means for the real-time mode

For the real-time mode this is good news, and simpler than I expected. Because every move already decides its targets on a grid, from where everyone stands, the mode can show you the area before you commit: the square on the floor, or Alpha Storm’s three lanes running from Aika through the enemy you’re pointing at. And since in that mode you could walk Aika somewhere else first, you could put three enemies in a row and catch them all.