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/copycatshouse2f.asm | |
parent | 4e4e72d02a5a202daea3a73363d2a4c3ba34e724 (diff) |
Pull map scripts out of main.asm
Diffstat (limited to 'scripts/copycatshouse2f.asm')
-rwxr-xr-x | scripts/copycatshouse2f.asm | 104 |
1 files changed, 104 insertions, 0 deletions
diff --git a/scripts/copycatshouse2f.asm b/scripts/copycatshouse2f.asm new file mode 100755 index 00000000..3dd64a3a --- /dev/null +++ b/scripts/copycatshouse2f.asm @@ -0,0 +1,104 @@ +CopycatsHouse2FScript: ; 5cc71 (17:4c71) + jp EnableAutoTextBoxDrawing + +CopycatsHouse2FTextPointers: ; 5cc74 (17:4c74) + dw CopycatsHouse2FText1 + dw CopycatsHouse2FText2 + dw CopycatsHouse2FText3 + dw CopycatsHouse2FText4 + dw CopycatsHouse2FText5 + dw CopycatsHouse2FText6 + dw CopycatsHouse2FText7 + +CopycatsHouse2FText1: ; 5cc82 (17:4c82) + db $08 ; asm + ld a, [$d7af] + bit 0, a + jr nz, .asm_7ccf3 ; 0x5cc88 + ld a, $1 + ld [$cc3c], a + ld hl, CopycatsHouse2FText_5ccd4 + call PrintText + ld b, POKE_DOLL + call IsItemInBag + jr z, .asm_62ecd ; 0x5cc9a + ld hl, TM31PreReceiveText + call PrintText + ld bc, (TM_31 << 8) | 1 + call GiveItem + jr nc, .BagFull + ld hl, ReceivedTM31Text + call PrintText + ld a, POKE_DOLL + ldh [$db], a + ld b, BANK(RemoveItemByID) + ld hl, RemoveItemByID + call Bankswitch + ld hl, $d7af + set 0, [hl] + jr .asm_62ecd ; 0x5ccc1 +.BagFull + ld hl, TM31NoRoomText + call PrintText + jr .asm_62ecd ; 0x5ccc9 +.asm_7ccf3 ; 0x5cccb + ld hl, TM31ExplanationText2 + call PrintText +.asm_62ecd ; 0x5ccd1 + jp TextScriptEnd + +CopycatsHouse2FText_5ccd4: ; 5ccd4 (17:4cd4) + TX_FAR _CopycatsHouse2FText_5ccd4 + db "@" + +TM31PreReceiveText: ; 5ccd9 (17:4cd9) + TX_FAR _TM31PreReceiveText + db "@" + +ReceivedTM31Text: ; 5ccde (17:4cde) + TX_FAR _ReceivedTM31Text + db $0B +TM31ExplanationText1: ; 5cce3 (17:4ce3) + TX_FAR _TM31ExplanationText1 + db $d, "@" + +TM31ExplanationText2: ; 5cce9 (17:4ce9) + TX_FAR _TM31ExplanationText2 + db "@" + +TM31NoRoomText: ; 5ccee (17:4cee) + TX_FAR _TM31NoRoomText + db $d, "@" + +CopycatsHouse2FText2: ; 5ccf4 (17:4cf4) + TX_FAR _CopycatsHouse2FText2 + db "@" + +CopycatsHouse2FText5: ; 5ccf9 (17:4cf9) +CopycatsHouse2FText4: ; 5ccf9 (17:4cf9) +CopycatsHouse2FText3: ; 5ccf9 (17:4cf9) + TX_FAR _CopycatsHouse2FText3 + db "@" + +CopycatsHouse2FText6: ; 5ccfe (17:4cfe) + TX_FAR _CopycatsHouse2FText6 + db "@" + +CopycatsHouse2FText7: ; 5cd03 (17:4d03) + db $08 ; asm + ld a, [$c109] + cp $4 + ld hl, CopycatsHouse2FText_5cd1c + jr nz, .asm_399a4 ; 0x5cd0c + ld hl, CopycatsHouse2FText_5cd17 +.asm_399a4 ; 0x5cd11 + call PrintText + jp TextScriptEnd + +CopycatsHouse2FText_5cd17: ; 5cd17 (17:4d17) + TX_FAR _CopycatsHouse2FText_5cd17 + db "@" + +CopycatsHouse2FText_5cd1c: ; 5cd1c (17:4d1c) + TX_FAR _CopycatsHouse2FText_5cd1c + db "@" |