Open main menu

UESPWiki β

Morrowind Mod:Mod File Format/AI Package Fields

< Mod / Morrowind: Morrowind Mod: Modding: Mod File Format

This is a subpage for both NPCs and Creatures, since they both use the same format.

C Field Type/Size Info
AI Packages - the following fields can appear in any order, one per AI package, with the order defining the package priority.

Note: duration parameters in all packages are in hours. Any value greater than 24 should be divided by 100, and set to 24 if still greater than 24. The unknown value for each package seems to be an end-of-data marker; it is always a byte value set to 1 with any remaining data in the structure undefined and ignored.

* AI_A struct
(33 bytes)
Activate package:
char[32] - Name
uint8 - Unknown (always 1)
AI_E struct
(48 bytes)
Escort package:
float32 - X
float32 - Y
float32 - Z
uint16 - Duration
char[32] - ID
uint8 - Unknown (always 1)
uint8 - Unused
CNDT
zstring Cell escort string (optional)
AI_F struct
(48 bytes)
Follow package:
float32 - X
float32 - Y
float32 - Z
uint16 - Duration
char[32] - ID
uint8 - Unknown (always 1)
uint8 - Unused
CNDT
zstring Cell follow to string (optional)
AI_T struct
(16 bytes)
Travel package:
float32 - X
float32 - Y
float32 - Z
uint8 - Unknown (always 1)
uint8[3] - Unused
AI_W struct
(14 bytes)
Wander package:
uint16 - Distance
uint16 - Duration
uint8 - Time of Day
uint8[8] - Idles
uint8 - Unknown (always 1)