2014-05-18 18:19:10 +00:00
|
|
|
Route12GateUpstairsScript: ; 49560 (12:5560)
|
|
|
|
jp DisableAutoTextBoxDrawing
|
|
|
|
|
|
|
|
Route12GateUpstairsTextPointers: ; 49563 (12:5563)
|
|
|
|
dw Route12GateUpstairsText1
|
|
|
|
dw Route12GateUpstairsText2
|
|
|
|
dw Route12GateUpstairsText3
|
|
|
|
|
|
|
|
Route12GateUpstairsText1: ; 49569 (12:5569)
|
2015-07-03 19:58:50 +00:00
|
|
|
TX_ASM
|
2014-05-26 21:04:56 +00:00
|
|
|
ld a, [wd7d7]
|
2014-05-18 18:19:10 +00:00
|
|
|
rrca
|
2015-07-03 19:38:12 +00:00
|
|
|
jr c, .asm_0ad3c
|
2014-05-18 18:19:10 +00:00
|
|
|
ld hl, TM39PreReceiveText
|
|
|
|
call PrintText
|
|
|
|
ld bc, (TM_39 << 8) | 1
|
|
|
|
call GiveItem
|
|
|
|
jr nc, .BagFull
|
|
|
|
ld hl, ReceivedTM39Text
|
|
|
|
call PrintText
|
2014-05-26 21:04:56 +00:00
|
|
|
ld hl, wd7d7
|
2014-05-18 18:19:10 +00:00
|
|
|
set 0, [hl]
|
2015-07-03 19:38:12 +00:00
|
|
|
jr .asm_4ba56
|
2014-05-18 18:19:10 +00:00
|
|
|
.BagFull
|
|
|
|
ld hl, TM39NoRoomText
|
|
|
|
call PrintText
|
2015-07-03 19:38:12 +00:00
|
|
|
jr .asm_4ba56
|
|
|
|
.asm_0ad3c
|
2014-05-18 18:19:10 +00:00
|
|
|
ld hl, TM39ExplanationText
|
|
|
|
call PrintText
|
2015-07-03 19:38:12 +00:00
|
|
|
.asm_4ba56
|
2014-05-18 18:19:10 +00:00
|
|
|
jp TextScriptEnd
|
|
|
|
|
|
|
|
TM39PreReceiveText: ; 4959c (12:559c)
|
|
|
|
TX_FAR _TM39PreReceiveText
|
|
|
|
db "@"
|
|
|
|
|
|
|
|
ReceivedTM39Text: ; 495a1 (12:55a1)
|
|
|
|
TX_FAR _ReceivedTM39Text
|
|
|
|
db $0B, "@"
|
|
|
|
|
|
|
|
TM39ExplanationText: ; 495a7 (12:55a7)
|
|
|
|
TX_FAR _TM39ExplanationText
|
|
|
|
db "@"
|
|
|
|
|
|
|
|
TM39NoRoomText: ; 495ac (12:55ac)
|
|
|
|
TX_FAR _TM39NoRoomText
|
|
|
|
db "@"
|
|
|
|
|
|
|
|
Route12GateUpstairsText2: ; 495b1 (12:55b1)
|
2015-07-03 19:58:50 +00:00
|
|
|
TX_ASM
|
2014-05-18 18:19:10 +00:00
|
|
|
ld hl, Route12GateUpstairsText_495b8
|
2015-07-04 05:44:12 +00:00
|
|
|
jp GateUpstairsScript_PrintIfFacingUp
|
2014-05-18 18:19:10 +00:00
|
|
|
|
|
|
|
Route12GateUpstairsText_495b8: ; 495b8 (12:55b8)
|
|
|
|
TX_FAR _Route12GateUpstairsText_495b8
|
|
|
|
db "@"
|
|
|
|
|
|
|
|
Route12GateUpstairsText3: ; 495bd (12:55bd)
|
2015-07-03 19:58:50 +00:00
|
|
|
TX_ASM
|
2014-05-18 18:19:10 +00:00
|
|
|
ld hl, Route12GateUpstairsText_495c4
|
2015-07-04 05:44:12 +00:00
|
|
|
jp GateUpstairsScript_PrintIfFacingUp
|
2014-05-18 18:19:10 +00:00
|
|
|
|
|
|
|
Route12GateUpstairsText_495c4: ; 495c4 (12:55c4)
|
|
|
|
TX_FAR _Route12GateUpstairsText_495c4
|
|
|
|
db "@"
|
|
|
|
|
2015-07-04 05:44:12 +00:00
|
|
|
GateUpstairsScript_PrintIfFacingUp: ; 495c9 (12:55c9)
|
2014-05-26 21:04:56 +00:00
|
|
|
ld a, [wSpriteStateData1 + 9]
|
2015-07-04 05:44:12 +00:00
|
|
|
cp SPRITE_FACING_UP
|
|
|
|
jr z, .up
|
2014-05-18 18:19:10 +00:00
|
|
|
ld a, $1
|
2015-07-04 05:44:12 +00:00
|
|
|
jr .done
|
|
|
|
.up
|
2014-05-18 18:19:10 +00:00
|
|
|
call PrintText
|
|
|
|
xor a
|
2015-07-04 05:44:12 +00:00
|
|
|
.done
|
2014-09-13 07:50:56 +00:00
|
|
|
ld [wDoNotWaitForButtonPressAfterDisplayingText], a
|
2014-05-18 18:19:10 +00:00
|
|
|
jp TextScriptEnd
|