Morrowind Mod:Mod File Format/SCPT

The UESPWiki – Your source for The Elder Scrolls since 1995
Jump to: navigation, search

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