summaryrefslogtreecommitdiff
path: root/scripts/Route16FlyHouse.asm
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2019-01-01 15:06:23 -0500
committerRangi <remy.oukaour+rangi42@gmail.com>2019-01-01 23:33:10 -0500
commitc7796024590fec48ac79756793c1a6e3b54daf8f (patch)
tree0d61caa7ebe429995a61e800d1d78c3a82aec886 /scripts/Route16FlyHouse.asm
parent90430e6dee9e207dc0b618d07566f83617343f60 (diff)
Rename map files, labels, and constants to be consistent and work with Polished Map
Diffstat (limited to 'scripts/Route16FlyHouse.asm')
-rwxr-xr-xscripts/Route16FlyHouse.asm55
1 files changed, 55 insertions, 0 deletions
diff --git a/scripts/Route16FlyHouse.asm b/scripts/Route16FlyHouse.asm
new file mode 100755
index 00000000..1d74ac80
--- /dev/null
+++ b/scripts/Route16FlyHouse.asm
@@ -0,0 +1,55 @@
+Route16FlyHouse_Script:
+ jp EnableAutoTextBoxDrawing
+
+Route16FlyHouse_TextPointers:
+ dw Route16HouseText1
+ dw Route16HouseText2
+
+Route16HouseText1:
+ TX_ASM
+ CheckEvent EVENT_GOT_HM02
+ ld hl, HM02ExplanationText
+ jr nz, .asm_13616
+ ld hl, Route16HouseText3
+ call PrintText
+ lb bc, HM_02, 1
+ call GiveItem
+ jr nc, .BagFull
+ SetEvent EVENT_GOT_HM02
+ ld hl, ReceivedHM02Text
+ jr .asm_13616
+.BagFull
+ ld hl, HM02NoRoomText
+.asm_13616
+ call PrintText
+ jp TextScriptEnd
+
+Route16HouseText3:
+ TX_FAR _Route16HouseText3
+ db "@"
+
+ReceivedHM02Text:
+ TX_FAR _ReceivedHM02Text
+ TX_SFX_KEY_ITEM
+ db "@"
+
+HM02ExplanationText:
+ TX_FAR _HM02ExplanationText
+ db "@"
+
+HM02NoRoomText:
+ TX_FAR _HM02NoRoomText
+ db "@"
+
+Route16HouseText2:
+ TX_ASM
+ ld hl, Route16HouseText_1e652
+ call PrintText
+ ld a, FEAROW
+ call PlayCry
+ call WaitForSoundToFinish
+ jp TextScriptEnd
+
+Route16HouseText_1e652:
+ TX_FAR _Route16HouseText_1e652
+ db "@"