Skip to content

22 — Goto nearby shroud

Changed in 0.2.0

Sends the team to a shrouded cell chosen at random from the nearest ones.

Editor data
Numeric ID
22
Engine ID
TMISSION_GOTO_SHROUD
Editor name
Goto nearby shroud
Need token
NEED_NONE
Parameters
None

The search starts at the team’s center, or at the team’s most recently joined member when the team has no center. A cell counts as shrouded when the house that owns the object at the center has not explored it. The center is normally one of the team’s members, so this is normally the team’s house.

On the turn the team reaches this line, its center is still the one computed for the previous line. After a Follow friendlies line, that center is the followed ally, so the search starts at the ally and tests the shroud of the ally’s house.

When the team’s center is a cell, not an object, the search has no valid house to test shroud for. Which cells count as shrouded is then unpredictable, and the game may crash. The center is a cell in either of these cases:

  • the member nearest the team’s target cannot enter the averaged center cell;
  • the previous line was Follow friendlies and the followed object is in a tunnel, so the center is the tunnel’s exit cell.

The team moves on to its next line once it arrives, as Moving describes.

Caveats
  • The search looks only at cells inside the playable area, in square rings around its starting point, no more than 31 cells out in any direction.
  • The search stops once it has found 24 shrouded cells and picks one of them at random. The team therefore goes to one of the nearest shrouded cells, not necessarily the nearest. Every machine in a multiplayer game picks the same cell.
  • The destination is chosen once, when the team reaches the line. The team keeps heading there even if the cell is revealed before it arrives.
  • If no shrouded cell is found, the team is sent to the cell the search started from, so the line usually ends almost at once.

History

  1. Changed0.2.0In development

    Search the team's own shroud in Goto nearby shroud