109 — Create Building At...
Added in 0.2.0
Places a building of the given type for the given house at the action's waypoint.
Editor data
- Numeric ID
109- Engine ID
TACTION_CREATE_BUILDING_AT- Editor name
- Create Building At...
- Need token
NEED_STRUCTURE_PLACEMENT- Parameters
- House
house - Building type
building-type - Force placement
boolean - Waypoint
waypoint
- House
- Attachment
- none
INI example
[Actions]
<TriggerID>=1,109,0,<House>,<Building type>,<Force placement>,0,0,<Waypoint>The force flag decides how the building is placed:
- With the flag at
0, the building is refused unless every cell of its foundation is clear to build on. It does not need to be next to the house’s base. A structure that is placed plays its build-up animation. Walls and upgrades appear at once. - With the flag at
1or above, the foundation is not checked, so the building can be placed on blocked or unsuitable ground. It appears complete, with no build-up animation. A wall is still refused on some sloped cells.
Either way, an upgrade is placed only onto a structure of the same house that stands on the waypoint and is the type the upgrade is for. The structure must also have room for it:
- An upgrade with a
PowersUpToLevellevel fits only a structure with no upgrades. - Any other upgrade fits a structure with no upgrades, or one holding fewer than its
Upgradescount.
[Waypoints]1=45060 ; waypoint 1 has the letter label B
[Actions]Outpost=1,109,0,0,12,1,0,0,B ; the house at index 0 receives BuildingType 12 at waypoint B, forcedSpawn houses lists the house numbers that name a start position in place of a country. When several houses play the named country, only one of them receives the building.
Valid values
- A house by number, either a country or a spawn house. A BuildingType by its index in the loaded
[BuildingTypes]list. A force flag of0or1. A waypoint the map has placed, written as its letter label.
Caveats
- A house nobody plays, a spawn house nobody holds, an index outside the list, or a waypoint the map has not placed leaves the action doing nothing.
- A line that leaves out the waypoint field places the building at waypoint
A. - The house needs no prerequisites or tech level for the type.
History
- Added0.2.0In development