![]() |
Game Status Buffer |
| Address | Length | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 25000 | 22 |
Word offsets from Table_RoomImageOffsets to the room images. Pointer_RoomImageOffsets points at this table. Entry 0 is unused, and entries 1 to 10 select the ten pictures Image_YourOffice, Image_TheSewer, Image_Rubble, Image_Alleyway, Image_ControlRoom, Image_Wreckage, Image_Desert, Image_Home, Image_Museum and Image_Stadium.
|
||||||||||||||||||||||||
| 40398 | 4 |
A table of delimiter characters used for matching user input in...
|
||||||||||||||||||||||||
| 40402 | 5 |
"Vocabulary Table" used for matching and removing "THE" from user input.
|
||||||||||||||||||||||||
| 40840 | 136 |
A table where the index is the item ID, and the value is the room it resides in (0 for "currently inactive").
When the item is in the players inventory, the room ID changes to 1.
|
||||||||||||||||||||||||
| 41096 | 32 | |||||||||||||||||||||||||
| 41128 | 3 |
One bit for each entry in Table_RoomsWithImages. Handler_RoomExits sets the bit after the picture has been shown so the same room does not draw it again.
|
||||||||||||||||||||||||
| 41160 | 1 |
One bit per turn-based event. Handler_GameEvents counts a bit down while it is set, and the script actions Action_StartTurnEvent and Action_StopTurnEvent change the bits.
|
||||||||||||||||||||||||
| 41161 | 8 |
One counter byte for each bit in Flags_TurnEvents. Handler_GameEvents decreases the counter for every active event, and Action_SetTurnCounter stores a new count.
|
||||||||||||||||||||||||
| 41169 | 1 |
Bits that MovePlayerToRoom honours after a move. Action_SetEventFlag sets a bit and Action_ClearEventFlag clears one.
|
||||||||||||||||||||||||
| 41170 | 1 |
The number of items the player is currently holding.
|
||||||||||||||||||||||||
| 41171 | 1 |
The most items the player may carry. Handler_CanTakeItem compares it with Count_InventoryItems. The game starts it from InitialCarryingLimit, and Action_SetCarryingLimit can replace it.
|
||||||||||||||||||||||||
| 41172 | 6 |
The 6 bytes copied to and from the addresses in Table_SavedStateAddresses while saving and loading. The count is Count_SavedStateBytes.
|
||||||||||||||||||||||||
| 41222 | 1 |
The room the player starts the game in is room 69:
Your Office.
|
||||||||||||||||||||||||
| 41223 | 2 |
|
||||||||||||||||||||||||
| 41225 | 50 |
|
||||||||||||||||||||||||
| 41275 | 10 |
|
||||||||||||||||||||||||
| 41285 | 4 |
The four characters of the word Handler_UserInput is currently matching. Spare letters are spaces.
|
||||||||||||||||||||||||
| 41289 | 12 |
Pointer to the table containing direction messaging: MessagingExits_North, MessagingExits_South, MessagingExits_East, MessagingExits_West, MessagingExits_Up and MessagingExits_Down.
|
||||||||||||||||||||||||
| 42051 | 4 |
The address and length of the command-buffer word being tokenised.
|
||||||||||||||||||||||||
| 42749 | 2 |
Working bytes for Handler_RunScript. The mask collects condition results and the operator selects AND or OR.
|
||||||||||||||||||||||||
| 42873 | 12 |
Parser routines called by Condition_ParserSucceeds and Condition_ParserFails. The first entry is unused.
|
||||||||||||||||||||||||
| 42885 | 60 |
Condition routines indexed by the opcodes in a script.
|
||||||||||||||||||||||||
| 42945 | 68 |
Action routines indexed by the opcodes in a script.
|
||||||||||||||||||||||||
| 43013 | 2 |
ScriptMatchedItem holds the item ID found by Condition_GroupItemDiffers. An operand of 255 makes Handler_RunScript_15 substitute it. ScriptParserResult holds the value returned by the latest parser check.
|
||||||||||||||||||||||||
| 44164 | 2 |
|
||||||||||||||||||||||||
| 44166 | 2 |
|
||||||||||||||||||||||||
| 44408 | 1 |
The room ChangeRoom is about to enter. The script can test it before the move is committed.
|
||||||||||||||||||||||||
| 44669 | 180 |
|
||||||||||||||||||||||||
| 44849 | 172 |
|
||||||||||||||||||||||||
| 45021 | 272 |
|
||||||||||||||||||||||||
| 46112 | 42 |
The token searched for by Handler_DispatchVerb. There are Count_VerbTokens entries.
|
||||||||||||||||||||||||
| 46154 | 84 |
The script Handler_DispatchVerb runs for the matching entry in Table_VerbTokens.
|
||||||||||||||||||||||||
| 46238 | 86 |
A list of all tokens which relate to items.
|
||||||||||||||||||||||||
| 46324 | 282 |
See Table_ItemGrouping for usage.
|
||||||||||||||||||||||||
| 46606 | 172 |
Items may have several item IDs which relate to a single item, this table groups the items together to assist the parser with knowing that tokens refer to the same thing.
Some examples are:
|
||||||||||||||||||||||||
| 46778 | 55 |
A table where the index is the event ID, and the value is the room it resides in (0 for "currently inactive"). See Count_ScenicEvents for the count.
|
||||||||||||||||||||||||
| 46833 | 3 |
Item IDs that use the plural carrying messages. Handler_CanTakeItem and Handler_IsCarryingItem search these 3 bytes.
|
||||||||||||||||||||||||
| 46836 | 329 |
Phrase patterns read by MatchPhraseTokens. Table_PhrasePointers holds an address for each pattern.
|
||||||||||||||||||||||||
| 47165 | 160 |
Addresses of the phrases in Data_PhraseTokens. Condition_PhraseMatches and Condition_PhraseDoesNotMatch index it.
|
||||||||||||||||||||||||
| 47325 | 291 |
|
||||||||||||||||||||||||
| 47616 | 4 |
State byte 3 in Table_SavedStateAddresses. Saving copies this byte through SavedStateBytes, and Action_WriteSavedByte can replace it. The remaining bytes are a room-ID list terminated by 0.
|
||||||||||||||||||||||||
| 47620 | 73 |
State byte 4 in Table_SavedStateAddresses, followed by room IDs in groups terminated by 0. Only the first byte is copied by the save routine.
|
||||||||||||||||||||||||
| 47693 | 172 |
State byte 5 in Table_SavedStateAddresses, followed by room IDs in groups terminated by 0. Only the first byte is copied by the save routine.
|
||||||||||||||||||||||||
| 47865 | 12 |
Addresses of the six bytes packed into SavedStateBytes: 47465, 47596, 47610, 47616, 47620 and 47693. Three of them are direction bytes in Table_RoomMap, so a changed exit survives a save.
|
||||||||||||||||||||||||
| 47877 | 6 |
Values copied to the addresses in Table_SavedStateAddresses when a new game starts.
|
||||||||||||||||||||||||
| 47883 | 136 |
Copied over Table_ItemLocations when a new game starts. The length is Count_Objects_1.
|
||||||||||||||||||||||||
| 48019 | 19 |
See Handler_RoomExits.
|
||||||||||||||||||||||||
| 48038 | 19 |
The picture passed to Handler_Images for each entry in Table_RoomsWithImages.
|
||||||||||||||||||||||||
| 48057 | 4 |
Scripts run by Handler_GameEvents when the matching turn counter reaches zero: 48330 and 48343.
|
||||||||||||||||||||||||
| 48061 | 10 |
Scripts run for the scenic events in Table_ScenicEventLocations2: Data_ScenicEventScript1, Data_ScenicEventScript2, Data_ScenicEventScript3, Data_ScenicEventScript4 and Data_ActionScripts.
|
||||||||||||||||||||||||
| 48071 | 2 |
The total number of objects in the game.
|
||||||||||||||||||||||||
| 48073 | 2 |
The total number of objects in the game.
|
||||||||||||||||||||||||
| 48075 | 2 |
The number of entries in Table_VerbTokens and JumpTable_VerbScripts.
|
||||||||||||||||||||||||
| 48077 | 2 |
The total number of rooms which have related images in the game.
|
||||||||||||||||||||||||
| 48079 | 2 |
|
||||||||||||||||||||||||
| 48081 | 2 |
How many addresses Table_SavedStateAddresses holds, and how many bytes SavedStateBytes packs.
|
||||||||||||||||||||||||
| 48083 | 1 |
|
||||||||||||||||||||||||
| 48085 | 2 |
Points at Table_RoomImageOffsets, the offsets Handler_Images adds after indexing them.
|
||||||||||||||||||||||||
| 48087 | 1 |
Copied to CarryingLimit at the start of a game.
|
||||||||||||||||||||||||
| 48088 | 116 |
Script run by ChangeRoom before the player enters the new room.
|
||||||||||||||||||||||||
| 48204 | 152 |
Script run by ChangeRoom after the new room is current.
|
||||||||||||||||||||||||
| 48356 | 28 |
Script for scenic event 0. JumpTable_ScenicEvents jumps here.
|
||||||||||||||||||||||||
| 48384 | 28 |
Script for scenic event 1.
|
||||||||||||||||||||||||
| 48412 | 9 |
Script for scenic event 2.
|
||||||||||||||||||||||||
| 48421 | 9 |
Script for scenic event 3.
|
||||||||||||||||||||||||
| 48430 | 3003 |
Scenic event 4 starts here. The verb scripts addressed from JumpTable_VerbScripts, and the later action scripts, continue through the rest of this block.
|
||||||||||||||||||||||||
| 51433 | 322 |
|
||||||||||||||||||||||||
| 51755 | 736 |
|