![]() |
Routines |
| Prev: 9B02 | Up: Map | Next: 9B44 |
|
Used by the routine at CHARACTERS_ACT.
A character held by another character, or by something with flag bit 3, goes on with its script as usual. Held by something closed -- flag bit 5 clear, not to be seen into -- it can do nothing. Otherwise it tries action $37, CLIMB OUT OF, on what holds it.
|
||||
| CAPTIVE | 9B16 | LD A,$FF | The holder is the object | |
| 9B18 | LD (INSTRUMENT),A | |||
| 9B1B | LD A,(IX+$01) | |||
| 9B1E | LD (TARGET),A | |||
| 9B21 | CALL GET_OBJECT | Held by a character, or by something with flag bit 3: carry on with the script | ||
| 9B24 | BIT 3,(IX+$07) | |||
| 9B28 | JP NZ,CHARACTER_FREE | |||
| 9B2B | BIT 6,(IX+$07) | |||
| 9B2F | JP NZ,CHARACTER_FREE | |||
| 9B32 | BIT 5,(IX+$07) | Shut in: nothing this turn | ||
| 9B36 | JP Z,NEXT_CHARACTER | |||
| 9B39 | LD A,$37 | Try to climb out | ||
| 9B3B | LD (ACTION),A | |||
| 9B3E | CALL ACTOR_TRIES | |||
| 9B41 | JP NEXT_CHARACTER | |||
| Prev: 9B02 | Up: Map | Next: 9B44 |