diff options
author | dannye <33dannye@gmail.com> | 2020-05-20 19:40:33 -0500 |
---|---|---|
committer | dannye <33dannye@gmail.com> | 2020-05-20 20:02:53 -0500 |
commit | 10f9559eab8c93b94abb8ae8d1083704ad4e169a (patch) | |
tree | 7dbe7b152dde8a6e9b56664b5b8cdfc0d6be1253 /scripts/Route11Gate2F.asm | |
parent | b8954732a3eaa3a784a6e3eaaa68977a9ccd9816 (diff) |
Sync with pokered
Diffstat (limited to 'scripts/Route11Gate2F.asm')
-rwxr-xr-x | scripts/Route11Gate2F.asm | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/scripts/Route11Gate2F.asm b/scripts/Route11Gate2F.asm new file mode 100755 index 00000000..fde7fdd6 --- /dev/null +++ b/scripts/Route11Gate2F.asm @@ -0,0 +1,76 @@ +Route11Gate2F_Script: + jp DisableAutoTextBoxDrawing + +Route11Gate2F_TextPointers: + dw Route11GateUpstairsText1 + dw Route11GateUpstairsText2 + dw Route11GateUpstairsText3 + dw Route11GateUpstairsText4 + +Route11GateUpstairsText1: + TX_ASM + ld a, $0 + ld [wWhichTrade], a + predef DoInGameTradeDialogue +Route11GateUpstairsScriptEnd: + jp TextScriptEnd + +Route11GateUpstairsText2: + TX_ASM + CheckEvent EVENT_GOT_ITEMFINDER, 1 + jr c, .asm_4949b + ld a, 30 ; pokemon needed + ld [hOaksAideRequirement], a + ld a, ITEMFINDER ; oak's aide reward + ld [hOaksAideRewardItem], a + ld [wd11e], a + call GetItemName + ld h, d + ld l, e + ld de, wOaksAideRewardItemName + ld bc, ITEM_NAME_LENGTH + call CopyData + predef OaksAideScript + ld a, [hOaksAideResult] + dec a + jr nz, .asm_494a1 + SetEvent EVENT_GOT_ITEMFINDER +.asm_4949b + ld hl, Route11GateUpstairsText_494a3 + call PrintText +.asm_494a1 + jr Route11GateUpstairsScriptEnd + +Route11GateUpstairsText_494a3: + TX_FAR _Route11GateUpstairsText_494a3 + db "@" + +Route11GateUpstairsText3: + TX_ASM + ld a, [wSpritePlayerStateData1FacingDirection] + cp SPRITE_FACING_UP + jp nz, GateUpstairsScript_PrintIfFacingUp + CheckEvent EVENT_BEAT_ROUTE12_SNORLAX + ld hl, BinocularsSnorlaxText + jr z, .print + ld hl, BinocularsNoSnorlaxText +.print + call PrintText + jp TextScriptEnd + +BinocularsSnorlaxText: + TX_FAR _BinocularsSnorlaxText + db "@" + +BinocularsNoSnorlaxText: + TX_FAR _BinocularsNoSnorlaxText + db "@" + +Route11GateUpstairsText4: + TX_ASM + ld hl, Route11GateUpstairsText_494d5 + jp GateUpstairsScript_PrintIfFacingUp + +Route11GateUpstairsText_494d5: + TX_FAR _Route11GateUpstairsText_494d5 + db "@" |