![]() |
Routines |
| Prev: 60530 | Up: Map | Next: 60635 |
|
Let Berk open the door directly in front of him.
|
||||
| ScriptRoutine_BerkOpenDoorInFront | 60592 | LD IY,(29356) | Load IY with the current-entity pointer (Pointer_CurrentEntity). | |
| 60596 | LD (IY+2),2 | Write 2 to the referenced entity's flags byte 2. | ||
| 60600 | LD A,(IY+0) | Load A with the referenced entity's entity type. | ||
| 60603 | CP 5 | Is A equal to 5? If so, jump to Script_OpenDoor_Hit. | ||
| 60605 | JR Z,Script_OpenDoor_Hit | |||
| 60607 | CP 3 | Is A equal to 3? If so, jump to Script_OpenDoor_Basket. | ||
| 60609 | JR Z,Script_OpenDoor_Basket | |||
| 60611 | CP 16 | Is A equal to 16? If so, jump to Script_OpenDoor_TaskProp. | ||
| 60613 | JR Z,Script_OpenDoor_TaskProp | |||
| 60615 | LD BC,40354 | Point BC at entity-type-8 layout GraphicLayout_WormCan. | ||
| 60618 | JR Script_DoorInteract_Found | Jump to Script_DoorInteract_Found to script Door Interact Found. | ||
|
Open the type-5 yellow cup using layout GraphicLayout_YellowCup, then store via Script_DoorInteract_StoreDoorSlot.
|
||||
| Script_OpenDoor_Hit | 60620 | LD BC,40297 | Point BC at yellow cup layout GraphicLayout_YellowCup. | |
| 60623 | JR Script_DoorInteract_StoreDoorSlot | Jump to Script_DoorInteract_StoreDoorSlot to script Door Interact Next. | ||
|
Open the type-3 basket using layout GraphicLayout_Basket, then store via Script_DoorInteract_Scan.
|
||||
| Script_OpenDoor_Basket | 60625 | LD BC,40207 | Point BC at basket layout GraphicLayout_Basket. | |
| 60628 | JR Script_DoorInteract_Scan | Jump to Script_DoorInteract_Scan to continue scanning. | ||
|
Open the type-16 prop using layout GraphicLayout_SeedBox, then store via Script_DoorInteract_StoreAltDoorSlot.
|
||||
| Script_OpenDoor_TaskProp | 60630 | LD BC,41279 | Point BC at task-prop layout GraphicLayout_SeedBox. | |
| 60633 | JR Script_DoorInteract_StoreAltDoorSlot | Jump to Script_DoorInteract_StoreAltDoorSlot to finish this handler. | ||
| Prev: 60530 | Up: Map | Next: 60635 |