Gray Legion Tools

Flag planner

Territory, limits and placement rules come from the game's own data. Click the map to place; drag to move.

X:– Y:–
How the planner reads the game

The map

  • A home kingdom is 1200 × 1200 tiles (X:0–1199). The planner draws X to the right and Y upward.
  • Territory is a fixed grid of 3 × 3-tile cells. A building claims the cells around the one it stands in: Alliance Flag 9 × 9 tiles, Alliance Fortress and Center Fortress 15 × 15. Cells off the map are lost.
  • The ring round a building is the space the game blocks while you place it.
  • Each alliance owns at most: Center Fortress 1, Alliance Fortress 2, Alliance Flag 20 to 500 by its flag research. Flags and fortresses need the Center Fortress first.

The rules it checks

  • Too close to other alliance buildings. (game error 287)
  • Your territory cannot overlap with another alliance's territory. (game error 189)
  • The territory of your new Fortress cannot overlap with the territory of another Fortress. (game error 13081)
  • You can only build Alliance Flags on land connected to your alliance's territory. (game error 188)
  • You've already built the maximum amount of alliance buildings. (game error 263)
  • You must build an Alliance Center Fortress before you can build an Alliance Fortress. (game error 265)
  • Territory that doesn't connect to a Center Fortress or Alliance Fortress is drawn faint, as the game marks it inactive.

Not checked: terrain, passes, holy sites, fog and the starting provinces. The live map (paid) draws the real passes, holy sites, cities and nodes under the plan, but the rules above don't test against them.

JSON format

{
  "buildings": [{"type": "flag|fortress|center", "x": 512, "y": 640, "alliance": "TAG"}],
  "kingdom": 1234,
  "source": "where the plan came from"
}

x and y are the X:Y the game shows (whole numbers, 0–1199); alliance is the tag, up to 12 characters; kingdom and source may be left out.