![]() |
Routines |
| Prev: A86E | Up: Map | Next: A9BD |
|
Turns the two trolls to stone, announces day, and repaints Trolls Clearing. A character script in C913 calls this through the handler address at CA58.
|
||||
| Event_DayDawnsOnTheTrolls | A971 | CALL ConditionSuppressTheMessage | Call ConditionSuppressTheMessage. If the message is held back, the trolls are not turned to stone. | |
| A974 | LD A,$47 | Call Turn_ThePlayerHasDied_0 using object 47 - "Hideous Troll". | ||
| A976 | CALL Turn_ThePlayerHasDied_0 | |||
| A979 | LD A,$48 | Call Turn_ThePlayerHasDied_0 using object 48 - "Vicious Troll". | ||
| A97B | CALL Turn_ThePlayerHasDied_0 | |||
| A97E | LD HL,$C646 | Point HL at the attributes of $47 - "Hideous Troll". | ||
| A981 | RES 7,(HL) | Mark that object not visible. | ||
| A983 | LD HL,$C658 | Point HL at the attributes of $48 - "Vicious Troll". | ||
| A986 | RES 7,(HL) | Mark that object not visible. | ||
| A988 | LD HL,$B262 | Point at the message "in a clearing with two stone trolls." (B262). | ||
| A98B | LD ($BAC4),HL | Write HL to the empty location description for 05 - "Trolls Clearing". | ||
| A98E | LD HL,$BABC | Point HL at the record for location 05 at BABC. | ||
| A991 | RES 6,(HL) | Clear bit 6 of the attributes for 05 - "Trolls Clearing". | ||
| A993 | LD A,$47 | Call Condition_WhereTheObjectIs_0 using object 47 - "Hideous Troll". | ||
| A995 | CALL Condition_WhereTheObjectIs_0 | |||
| A998 | LD A,$48 | Call Condition_WhereTheObjectIs_0 using object 48 - "Vicious Troll". | ||
| A99A | CALL Condition_WhereTheObjectIs_0 | |||
| A99D | LD HL,$B30B | Point at the message "day dawn(s|d|ing|es)" (B30B). | ||
| A9A0 | LD A,$01 | Set NightDay to 01 (daytime). | ||
| A9A2 | LD ($B702),A | |||
| A9A5 | CALL PrintMessage | Call PrintMessage to print message. | ||
| A9A8 | LD IX,$CC00 | Point IX at the location graphics table. | ||
| A9AC | LD A,$05 | Load the graphics data for Graphics_TrollsClearing "Trolls Clearing". | ||
| A9AE | CALL IndexIdTable | |||
| A9B1 | LD L,(IX+$01) | Read the low byte of the graphics address for 05 (Graphics_TrollsClearing). | ||
| A9B4 | LD H,(IX+$02) | Read the high byte of the graphics address for 05 (Graphics_TrollsClearing). | ||
| A9B7 | LD (HL),$05 | Change the paper colour to CYAN. | ||
| A9B9 | INC HL | Increment the graphics data pointer by one. | ||
| A9BA | LD (HL),$28 | Change the colour to INK: BLACK, PAPER: CYAN . | ||
| A9BC | RET | Return. | ||
| Prev: A86E | Up: Map | Next: A9BD |