Skip to content

20 — Build Unit Type...

Satisfied while the named vehicle is the last one the trigger's own house finished producing.

Editor data
Numeric ID
20
Engine ID
TEVENT_BUILD_UNIT
Editor name
Build Unit Type...
Need token
NEED_UNIT
Parameters
  1. Unit typeunit-type
Attachment
house
INI example
[Events]
<TriggerID>=1,20,0,<Unit type>

Valid values

  • A UnitType. The record holds one type at a time, so the comparison is against the most recently finished vehicle and not against a list of everything built.
Caveats
  • The record is never cleared. Once the house finishes the named vehicle the event stays satisfied until the house finishes a vehicle of a different type, so a trigger on it catches a stretch of time rather than a moment.
  • Only the production path writes the record, so a vehicle that reaches the house any other way leaves it as it was.
  • This is one of the four events exempt from the requirement that an offer name them, which is why an offer about anything at all can satisfy it.
  • The event describes a lasting condition once the record is written, so a persistent tag carrying it fires on every offer until the record changes.
  • 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.