pokered/scripts/Route12SuperRodHouse.asm

58 lines
1 KiB
NASM
Raw Normal View History

Route12SuperRodHouse_Script:
2014-05-18 18:19:10 +00:00
jp EnableAutoTextBoxDrawing
Route12SuperRodHouse_TextPointers:
2014-05-18 18:19:10 +00:00
dw Route12HouseText1
2016-06-12 00:24:04 +00:00
Route12HouseText1:
text_asm
ld a, [wd728]
bit 5, a ; received super rod?
jr nz, .got_item
2014-05-18 18:19:10 +00:00
ld hl, Route12HouseText_564c0
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, SUPER_ROD, 1
2014-05-18 18:19:10 +00:00
call GiveItem
jr nc, .bag_full
ld hl, wd728
set 5, [hl] ; received super rod
2014-05-18 18:19:10 +00:00
ld hl, Route12HouseText_564c5
jr .done
.bag_full
2014-05-18 18:19:10 +00:00
ld hl, Route12HouseText_564d9
jr .done
.refused
2014-05-18 18:19:10 +00:00
ld hl, Route12HouseText_564cf
jr .done
.got_item
2014-05-18 18:19:10 +00:00
ld hl, Route12HouseText_564d4
.done
2014-05-18 18:19:10 +00:00
call PrintText
jp TextScriptEnd
2016-06-12 00:24:04 +00:00
Route12HouseText_564c0:
text_far _Route12HouseText_564c0
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route12HouseText_564c5:
text_far _Route12HouseText_564c5
sound_get_item_1
text_far _Route12HouseText_564ca
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route12HouseText_564cf:
text_far _Route12HouseText_564cf
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route12HouseText_564d4:
text_far _Route12HouseText_564d4
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route12HouseText_564d9:
text_far _Route12HouseText_564d9
text_end