![]() |
Routines |
| Prev: 59114 | Up: Map | Next: 59150 |
|
Fails the action unless the character being processed matches both room parameters. A non-zero return means the script step succeeded.
|
||||
|
Handler word in the display record at 59110, called via 52020.
|
||||
| CompareCharacterWithRoom | 59126 | LD A,(41014) | Compare the character being processed with the room display parameter. | |
| 59129 | LD HL,41012 | |||
| 59132 | CP (HL) | |||
| 59133 | JP Z,ParseInputNumber_ReturnZero | Go to ParseInputNumber_ReturnZero when they match. | ||
| 59136 | DEC A | Count down one and point IX at the current object (40979). | ||
| 59137 | LD IX,(40979) | |||
| 59141 | CP (IX+1) | Go to ParseInputNumber_ReturnZero if it does not match byte 1 of that object. | ||
| 59144 | JP NZ,ParseInputNumber_ReturnZero | |||
| 59147 | OR %00000001 | Reset the zero flag. | ||
| 59149 | RET | Return. | ||
| Prev: 59114 | Up: Map | Next: 59150 |