Skip to main content

Module utt

Module utt 

Source
Expand description

Typed UTT (.utt) trigger blueprint and conversion helpers. UTT (.utt) typed generic wrapper.

Triggers are invisible zones that act as tripwires, firing scripts, serving as loading zones into another area, or springing traps when a character crosses them.

§Field Layout (simplified)

UTT root struct
+-- TemplateResRef / Tag / LocalizedName / Comment
+-- Cursor / Type / Faction / HighlightHeight
+-- AutoRemoveKey / KeyName
+-- TrapDetectable / TrapDetectDC / TrapDisarmable / DisarmDC / TrapFlag / TrapOneShot / TrapType
+-- Script hooks (OnDisarm/OnTrapTriggered/OnClick/ScriptHeartbeat/ScriptOnEnter/ScriptOnExit/ScriptUserDefine)
+-- LinkedTo / LinkedToFlags / LinkedToModule / PartyRequired / SetByPlayerParty
+-- TransitionDestin (localized destination text)
+-- PortraitId / Portrait / LoadScreenID / PaletteID

Structs§

Utt
Typed UTT model built from/to Gff data.
UttGeometryPoint
One vertex of a trigger’s Geometry.

Enums§

UttError
Errors produced while reading or writing typed UTT data.

Functions§

author_utt
Authors the UTT file the typed view describes, into a writer.
author_utt_to_vec
Authors the UTT file the typed view describes, as bytes.
read_utt
Reads typed UTT data from a reader at the current stream position.
read_utt_from_bytes
Reads typed UTT data directly from bytes.