Open main menu

Difference between revisions of "SCUMM/Technical Reference/Script resources"

m
Set link to index file
m (Set link to index file)
Line 15: Line 15:
= Global Scripts (SC or SCRP) =
= Global Scripts (SC or SCRP) =


Global scripts are limited to 200 and stored in the '''LF''' or '''LFLF''' container. The id and the offset is stored in the ''directory of scripts'' in the game index file.
Global scripts are limited to 200 and stored in the '''LF''' or '''LFLF''' container. The id and the offset is stored in the ''directory of scripts'' in the game [[SCUMM/Index File|index file]].


  Block name        2 ("SC") or 4 ("SCRP") bytes
  Block name        2 ("SC") or 4 ("SCRP") bytes
  Block size        4 bytes  
  Block size        4 bytes  
  Script code        variable
  Script code        variable


= Local Scripts (LS or LSCR) =
= Local Scripts (LS or LSCR) =
24

edits