diff options
author | U-Fish-PC\Daniel <corrnondacqb@yahoo.com> | 2014-05-18 14:19:10 -0400 |
---|---|---|
committer | U-Fish-PC\Daniel <corrnondacqb@yahoo.com> | 2014-05-18 14:19:10 -0400 |
commit | 24c01b09bb2b617812bd826d1cf9ab5e3ec6a023 (patch) | |
tree | 07d2ed81b23de081f2003d9f8d50170344dd5ada /scripts/route1.asm | |
parent | 4e4e72d02a5a202daea3a73363d2a4c3ba34e724 (diff) |
Pull map scripts out of main.asm
Diffstat (limited to 'scripts/route1.asm')
-rwxr-xr-x | scripts/route1.asm | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/scripts/route1.asm b/scripts/route1.asm new file mode 100755 index 00000000..1faf5a48 --- /dev/null +++ b/scripts/route1.asm @@ -0,0 +1,53 @@ +Route1Script: ; 1caaf (7:4aaf) + jp EnableAutoTextBoxDrawing + +Route1TextPointers: ; 1cab2 (7:4ab2) + dw Route1Text1 + dw Route1Text2 + dw Route1Text3 + +Route1Text1: ; 1cab8 (7:4ab8) + db $08 ; asm + ld hl, $d7bf + bit 0, [hl] + set 0, [hl] + jr nz, .asm_02840 ; 0x1cac0 + ld hl, Route1ViridianMartSampleText + call PrintText + ld bc, (POTION << 8) | 1 + call GiveItem + jr nc, .BagFull + ld hl, Route1Text_1cae8 ; $4ae8 + jr .asm_46d43 ; 0x1cad3 +.BagFull + ld hl, Route1Text_1caf3 ; $4af3 + jr .asm_46d43 ; 0x1cad8 +.asm_02840 ; 0x1cada + ld hl, Route1Text_1caee ; $4aee +.asm_46d43 ; 0x1cadd + call PrintText + jp TextScriptEnd + +Route1ViridianMartSampleText: ; 1cae3 (7:4ae3) + TX_FAR _Route1ViridianMartSampleText + db "@" + +Route1Text_1cae8: ; 1cae8 (7:4ae8) + TX_FAR _Route1Text_1cae8 + db $0b,"@" + +Route1Text_1caee: ; 1caee (7:4aee) + TX_FAR _Route1Text_1caee + db "@" + +Route1Text_1caf3: ; 1caf3 (7:4af3) + TX_FAR _Route1Text_1caf3 + db "@" + +Route1Text2: ; 1caf8 (7:4af8) + TX_FAR _Route1Text2 + db "@" + +Route1Text3: ; 1cafd (7:4afd) + TX_FAR _Route1Text3 + db "@" |