Open main menu

UESPWiki β

Morrowind Mod:Mod File Format/SCPT

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

SCPT records contain information about scripts.

C Field Type/Size Info
+ SCHD struct
(52 bytes)
Script header
char[32] - Name
uint32 - NumShorts
uint32 - NumLongs
uint32 - NumFloats
uint32 - ScriptDataSize (same as size of SCDT)
uint32 - LocalVarSize (same as size of SCVR)
- SCVR zstring[varCount] List of all the local script variables separated by NULL characters
(varCount = NumShorts + NumLongs + NumFloats from SCHD)
- SCDT uint8[ScriptDataSize] The compiled script data
- SCTX string Script text