summaryrefslogtreecommitdiff
path: root/scripts/route12house.asm
diff options
context:
space:
mode:
authorU-Fish-PC\Daniel <corrnondacqb@yahoo.com>2014-05-18 14:19:10 -0400
committerU-Fish-PC\Daniel <corrnondacqb@yahoo.com>2014-05-18 14:19:10 -0400
commit24c01b09bb2b617812bd826d1cf9ab5e3ec6a023 (patch)
tree07d2ed81b23de081f2003d9f8d50170344dd5ada /scripts/route12house.asm
parent4e4e72d02a5a202daea3a73363d2a4c3ba34e724 (diff)
Pull map scripts out of main.asm
Diffstat (limited to 'scripts/route12house.asm')
-rwxr-xr-xscripts/route12house.asm57
1 files changed, 57 insertions, 0 deletions
diff --git a/scripts/route12house.asm b/scripts/route12house.asm
new file mode 100755
index 00000000..6b2f5e52
--- /dev/null
+++ b/scripts/route12house.asm
@@ -0,0 +1,57 @@
+Route12HouseScript: ; 5647f (15:647f)
+ jp EnableAutoTextBoxDrawing
+
+Route12HouseTextPointers: ; 56482 (15:6482)
+ dw Route12HouseText1
+
+Route12HouseText1: ; 56484 (15:6484)
+ db $08 ; asm
+ ld a, [$d728]
+ bit 5, a
+ jr nz, .asm_b4cad
+ ld hl, Route12HouseText_564c0
+ call PrintText
+ call YesNoChoice
+ ld a, [$cc26]
+ and a
+ jr nz, .asm_a2d76
+ ld bc, (SUPER_ROD << 8) | 1
+ call GiveItem
+ jr nc, .BagFull
+ ld hl, $d728
+ set 5, [hl]
+ ld hl, Route12HouseText_564c5
+ jr .asm_df984
+.BagFull
+ ld hl, Route12HouseText_564d9
+ jr .asm_df984
+.asm_a2d76
+ ld hl, Route12HouseText_564cf
+ jr .asm_df984 ; 0x564b5
+.asm_b4cad
+ ld hl, Route12HouseText_564d4
+.asm_df984
+ call PrintText
+ jp TextScriptEnd
+
+Route12HouseText_564c0: ; 564c0 (15:64c0)
+ TX_FAR _Route12HouseText_564c0
+ db "@"
+
+Route12HouseText_564c5: ; 564c5 (15:64c5)
+ TX_FAR _Route12HouseText_564c5 ; 0x8ca00
+ db $0B
+ TX_FAR _Route12HouseText_564ca ; 0x8ca4f
+ db "@"
+
+Route12HouseText_564cf: ; 564cf (15:64cf)
+ TX_FAR _Route12HouseText_564cf
+ db "@"
+
+Route12HouseText_564d4: ; 564d4 (15:64d4)
+ TX_FAR _Route12HouseText_564d4
+ db "@"
+
+Route12HouseText_564d9: ; 564d9 (15:64d9)
+ TX_FAR _Route12HouseText_564d9
+ db "@"