Prev: 36813 Up: Map Next: 36853
36822: Action: Follow
Follows another character through the exit they took. Reached through the action table at ActionTable, dispatched by Turn_RunTheHandlerIfPresent.
Action_Follow 36822 LD IX,(46860) Read *Pointer_CurrentCharacter.
36826 LD B,(IX+16) Read the location from the object record.
36829 LD IX,(46856) Read *46856.
36833 LD A,(IX+16) Read the location from the object record.
36836 CP B Jump to Action_Follow_PrintCannotFollow if both objects are in the same location.
36837 JR Z,Action_Follow_PrintCannotFollow
36839 CALL ExitsFindTheExitToALocation Call ExitsFindTheExitToALocation to find an exit whose destination is that location.
36842 CP 255 Jump to Action_LeaveIfTheWayIsOpen_0 if an exit leads there.
36844 JP NZ,Action_LeaveIfTheWayIsOpen_0
Action_Follow_PrintCannotFollow 36847 LD HL,45033 Point at the message "i cannot follow[0x07] from here[0x15]" (45033).
36850 JP PrintMessage Jump back to PrintMessage to print "i cannot follow[0x07] from here".
Prev: 36813 Up: Map Next: 36853