Skip to content

32 — Building exists...

Satisfied while the trigger's own house owns at least one structure of the named type.

Editor data
Numeric ID
32
Engine ID
TEVENT_BUILDING_EXISTS
Editor name
Building exists...
Need token
NEED_STRUCTURE
Parameters
  1. Building typebuilding-type
Attachment
house
INI example
[Events]
<TriggerID>=1,32,0,<Building type>

Valid values

  • A BuildingType the scenario can produce or place. The test counts structures of that exact type only.
Caveats
  • The tally it reads counts a structure from the moment it comes into existence to the moment it is destroyed, and it takes no account of limbo.
  • A construction yard creates the structure it is producing at the moment production starts and holds it until the player places it, so the event is satisfied through the whole build and not from the moment the structure appears on the map. Cancelling the production removes the structure again and the event stops being satisfied.
  • A structure marked Insignificant=yes is never counted, so a house holding only those does not satisfy the event.
  • Capturing a structure of the named type satisfies the event for the capturing house, because the tally follows ownership rather than production.
  • The event describes a lasting condition, so a persistent tag carrying it fires on every offer for as long as the structure stands.
  • The event has nothing to ride on. Its tag joins the list of the trigger's own house, which adds nothing to the attachment total a semi-persistent tag waits on, so a trigger built on events of this kind needs a volatile or a persistent tag.