pokered/scripts/VermilionOldRodHouse.asm

58 lines
1.1 KiB
NASM
Raw Normal View History

VermilionOldRodHouse_Script:
2014-05-18 18:19:10 +00:00
jp EnableAutoTextBoxDrawing
VermilionOldRodHouse_TextPointers:
2014-05-18 18:19:10 +00:00
dw VermilionHouse2Text1
2016-06-12 00:24:04 +00:00
VermilionHouse2Text1:
text_asm
ld a, [wd728]
bit 3, a ; got old rod?
jr nz, .got_item
2014-05-18 18:19:10 +00:00
ld hl, VermilionHouse2Text_560b1
call PrintText
call YesNoChoice
ld a, [wCurrentMenuItem]
2014-05-18 18:19:10 +00:00
and a
jr nz, .refused
2015-08-05 21:20:29 +00:00
lb bc, OLD_ROD, 1
2014-05-18 18:19:10 +00:00
call GiveItem
jr nc, .bag_full
ld hl, wd728
set 3, [hl] ; got old rod
2014-05-18 18:19:10 +00:00
ld hl, VermilionHouse2Text_560b6
jr .done
.bag_full
2014-05-18 18:19:10 +00:00
ld hl, VermilionHouse2Text_560ca
jr .done
.refused
2014-05-18 18:19:10 +00:00
ld hl, VermilionHouse2Text_560c0
jr .done
.got_item
2014-05-18 18:19:10 +00:00
ld hl, VermilionHouse2Text_560c5
.done
2014-05-18 18:19:10 +00:00
call PrintText
jp TextScriptEnd
2016-06-12 00:24:04 +00:00
VermilionHouse2Text_560b1:
text_far _VermilionHouse2Text_560b1
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
VermilionHouse2Text_560b6:
text_far _VermilionHouse2Text_560b6
sound_get_item_1
text_far _VermilionHouse2Text_560bb
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
VermilionHouse2Text_560c0:
text_far _VermilionHouse2Text_560c0
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
VermilionHouse2Text_560c5:
text_far _VermilionHouse2Text_560c5
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
VermilionHouse2Text_560ca:
text_far _VermilionHouse2Text_560ca
text_end