2014-05-18 18:19:10 +00:00
|
|
|
FuchsiaHouse2Script: ; 750b5 (1d:50b5)
|
|
|
|
jp EnableAutoTextBoxDrawing
|
|
|
|
|
|
|
|
FuchsiaHouse2TextPointers: ; 750b8 (1d:50b8)
|
|
|
|
dw FuchsiaHouse2Text1
|
|
|
|
dw Predef5CText
|
|
|
|
dw BoulderText
|
|
|
|
dw FuchsiaHouse2Text4
|
|
|
|
dw FuchsiaHouse2Text5
|
|
|
|
|
|
|
|
FuchsiaHouse2Text1: ; 750c2 (1d:50c2)
|
2015-07-03 19:58:50 +00:00
|
|
|
TX_ASM
|
2014-05-26 21:04:56 +00:00
|
|
|
ld a, [wd78e]
|
2014-05-18 18:19:10 +00:00
|
|
|
bit 0, a
|
2015-07-03 19:38:12 +00:00
|
|
|
jr nz, .subtract
|
2014-05-18 18:19:10 +00:00
|
|
|
ld b,GOLD_TEETH
|
|
|
|
call IsItemInBag
|
2015-07-03 19:38:12 +00:00
|
|
|
jr nz, .asm_3f30f
|
2014-05-26 21:04:56 +00:00
|
|
|
ld a, [wd78e]
|
2014-05-18 18:19:10 +00:00
|
|
|
bit 1, a
|
2015-07-03 19:38:12 +00:00
|
|
|
jr nz, .asm_60cba
|
2014-05-18 18:19:10 +00:00
|
|
|
ld hl, WardenGibberishText1
|
|
|
|
call PrintText
|
|
|
|
call YesNoChoice
|
2014-05-26 21:04:56 +00:00
|
|
|
ld a, [wCurrentMenuItem]
|
2014-05-18 18:19:10 +00:00
|
|
|
and a
|
|
|
|
ld hl, WardenGibberishText3
|
2015-07-03 19:38:12 +00:00
|
|
|
jr nz, .asm_61238
|
2014-05-18 18:19:10 +00:00
|
|
|
ld hl, WardenGibberishText2
|
2015-07-03 19:38:12 +00:00
|
|
|
.asm_61238
|
2014-05-18 18:19:10 +00:00
|
|
|
call PrintText
|
2015-07-03 19:38:12 +00:00
|
|
|
jr .asm_52039
|
|
|
|
.asm_3f30f
|
2014-05-18 18:19:10 +00:00
|
|
|
ld hl, WardenTeethText1
|
|
|
|
call PrintText
|
|
|
|
ld a, GOLD_TEETH
|
2015-07-03 20:13:35 +00:00
|
|
|
ld [$ffdb], a
|
2014-05-19 14:38:20 +00:00
|
|
|
callba RemoveItemByID
|
2014-05-26 21:04:56 +00:00
|
|
|
ld hl, wd78e
|
2014-05-18 18:19:10 +00:00
|
|
|
set 1, [hl]
|
2015-07-03 19:38:12 +00:00
|
|
|
.asm_60cba
|
2014-05-18 18:19:10 +00:00
|
|
|
ld hl, WardenThankYouText
|
|
|
|
call PrintText
|
|
|
|
ld bc,(HM_04 << 8) | 1
|
|
|
|
call GiveItem
|
|
|
|
jr nc, .BagFull
|
|
|
|
ld hl, ReceivedHM04Text
|
|
|
|
call PrintText
|
2014-05-26 21:04:56 +00:00
|
|
|
ld hl, wd78e
|
2014-05-18 18:19:10 +00:00
|
|
|
set 0, [hl]
|
2015-07-03 19:38:12 +00:00
|
|
|
jr .asm_52039
|
|
|
|
.subtract
|
2014-05-18 18:19:10 +00:00
|
|
|
ld hl, HM04ExplanationText
|
|
|
|
call PrintText
|
2015-07-03 19:38:12 +00:00
|
|
|
jr .asm_52039
|
2014-05-18 18:19:10 +00:00
|
|
|
.BagFull
|
|
|
|
ld hl, HM04NoRoomText
|
|
|
|
call PrintText
|
2015-07-03 19:38:12 +00:00
|
|
|
.asm_52039
|
2014-05-18 18:19:10 +00:00
|
|
|
jp TextScriptEnd
|
|
|
|
|
|
|
|
WardenGibberishText1: ; 75135 (1d:5135)
|
|
|
|
TX_FAR _WardenGibberishText1
|
|
|
|
db "@"
|
|
|
|
|
|
|
|
WardenGibberishText2: ; 7513a (1d:513a)
|
|
|
|
TX_FAR _WardenGibberishText2
|
|
|
|
db "@"
|
|
|
|
|
|
|
|
WardenGibberishText3: ; 7513f (1d:513f)
|
|
|
|
TX_FAR _WardenGibberishText3
|
|
|
|
db "@"
|
|
|
|
|
|
|
|
WardenTeethText1: ; 75144 (1d:5144)
|
|
|
|
TX_FAR _WardenTeethText1
|
|
|
|
db $0b
|
|
|
|
|
|
|
|
WardenTeethText2: ; 75149 (1d:5149)
|
|
|
|
TX_FAR _WardenTeethText2
|
|
|
|
db "@"
|
|
|
|
|
|
|
|
WardenThankYouText: ; 7514e (1d:514e)
|
|
|
|
TX_FAR _WardenThankYouText
|
|
|
|
db "@"
|
|
|
|
|
|
|
|
ReceivedHM04Text: ; 75153 (1d:5153)
|
|
|
|
TX_FAR _ReceivedHM04Text
|
|
|
|
db $0B, "@"
|
|
|
|
|
|
|
|
HM04ExplanationText: ; 75159 (1d:5159)
|
|
|
|
TX_FAR _HM04ExplanationText
|
|
|
|
db "@"
|
|
|
|
|
|
|
|
HM04NoRoomText: ; 7515e (1d:515e)
|
|
|
|
TX_FAR _HM04NoRoomText
|
|
|
|
db "@"
|
|
|
|
|
|
|
|
FuchsiaHouse2Text5: ; 75163 (1d:5163)
|
|
|
|
FuchsiaHouse2Text4: ; 75163 (1d:5163)
|
2015-07-03 19:58:50 +00:00
|
|
|
TX_ASM
|
2015-07-03 20:13:35 +00:00
|
|
|
ld a, [H_SPRITEINDEX]
|
2014-05-18 18:19:10 +00:00
|
|
|
cp $4
|
|
|
|
ld hl, FuchsiaHouse2Text_7517b
|
2015-07-03 19:38:12 +00:00
|
|
|
jr nz, .asm_4c9a2
|
2014-05-18 18:19:10 +00:00
|
|
|
ld hl, FuchsiaHouse2Text_75176
|
2015-07-03 19:38:12 +00:00
|
|
|
.asm_4c9a2
|
2014-05-18 18:19:10 +00:00
|
|
|
call PrintText
|
|
|
|
jp TextScriptEnd
|
|
|
|
|
|
|
|
FuchsiaHouse2Text_75176: ; 75176 (1d:5176)
|
|
|
|
TX_FAR _FuchsiaHouse2Text_75176
|
|
|
|
db "@"
|
|
|
|
|
|
|
|
FuchsiaHouse2Text_7517b: ; 7517b (1d:517b)
|
|
|
|
TX_FAR _FuchsiaHouse2Text_7517b
|
|
|
|
db "@"
|