Prev: 42238 Up: Map Next: 42335
42305: Action: Climb Out
Climbs out of the container the character is in. Reached through the action table at ActionTable, dispatched by Turn_RunTheHandlerIfPresent.
ActionClimbOut 42305 LD IY,(46860) Read the record of the character whose turn it is.
42309 LD A,(46824) Read the current object.
42312 CP (IY+1) Jump to ResponseThatWillNotWork if the character is not inside the current object.
42315 JP NZ,ResponseThatWillNotWork
42318 CALL LocateObject Call LocateObject to locate object.
42321 CALL Event_TestTheOpenFlag Call Event_TestTheOpenFlag to test whether the object is open.
42324 JP Z,Message_NameFromThisRecord Jump back to Message_NameFromThisRecord if the object is not open.
42327 CALL ConditionSuppressTheMessage Call ConditionSuppressTheMessage. If the message is held back, the character does not climb out.
42330 LD (IY+1),255 Mark where this object is as unset.
42334 RET Return.
Prev: 42238 Up: Map Next: 42335