pokered/scripts/route11gateupstairs.asm

77 lines
1.5 KiB
NASM
Raw Normal View History

2016-06-12 00:24:04 +00:00
Route11GateUpstairsScript:
2014-05-18 18:19:10 +00:00
jp DisableAutoTextBoxDrawing
2016-06-12 00:24:04 +00:00
Route11GateUpstairsTextPointers:
2014-05-18 18:19:10 +00:00
dw Route11GateUpstairsText1
dw Route11GateUpstairsText2
dw Route11GateUpstairsText3
dw Route11GateUpstairsText4
2016-06-12 00:24:04 +00:00
Route11GateUpstairsText1:
2015-07-03 19:58:50 +00:00
TX_ASM
2014-05-18 18:19:10 +00:00
xor a
ld [wWhichTrade], a
2015-02-07 10:43:08 +00:00
predef DoInGameTradeDialogue
2016-06-12 00:24:04 +00:00
Route11GateUpstairsScriptEnd:
2014-05-18 18:19:10 +00:00
jp TextScriptEnd
2016-06-12 00:24:04 +00:00
Route11GateUpstairsText2:
2015-07-03 19:58:50 +00:00
TX_ASM
2015-07-21 17:36:03 +00:00
CheckEvent EVENT_GOT_ITEMFINDER, 1
jr c, .asm_4949b
2014-05-21 15:58:18 +00:00
ld a, 30 ; pokemon needed
2015-08-07 11:24:06 +00:00
ld [hOaksAideRequirement], a
2014-05-21 15:58:18 +00:00
ld a, ITEMFINDER ; oak's aide reward
2015-08-13 05:14:31 +00:00
ld [hOaksAideRewardItem], a
ld [wd11e], a
2014-05-18 18:19:10 +00:00
call GetItemName
ld h, d
ld l, e
2015-08-13 05:14:31 +00:00
ld de, wOaksAideRewardItemName
2015-08-14 11:11:53 +00:00
ld bc, ITEM_NAME_LENGTH
2014-05-18 18:19:10 +00:00
call CopyData
2015-08-07 11:24:06 +00:00
predef OaksAideScript
ld a, [hOaksAideResult]
2014-05-18 18:19:10 +00:00
dec a
jr nz, .asm_494a1
2015-07-21 17:36:03 +00:00
SetEvent EVENT_GOT_ITEMFINDER
2014-05-18 18:19:10 +00:00
.asm_4949b
ld hl, Route11GateUpstairsText_494a3
call PrintText
.asm_494a1
jr Route11GateUpstairsScriptEnd
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route11GateUpstairsText_494a3:
2014-05-18 18:19:10 +00:00
TX_FAR _Route11GateUpstairsText_494a3
db "@"
2016-06-12 00:24:04 +00:00
Route11GateUpstairsText3:
2015-07-03 19:58:50 +00:00
TX_ASM
ld a, [wSpriteStateData1 + 9]
cp SPRITE_FACING_UP
jp nz, GateUpstairsScript_PrintIfFacingUp
2015-07-21 01:32:02 +00:00
CheckEvent EVENT_BEAT_ROUTE12_SNORLAX
2014-05-18 18:19:10 +00:00
ld hl, BinocularsSnorlaxText
jr z, .print
ld hl, BinocularsNoSnorlaxText
.print
call PrintText
jp TextScriptEnd
BinocularsSnorlaxText:
TX_FAR _BinocularsSnorlaxText
db "@"
BinocularsNoSnorlaxText:
TX_FAR _BinocularsNoSnorlaxText
db "@"
2016-06-12 00:24:04 +00:00
Route11GateUpstairsText4:
2015-07-03 19:58:50 +00:00
TX_ASM
ld hl, Route11GateUpstairsText_494d5
jp GateUpstairsScript_PrintIfFacingUp
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Route11GateUpstairsText_494d5:
2014-05-18 18:19:10 +00:00
TX_FAR _Route11GateUpstairsText_494d5
db "@"