2019-01-01 20:06:23 +00:00
|
|
|
BluesHouse_Script:
|
2014-05-18 18:19:10 +00:00
|
|
|
call EnableAutoTextBoxDrawing
|
2019-01-01 20:06:23 +00:00
|
|
|
ld hl, BluesHouse_ScriptPointers
|
2016-01-29 16:20:47 +00:00
|
|
|
ld a, [wBluesHouseCurScript]
|
2014-05-18 18:19:10 +00:00
|
|
|
jp CallFunctionInTable
|
|
|
|
|
2019-01-01 20:06:23 +00:00
|
|
|
BluesHouse_ScriptPointers:
|
2014-05-18 18:19:10 +00:00
|
|
|
dw BluesHouseScript0
|
|
|
|
dw BluesHouseScript1
|
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
BluesHouseScript0:
|
2015-07-21 17:36:03 +00:00
|
|
|
SetEvent EVENT_ENTERED_BLUES_HOUSE
|
2020-07-16 15:19:05 +00:00
|
|
|
ld a, $1
|
2016-01-29 16:20:47 +00:00
|
|
|
ld [wBluesHouseCurScript], a
|
2014-05-18 18:19:10 +00:00
|
|
|
ret
|
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
BluesHouseScript1:
|
2014-05-18 18:19:10 +00:00
|
|
|
ret
|
|
|
|
|
2019-01-01 20:06:23 +00:00
|
|
|
BluesHouse_TextPointers:
|
2020-07-16 15:19:05 +00:00
|
|
|
dw BluesHouseDaisySittingText
|
|
|
|
dw BluesHouseDaisyWalkingText
|
|
|
|
dw BluesHouseTownMapText
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2020-07-16 15:19:05 +00:00
|
|
|
BluesHouseDaisySittingText:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_asm
|
2015-07-21 17:36:03 +00:00
|
|
|
CheckEvent EVENT_GOT_TOWN_MAP
|
2020-07-16 15:19:05 +00:00
|
|
|
jr nz, .got_town_map
|
2015-07-21 01:32:02 +00:00
|
|
|
CheckEvent EVENT_GOT_POKEDEX
|
2020-07-16 15:19:05 +00:00
|
|
|
jr nz, .give_town_map
|
2016-01-29 16:20:47 +00:00
|
|
|
ld hl, DaisyInitialText
|
2014-05-18 18:19:10 +00:00
|
|
|
call PrintText
|
|
|
|
jr .done
|
2016-01-29 16:20:47 +00:00
|
|
|
|
2020-07-16 15:19:05 +00:00
|
|
|
.give_town_map
|
2016-01-29 16:20:47 +00:00
|
|
|
ld hl, DaisyOfferMapText
|
2014-05-18 18:19:10 +00:00
|
|
|
call PrintText
|
2015-08-05 21:20:29 +00:00
|
|
|
lb bc, TOWN_MAP, 1
|
2014-05-18 18:19:10 +00:00
|
|
|
call GiveItem
|
2020-07-16 15:19:05 +00:00
|
|
|
jr nc, .bag_full
|
2016-01-29 16:20:47 +00:00
|
|
|
ld a, HS_TOWN_MAP
|
|
|
|
ld [wMissableObjectIndex], a
|
2020-07-16 15:19:05 +00:00
|
|
|
predef HideObject
|
2016-01-29 16:20:47 +00:00
|
|
|
ld hl, GotMapText
|
2014-05-18 18:19:10 +00:00
|
|
|
call PrintText
|
2015-07-21 17:36:03 +00:00
|
|
|
SetEvent EVENT_GOT_TOWN_MAP
|
2014-05-18 18:19:10 +00:00
|
|
|
jr .done
|
2016-01-29 16:20:47 +00:00
|
|
|
|
2020-07-16 15:19:05 +00:00
|
|
|
.got_town_map
|
2016-01-29 16:20:47 +00:00
|
|
|
ld hl, DaisyUseMapText
|
2014-05-18 18:19:10 +00:00
|
|
|
call PrintText
|
|
|
|
jr .done
|
2016-01-29 16:20:47 +00:00
|
|
|
|
2020-07-16 15:19:05 +00:00
|
|
|
.bag_full
|
2016-01-29 16:20:47 +00:00
|
|
|
ld hl, DaisyBagFullText
|
2014-05-18 18:19:10 +00:00
|
|
|
call PrintText
|
|
|
|
.done
|
|
|
|
jp TextScriptEnd
|
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
DaisyInitialText:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _DaisyInitialText
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
DaisyOfferMapText:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _DaisyOfferMapText
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
GotMapText:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _GotMapText
|
|
|
|
sound_get_key_item
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
DaisyBagFullText:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _DaisyBagFullText
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2016-06-12 00:24:04 +00:00
|
|
|
DaisyUseMapText:
|
2020-07-04 21:09:35 +00:00
|
|
|
text_far _DaisyUseMapText
|
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2020-07-16 15:19:05 +00:00
|
|
|
BluesHouseDaisyWalkingText:
|
|
|
|
text_far _BluesHouseDaisyWalkingText
|
2020-07-04 21:09:35 +00:00
|
|
|
text_end
|
2014-05-18 18:19:10 +00:00
|
|
|
|
2020-07-16 15:19:05 +00:00
|
|
|
BluesHouseTownMapText:
|
|
|
|
text_far _BluesHouseTownMapText
|
2020-07-04 21:09:35 +00:00
|
|
|
text_end
|