A PACK record defines an AI package. There is a CTDA subrecord for each package condition.
Subrecord |
Type |
Info |
---|
EDID |
zstring |
Package editor ID |
PKDT |
ulong |
Flags
- 0x00000001 = Offers services
- 0x00000002 = Must reach location
- 0x00000004 = Must complete
- 0x00000008 = Lock doors at package start
- 0x00000010 = Lock doors at package end
- 0x00000020 = Lock doors at location
- 0x00000040 = Unlock doors at package start
- 0x00000080 = Unlock doors at package end
- 0x00000100 = Unlock doors at location
- 0x00000200 = Continue if PC near
- 0x00000400 = Once per day
- 0x00001000 = Skip fallout behavior
- 0x00002000 = Always run
- 0x00020000 = Always sneak
- 0x00040000 = Allow swimming
- 0x00080000 = Allow falls
- 0x00100000 = Armor unequipped
- 0x00200000 = Weapons unequipped
- 0x00400000 = Defensive combat
- 0x00800000 = Use horse
- 0x01000000 = No idle anims
|
long |
Type
- 0=Find
- 1=Follow
- 2=Escort
- 3=Eat
- 4=Sleep
- 5=Wander
- 6=Travel
- 7=Accompany
- 8=Use item at
- 9=Ambush
- 10=Flee not combat
- 11=Cast magic
|
PSDT |
ubyte |
Month (Any=255) |
ubyte |
Day of week (Any=255)
- 0=Sundas
- 1=Morndas
- 2=Tirdas
- 3=Middas
- 4=Turdas
- 5=Fredas
- 6=Loredas
|
- 7=MTWTF
- 8=Loredas, Sundas
- 9=Morndas, Middas, Fredas
- 10=Tirdas, Turdas
|
|
ubyte |
Date (Any=0) |
ubyte |
Time (Any=255) |
long |
Duration |
PLDT |
long |
Type
- 0=Near reference
- 1=In cell
- 2=Near current location
- 3=Near editor location
- 4=Object ID
- 5=Object type
|
formid/long |
Location (Form ID for types 0-4 and number for type 5) |
long |
Radius |
PTDT |
long |
Type
- 0=Specific reference
- 1=Object ID
- 2=Object type
|
formid/long |
Target (Form ID for types 0-1 and number for type 2) |
long |
Count |
CTDA |
ubyte |
Condition type where the upper 4 bits contain the compare operator and the lower 4 bits contain flags.
- Compare operator
- 0=Equal to
- 2=Not equal to
- 4=Greater than
- 6=Greater than or equal to
- 8=Less than
- 10=Less than or equal to
- Flags
- 0x01=OR
- 0x02=Run on target
- 0x04=Use global
|
ubyte[3] |
Unknown |
float |
Comparison value |
long |
Function index. See Functions for a list of function indices. |
formid/long |
First parameter. This can be a number or a Form ID depending on the function. |
formid/long |
Second parameter. This can be a number of a Form ID depending on the function |
ubyte[4] |
Unknown |