pokered/scripts/Route12Gate2F.asm

80 lines
1.6 KiB
NASM
Raw Permalink Normal View History

Route12Gate2F_Script:
2014-05-18 18:19:10 +00:00
jp DisableAutoTextBoxDrawing
Route12Gate2F_TextPointers:
def_text_pointers
dw_const Route12Gate2FBrunetteGirlText, TEXT_ROUTE12GATE2F_BRUNETTE_GIRL
dw_const Route12Gate2FLeftBinocularsText, TEXT_ROUTE12GATE2F_LEFT_BINOCULARS
dw_const Route12Gate2FRightBinocularsText, TEXT_ROUTE12GATE2F_RIGHT_BINOCULARS
2014-05-18 18:19:10 +00:00
Route12Gate2FBrunetteGirlText:
text_asm
2015-07-21 17:36:03 +00:00
CheckEvent EVENT_GOT_TM39, 1
jr c, .got_item
ld hl, .YouCanHaveThisText
2014-05-18 18:19:10 +00:00
call PrintText
2020-07-06 02:52:27 +00:00
lb bc, TM_SWIFT, 1
2014-05-18 18:19:10 +00:00
call GiveItem
jr nc, .bag_full
ld hl, .ReceivedTM39Text
2014-05-18 18:19:10 +00:00
call PrintText
2015-07-21 17:36:03 +00:00
SetEvent EVENT_GOT_TM39
jr .done
.bag_full
ld hl, .TM39NoRoomText
2014-05-18 18:19:10 +00:00
call PrintText
jr .done
.got_item
ld hl, .TM39ExplanationText
2014-05-18 18:19:10 +00:00
call PrintText
.done
2014-05-18 18:19:10 +00:00
jp TextScriptEnd
.YouCanHaveThisText:
text_far _Route12Gate2FBrunetteGirlYouCanHaveThisText
text_end
2014-05-18 18:19:10 +00:00
.ReceivedTM39Text:
text_far _Route12Gate2FBrunetteGirlReceivedTM39Text
sound_get_item_1
text_end
2014-05-18 18:19:10 +00:00
.TM39ExplanationText:
text_far _Route12Gate2FBrunetteGirlTM39ExplanationText
text_end
2014-05-18 18:19:10 +00:00
.TM39NoRoomText:
text_far _Route12Gate2FBrunetteGirlTM39NoRoomText
text_end
2014-05-18 18:19:10 +00:00
Route12Gate2FLeftBinocularsText:
text_asm
ld hl, .Text
jp GateUpstairsScript_PrintIfFacingUp
2014-05-18 18:19:10 +00:00
.Text:
text_far _Route12Gate2FLeftBinocularsText
text_end
2014-05-18 18:19:10 +00:00
Route12Gate2FRightBinocularsText:
text_asm
ld hl, .Text
jp GateUpstairsScript_PrintIfFacingUp
2014-05-18 18:19:10 +00:00
.Text:
text_far _Route12Gate2FRightBinocularsText
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
GateUpstairsScript_PrintIfFacingUp:
ld a, [wSpritePlayerStateData1FacingDirection]
cp SPRITE_FACING_UP
jr z, .up
ld a, TRUE
jr .done
.up
2014-05-18 18:19:10 +00:00
call PrintText
xor a
.done
2014-09-13 07:50:56 +00:00
ld [wDoNotWaitForButtonPressAfterDisplayingText], a
2014-05-18 18:19:10 +00:00
jp TextScriptEnd