47 — Moveto enemy building
Picks the structure of the named type that best fits the chosen property and sends the team to a cell near it.
Editor data
- Numeric ID
47- Engine ID
TMISSION_MOVETO_BUILDING_WITH_PROPERTY- Editor name
- Moveto enemy building
- Need token
NEED_BUILDING_ATTACK- Parameters
- Building type
building-type - Target property
target-property
- Building type
Building types are numbered in the order they are registered, which Rules registration lists describes.
The team moves to the destination as it does for any move line, which Moving describes.
Valid values
- One number that holds both parameters: the target property times 65536, plus the building type's position in the registered building type list, counted from
0.131073is property2, nearest, with building type1.
Caveats
- The structure is chosen by the same rules as Attack enemy building, including the preference for the declared enemy and the limit that
OnlyTargetHouseEnemy=yesimposes. - The destination is a cell in the playable area near the structure, chosen so that the 3 by 3 block of cells with that cell at one corner is clear for the movement type of the member that joined the team most recently.
- The team takes the next line on the turn after the pick finds no structure, or finds no clear cell near it. Otherwise it takes the next line once it arrives.
- Keep the building type position inside the list. The line uses it without a range check, and a position at or beyond the end of the list reads past it.