pokered/scripts/Route1.asm

53 lines
836 B
NASM
Raw Normal View History

Route1_Script:
2014-05-18 18:19:10 +00:00
jp EnableAutoTextBoxDrawing
Route1_TextPointers:
2014-05-18 18:19:10 +00:00
dw Route1Text1
dw Route1Text2
dw Route1Text3
2016-06-12 00:24:04 +00:00
Route1Text1:
text_asm
2015-07-21 17:36:03 +00:00
CheckAndSetEvent EVENT_GOT_POTION_SAMPLE
jr nz, .asm_1cada
2014-05-18 18:19:10 +00:00
ld hl, Route1ViridianMartSampleText
call PrintText
2015-08-05 21:20:29 +00:00
lb bc, POTION, 1
2014-05-18 18:19:10 +00:00
call GiveItem
jr nc, .BagFull
ld hl, Route1Text_1cae8
jr .asm_1cadd
2014-05-18 18:19:10 +00:00
.BagFull
ld hl, Route1Text_1caf3
jr .asm_1cadd
.asm_1cada
ld hl, Route1Text_1caee
.asm_1cadd
2014-05-18 18:19:10 +00:00
call PrintText
jp TextScriptEnd
2016-06-12 00:24:04 +00:00
Route1ViridianMartSampleText:
text_far _Route1ViridianMartSampleText
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route1Text_1cae8:
text_far _Route1Text_1cae8
sound_get_item_1
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route1Text_1caee:
text_far _Route1Text_1caee
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route1Text_1caf3:
text_far _Route1Text_1caf3
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route1Text2:
text_far _Route1Text2
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route1Text3:
text_far _Route1Text3
text_end