2014-05-18 18:19:10 +00:00
|
|
|
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
|
2014-05-26 21:04:56 +00:00
|
|
|
ld a, [wd7af]
|
2014-05-18 18:19:10 +00:00
|
|
|
bit 0, a
|
2015-07-03 19:38:12 +00:00
|
|
|
jr nz, .asm_7ccf3
|
2014-05-18 18:19:10 +00:00
|
|
|
ld a, $1
|
2014-09-13 07:50:56 +00:00
|
|
|
ld [wDoNotWaitForButtonPressAfterDisplayingText], a
|
2014-05-18 18:19:10 +00:00
|
|
|
ld hl, CopycatsHouse2FText_5ccd4
|
|
|
|
call PrintText
|
|
|
|
ld b, POKE_DOLL
|
|
|
|
call IsItemInBag
|
2015-07-03 19:38:12 +00:00
|
|
|
jr z, .asm_62ecd
|
2014-05-18 18:19:10 +00:00
|
|
|
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
|
2014-05-19 14:38:20 +00:00
|
|
|
callba RemoveItemByID
|
2014-05-26 21:04:56 +00:00
|
|
|
ld hl, wd7af
|
2014-05-18 18:19:10 +00:00
|
|
|
set 0, [hl]
|
2015-07-03 19:38:12 +00:00
|
|
|
jr .asm_62ecd
|
2014-05-18 18:19:10 +00:00
|
|
|
.BagFull
|
|
|
|
ld hl, TM31NoRoomText
|
|
|
|
call PrintText
|
2015-07-03 19:38:12 +00:00
|
|
|
jr .asm_62ecd
|
|
|
|
.asm_7ccf3
|
2014-05-18 18:19:10 +00:00
|
|
|
ld hl, TM31ExplanationText2
|
|
|
|
call PrintText
|
2015-07-03 19:38:12 +00:00
|
|
|
.asm_62ecd
|
2014-05-18 18:19:10 +00:00
|
|
|
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
|
2014-05-26 21:04:56 +00:00
|
|
|
ld a, [wSpriteStateData1 + 9]
|
2014-05-18 18:19:10 +00:00
|
|
|
cp $4
|
|
|
|
ld hl, CopycatsHouse2FText_5cd1c
|
2015-07-03 19:38:12 +00:00
|
|
|
jr nz, .asm_399a4
|
2014-05-18 18:19:10 +00:00
|
|
|
ld hl, CopycatsHouse2FText_5cd17
|
2015-07-03 19:38:12 +00:00
|
|
|
.asm_399a4
|
2014-05-18 18:19:10 +00:00
|
|
|
call PrintText
|
|
|
|
jp TextScriptEnd
|
|
|
|
|
|
|
|
CopycatsHouse2FText_5cd17: ; 5cd17 (17:4d17)
|
|
|
|
TX_FAR _CopycatsHouse2FText_5cd17
|
|
|
|
db "@"
|
|
|
|
|
|
|
|
CopycatsHouse2FText_5cd1c: ; 5cd1c (17:4d1c)
|
|
|
|
TX_FAR _CopycatsHouse2FText_5cd1c
|
|
|
|
db "@"
|