mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-09-17 02:40:50 +12:00

Added using this tutorial: https://github.com/pret/pokered/wiki/Item-Descriptions Credit to Rangi for the baseline code! Updated Candy Sack -> Candy Jar as discussed a while ago too.
58 lines
1.2 KiB
NASM
58 lines
1.2 KiB
NASM
VermilionOldRodHouse_Script:
|
|
jp EnableAutoTextBoxDrawing
|
|
|
|
VermilionOldRodHouse_TextPointers:
|
|
dw VermilionHouse2Text1
|
|
|
|
VermilionHouse2Text1:
|
|
text_asm
|
|
ld a, [wd728]
|
|
bit 3, a ; got old rod?
|
|
jr nz, .got_item
|
|
ld hl, VermilionHouse2Text_560b1
|
|
call PrintText
|
|
call YesNoChoice
|
|
ld a, [wCurrentMenuItem]
|
|
and a
|
|
jr nz, .refused
|
|
lb bc, CANDY_JAR, 1 ; used to be the old rod, but since I've replaced it, for now he'll give you this. I believe this house is currently unused, so no issues..? ~ PvK
|
|
call GiveItem
|
|
jr nc, .bag_full
|
|
ld hl, wd728
|
|
set 3, [hl] ; got old rod
|
|
ld hl, VermilionHouse2Text_560b6
|
|
jr .done
|
|
.bag_full
|
|
ld hl, VermilionHouse2Text_560ca
|
|
jr .done
|
|
.refused
|
|
ld hl, VermilionHouse2Text_560c0
|
|
jr .done
|
|
.got_item
|
|
ld hl, VermilionHouse2Text_560c5
|
|
.done
|
|
call PrintText
|
|
jp TextScriptEnd
|
|
|
|
VermilionHouse2Text_560b1:
|
|
text_far _VermilionHouse2Text_560b1
|
|
text_end
|
|
|
|
VermilionHouse2Text_560b6:
|
|
text_far _VermilionHouse2Text_560b6
|
|
sound_get_item_1
|
|
text_far _VermilionHouse2Text_560bb
|
|
text_end
|
|
|
|
VermilionHouse2Text_560c0:
|
|
text_far _VermilionHouse2Text_560c0
|
|
text_end
|
|
|
|
VermilionHouse2Text_560c5:
|
|
text_far _VermilionHouse2Text_560c5
|
|
text_end
|
|
|
|
VermilionHouse2Text_560ca:
|
|
text_far _VermilionHouse2Text_560ca
|
|
text_end
|