24
edits
m (Set link to index file) |
(Added description of OC block for V3/4 games) |
||
Line 49: | Line 49: | ||
= Object Scripts (OBCD in V5+, | = Object Scripts (OBCD in V5+, OC in V3/4) = | ||
These are scripts that correspond to VERB actions. VERBs are predefined activities at the bottom of the screen, e.g. "Open", "Look", "Give" etc. For each named object in a room, the game designer could define responses to the players actions. Starting with version 5, the whole code can be found in an [[Object resources|Object Resource]]. | These are scripts that correspond to VERB actions. VERBs are predefined activities at the bottom of the screen, e.g. "Open", "Look", "Give" etc. For each named object in a room, the game designer could define responses to the players actions. Starting with version 5, the whole code can be found in an [[Object resources|Object Resource]]. | ||
Line 70: | Line 70: | ||
offset 2 bytes | offset 2 bytes | ||
table end 1 byte(must be 0) | table end 1 byte(must be 0) | ||
code | object code variable | ||
In Version 3 and 4 the code can be found in the '''OC''' block: | |||
OC | |||
Block size 4 bytes | |||
Block name 2 bytes ("OC") | |||
Object ID 1 byte (?) | |||
unknown 12 bytes | |||
Now starts a variable block similar to the VERB block in later games, which contains the verb identifier (1 byte) and the offset. The table end is marked with 0. | |||
verb 1 byte | |||
offset 2 bytes | |||
table end 1 byte (must be 0) | |||
object name 0 terminated string | |||
object code variable |
edits