Prev: 40408 Up: Map Next: 40520
40447: Character Action: Inspector Lestrade
Scheduled behaviour for Inspector Lestrade. Reached through the character-action table at Table_CharacterActions, dispatched by 40068.
CharacterAction_InspectorLestrade 40447 LD C,4 Call CheckObjectInCharacterLocation to check object in character location.
40449 CALL CheckObjectInCharacterLocation
40452 JR NZ,CharacterAction_InspectorLestradeHelper Go to CharacterAction_InspectorLestradeHelper if the object is not in this character's location.
40454 LD C,0 Call CheckObjectInCharacterLocation to check object in character location.
40456 CALL CheckObjectInCharacterLocation
40459 JR NZ,CharacterAction_InspectorLestradeHelper Go to CharacterAction_InspectorLestradeHelper if the object is not in this character's location.
40461 LD A,4 Write 4 to the room display parameter.
40463 LD (41012),A
40466 LD A,1
40468 LD (40336),A Record the police.
40471 LD A,92 Call FetchLocationDataPointer with room 92: Jones Front Gate.
40473 CALL FetchLocationDataPointer
40476 LD (IX+10),0 Clear the high byte of the text pointer.
40480 LD A,62 Call FetchLocationDataPointer with room 62: Browns Front Gate.
40482 CALL FetchLocationDataPointer
40485 LD (IX+10),0 Clear the high byte of the text pointer.
40489 LD HL,40341 Write CharacterAction_InspectorLestradeHelper to *40070.
40492 LD (40070),HL
40495 LD A,1 Write 1 to the police.
40497 LD (40338),A
40500 LD A,(40337) Jump to CharacterAction_InspectorLestrade_Next if the police flag is set.
40503 AND A
40504 LD HL,29191
40507 JR NZ,CharacterAction_InspectorLestrade_Next
40509 INC A Record the police.
40510 LD (40337),A
40513 LD HL,29220
CharacterAction_InspectorLestrade_Next 40516 CALL PrintTextAndHandleControlCharacters Call PrintTextAndHandleControlCharacters to print the message.
40519 RET Return.
Prev: 40408 Up: Map Next: 40520