pokered/scripts/CopycatsHouse2F.asm

103 lines
1.9 KiB
NASM
Raw Normal View History

CopycatsHouse2F_Script:
2014-05-18 18:19:10 +00:00
jp EnableAutoTextBoxDrawing
CopycatsHouse2F_TextPointers:
2014-05-18 18:19:10 +00:00
dw CopycatsHouse2FText1
dw CopycatsHouse2FText2
dw CopycatsHouse2FText3
dw CopycatsHouse2FText4
dw CopycatsHouse2FText5
dw CopycatsHouse2FText6
dw CopycatsHouse2FText7
2016-06-12 00:24:04 +00:00
CopycatsHouse2FText1:
text_asm
2015-07-21 17:36:03 +00:00
CheckEvent EVENT_GOT_TM31
jr nz, .asm_7ccf3
2014-05-18 18:19:10 +00:00
ld a, $1
2014-09-13 07:50:56 +00:00
ld [wDoNotWaitForButtonPressAfterDisplayingText], a
2014-05-18 18:19:10 +00:00
ld hl, CopycatsHouse2FText_5ccd4
call PrintText
ld b, POKE_DOLL
call IsItemInBag
jr z, .asm_62ecd
2014-05-18 18:19:10 +00:00
ld hl, TM31PreReceiveText
call PrintText
2020-07-06 02:52:27 +00:00
lb bc, TM_MIMIC, 1
2014-05-18 18:19:10 +00:00
call GiveItem
jr nc, .BagFull
ld hl, ReceivedTM31Text
call PrintText
ld a, POKE_DOLL
ldh [hItemToRemoveID], a
farcall RemoveItemByID
2015-07-21 17:36:03 +00:00
SetEvent EVENT_GOT_TM31
jr .asm_62ecd
2014-05-18 18:19:10 +00:00
.BagFull
ld hl, TM31NoRoomText
call PrintText
jr .asm_62ecd
.asm_7ccf3
2014-05-18 18:19:10 +00:00
ld hl, TM31ExplanationText2
call PrintText
.asm_62ecd
2014-05-18 18:19:10 +00:00
jp TextScriptEnd
2016-06-12 00:24:04 +00:00
CopycatsHouse2FText_5ccd4:
text_far _CopycatsHouse2FText_5ccd4
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
TM31PreReceiveText:
text_far _TM31PreReceiveText
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
ReceivedTM31Text:
text_far _ReceivedTM31Text
sound_get_item_1
2016-06-12 00:24:04 +00:00
TM31ExplanationText1:
text_far _TM31ExplanationText1
text_waitbutton
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
TM31ExplanationText2:
text_far _TM31ExplanationText2
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
TM31NoRoomText:
text_far _TM31NoRoomText
text_waitbutton
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
CopycatsHouse2FText2:
text_far _CopycatsHouse2FText2
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
CopycatsHouse2FText5:
CopycatsHouse2FText4:
CopycatsHouse2FText3:
text_far _CopycatsHouse2FText3
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
CopycatsHouse2FText6:
text_far _CopycatsHouse2FText6
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
CopycatsHouse2FText7:
text_asm
ld a, [wSpritePlayerStateData1FacingDirection]
cp SPRITE_FACING_UP
2014-05-18 18:19:10 +00:00
ld hl, CopycatsHouse2FText_5cd1c
jr nz, .notUp
2014-05-18 18:19:10 +00:00
ld hl, CopycatsHouse2FText_5cd17
.notUp
2014-05-18 18:19:10 +00:00
call PrintText
jp TextScriptEnd
2016-06-12 00:24:04 +00:00
CopycatsHouse2FText_5cd17:
text_far _CopycatsHouse2FText_5cd17
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
CopycatsHouse2FText_5cd1c:
text_far _CopycatsHouse2FText_5cd1c
text_end