2019-01-01 20:06:23 +00:00
|
|
|
SeafoamIslands1F_Script:
|
2014-05-18 18:19:10 +00:00
|
|
|
call EnableAutoTextBoxDrawing
|
2015-07-21 17:36:03 +00:00
|
|
|
SetEvent EVENT_IN_SEAFOAM_ISLANDS
|
2014-05-18 18:19:10 +00:00
|
|
|
ld hl, wFlags_0xcd60
|
|
|
|
bit 7, [hl]
|
|
|
|
res 7, [hl]
|
2015-07-03 19:38:12 +00:00
|
|
|
jr z, .asm_4483b
|
2014-05-18 18:19:10 +00:00
|
|
|
ld hl, Seafoam1HolesCoords
|
|
|
|
call CheckBoulderCoords
|
|
|
|
ret nc
|
2015-07-21 17:36:03 +00:00
|
|
|
EventFlagAddress hl, EVENT_SEAFOAM1_BOULDER1_DOWN_HOLE
|
2015-07-19 03:49:52 +00:00
|
|
|
ld a, [wCoordIndex]
|
2014-05-18 18:19:10 +00:00
|
|
|
cp $1
|
2015-07-03 19:38:12 +00:00
|
|
|
jr nz, .asm_44819
|
2015-07-21 17:36:03 +00:00
|
|
|
SetEventReuseHL EVENT_SEAFOAM1_BOULDER1_DOWN_HOLE
|
2019-01-01 20:06:23 +00:00
|
|
|
ld a, HS_SEAFOAM_ISLANDS_1F_BOULDER_1
|
2015-07-25 03:27:59 +00:00
|
|
|
ld [wObjectToHide], a
|
2019-01-01 20:06:23 +00:00
|
|
|
ld a, HS_SEAFOAM_ISLANDS_B1F_BOULDER_1
|
2015-07-25 03:27:59 +00:00
|
|
|
ld [wObjectToShow], a
|
2015-07-03 19:38:12 +00:00
|
|
|
jr .asm_44825
|
2014-05-18 18:19:10 +00:00
|
|
|
.asm_44819
|
2015-07-21 17:36:03 +00:00
|
|
|
SetEventAfterBranchReuseHL EVENT_SEAFOAM1_BOULDER2_DOWN_HOLE, EVENT_SEAFOAM1_BOULDER1_DOWN_HOLE
|
2019-01-01 20:06:23 +00:00
|
|
|
ld a, HS_SEAFOAM_ISLANDS_1F_BOULDER_2
|
2015-07-25 03:27:59 +00:00
|
|
|
ld [wObjectToHide], a
|
2019-01-01 20:06:23 +00:00
|
|
|
ld a, HS_SEAFOAM_ISLANDS_B1F_BOULDER_2
|
2015-07-25 03:27:59 +00:00
|
|
|
ld [wObjectToShow], a
|
2014-05-18 18:19:10 +00:00
|
|
|
.asm_44825
|
2015-07-25 03:27:59 +00:00
|
|
|
ld a, [wObjectToHide]
|
|
|
|
ld [wMissableObjectIndex], a
|
2014-06-16 20:57:26 +00:00
|
|
|
predef HideObject
|
2015-07-25 03:27:59 +00:00
|
|
|
ld a, [wObjectToShow]
|
|
|
|
ld [wMissableObjectIndex], a
|
2014-06-16 20:57:26 +00:00
|
|
|
predef_jump ShowObject
|
2014-05-18 18:19:10 +00:00
|
|
|
.asm_4483b
|
|
|
|
ld a, $9f
|
2014-09-13 07:50:56 +00:00
|
|
|
ld [wDungeonWarpDestinationMap], a
|
2014-05-18 18:19:10 +00:00
|
|
|
ld hl, Seafoam1HolesCoords
|
2015-07-19 03:49:52 +00:00
|
|
|
jp IsPlayerOnDungeonWarp
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-04-07 02:58:45 +00:00
|
|
|
Seafoam1HolesCoords:
|
2014-05-18 18:19:10 +00:00
|
|
|
db $06,$11
|
|
|
|
db $06,$18
|
|
|
|
db $ff
|
|
|
|
|
2019-01-01 20:06:23 +00:00
|
|
|
SeafoamIslands1F_TextPointers:
|
2014-05-18 18:19:10 +00:00
|
|
|
dw BoulderText
|
|
|
|
dw BoulderText
|