Prev: A3C3 Up: Map Next: A400
A3E7: Handler for the goblins' door: OPEN
The goblins' door (object 17) can only be opened by someone in the goblins' big cavern (room 16), in other words from the inside; from anywhere else the attempt fails (9EBF). It is then opened as usual (9078) and timer 3 is started, so two turns later it shuts itself (A400).
A3E7 LD IX,($B5FC) IX = the actor's record
A3EB LD A,(IX+$10) Is the actor in the goblins' big cavern (room 16)?
A3EE CP $10
A3F0 JP NZ,$9EBF No: it cannot be opened from this side
A3F3 CALL $9078 Open it
A3F6 CALL $975D Only if it really happened...
A3F9 LD A,($C988) ...start timer 3 (count 2)
A3FC LD ($C989),A
A3FF RET
Prev: A3C3 Up: Map Next: A400