Prev: 37134 Up: Map Next: 37194
37176: Action: Close
Used by the routine at Event_TheBarrel.
Closes the current object (clears bit 5 of its attributes). An object that is not open is named with message 5. Reached through the action lists of 1 - "Heavy Rock Door", 5 - "Round Green Door", 6 - "Small Insignificant Crack", 8 - "Red Door", 10 - "Goblins Back Door", 11 - "Mountains Side Door", 17 - "Goblins Door", 19 - "Barrel", 32 - "Heavy Curtain", 33 - "Large Cupboard" and 37 - "Wooden Chest" for action 12, dispatched by TriggerAction.
Action_Close 37176 LD IX,(46856) Read *46856.
37180 CALL Event_TestTheOpenFlag Call Event_TestTheOpenFlag to test whether the object is open.
37183 JP Z,Message_NameFromThisRecord Jump to Message_NameFromThisRecord if the object is not open.
If the message is held back, the object stays open.
37186 CALL ConditionSuppressTheMessage Call ConditionSuppressTheMessage. If the message is held back, the object stays open.
This entry point is used by the routine at Action_TalkTo.
Action_Close_0 37189 RES 5,(IX+7) Close the object.
37193 RET Return.
Prev: 37134 Up: Map Next: 37194