pokered/scripts/FuchsiaGoodRodHouse.asm
vulcandth d001ced41b
Add macros, constants, and labels for map scripts and text (#367)
This introduces `def_script_pointers`, `def_text_pointers`, and `object_const_def` macros, and applies them to all maps. Most other map labels have also been identified.
2023-07-13 21:27:56 -04:00

67 lines
1.4 KiB
NASM

FuchsiaGoodRodHouse_Script:
jp EnableAutoTextBoxDrawing
FuchsiaGoodRodHouse_TextPointers:
def_text_pointers
dw_const FuchsiaGoodRodHouseFishingGuruText, TEXT_FUCHSIAGOODRODHOUSE_FISHING_GURU
FuchsiaGoodRodHouseFishingGuruText:
text_asm
ld a, [wd728]
bit 4, a ; got good rod?
jr nz, .got_item
ld hl, .Text
call PrintText
call YesNoChoice
ld a, [wCurrentMenuItem]
and a
jr nz, .refused
lb bc, GOOD_ROD, 1
call GiveItem
jr nc, .bag_full
ld hl, wd728
set 4, [hl] ; got good rod
ld hl, .ReceivedGoodRodText
jr .done
.bag_full
ld hl, .NoRoomText
jr .done
.refused
ld hl, .ThatsSoDisappointingText
jr .done
.got_item
ld hl, .HowAreTheFishText
.done
call PrintText
jp TextScriptEnd
.Text:
text_far _FuchsiaGoodRodHouseFishingGuruText
text_end
.ReceivedGoodRodText:
text_far _FuchsiaGoodRodHouseFishingGuruReceivedGoodRodText
sound_get_item_1
text_end
.UnusedText:
para "つり こそ"
line "おとこの ロマン だ!"
para "へぼいつりざおは"
line "コイキングしか つれ なんだが"
line "この いいつりざおなら"
line "もっと いいもんが つれるんじゃ!"
done
.ThatsSoDisappointingText:
text_far _FuchsiaGoodRodHouseFishingGuruThatsSoDisappointingText
text_end
.HowAreTheFishText:
text_far _FuchsiaGoodRodHouseFishingGuruHowAreTheFishText
text_end
.NoRoomText:
text_far _FuchsiaGoodRodHouseFishingGuruNoRoomText
text_end