Routines |
Prev: 43998 | Up: Map | Next: 44063 |
Used by the routine at 64623.
|
||||
44001 | LD B,49 | Load B with 49 (destination plant's room on Spaceship) | ||
44003 | LD A,(23702) | If Magic Knight's current room is 4 (Outdoors, 3, The Spooky Forest, 1)... | ||
44006 | CP 4 | ... | ||
44008 | JR Z,44021 | ...then skip ahead to 44021 | ||
44010 | CP 17 | If Magic Knight's current room is 17 (Castle Ground Floor, 0, One Axe Room)... | ||
44012 | JR Z,44021 | ...then skip ahead to 44021 | ||
44014 | LD B,4 | Load B with 4 (destination plant's room in Spooky Forest) | ||
44016 | CP 49 | If Magic Knight's current room is not 49 (Spaceship, 4, The Power Plant)... | ||
44018 | JP NZ,64290 | ...then display "YOU CANNOT [Current Command] THAT SPELL NOW..." window (12) and return to game | ||
At this point, B holds the room to which Magic Knight will travel when Pass Plant spell is cast.
|
||||
44021 | LD A,B | Load A with destination room | ||
44022 | LD (44053),A | Update operand to instruction at 44052 to hold destination room | ||
44025 | LD A,(24840) | Load A with Magic Knight's current x-coordinate (characters)... | ||
44028 | RRCA | ... | ||
44029 | RRCA | ... | ||
44030 | RRCA | ... | ||
44031 | RRCA | ... | ||
44032 | AND 15 | ... | ||
44034 | CP 7 | ...and if this is 7... | ||
44036 | JR Z,44044 | ...then skip ahead to 44044 | ||
44038 | LD HL,55589 | Point HL at "YOU ARE NOT NEAR ENOUGH TO THE RIGHT TYPE OF PLANT" text | ||
44041 | JP 64305 | Display "YOU ARE NOT NEAR ENOUGH TO THE RIGHT TYPE OF PLANT" window (27) and return to game | ||
44044 | LD C,30 | If Magic Knight's magic level is at least 30... | ||
44046 | CALL 44225 | ...then flash border and screen and decrease Magic Knight's magic level by 30... | ||
44049 | JP C,64290 | ...otherwise display "YOU CANNOT [Current Command] THAT SPELL NOW..." window (12) and return to game | ||
44052 | LD A,0 | Set Magic Knight's room to destination room... | ||
44054 | LD (23702),A | ... | ||
44057 | LD HL,55625 | Point HL at "YOU FIND YOURSELF STANDING BESIDE A SIMILAR PLANT..." text | ||
44060 | JP 64305 | Display "YOU FIND YOURSELF STANDING BESIDE A SIMILAR PLANT..." window (27) and return to game |
Prev: 43998 | Up: Map | Next: 44063 |