Prev: 40520 Up: Map Next: 40544
40522: Check Character State
Prints the message at 27513 unless both character 3 and character 2 are at the location in SherlockDisguiseCheckResult, in which case it prints 27377+2. Run by 51812 after the display record at 40520, from the show-message command at 61321.
CheckCharacterState 40522 LD HL,27513 Call ReadSherlocksDisguise to read Sherlock's disguise.
40525 LD A,3
40527 CALL ReadSherlocksDisguise
40530 JR NZ,PrintMessageAndInitialiseTimer Go to PrintMessageAndInitialiseTimer unless Sherlock's disguise matches this character.
40532 LD A,2 Jump ahead to PrintMessageAndInitialiseTimer unless Sherlock's disguise matches this character.
40534 CALL ReadSherlocksDisguise
40537 JR NZ,PrintMessageAndInitialiseTimer
40539 LD HL,27379 Jump ahead to PrintMessageAndInitialiseTimer with the message at 26921+458.
40542 JR PrintMessageAndInitialiseTimer
Prev: 40520 Up: Map Next: 40544