mirror of
https://github.com/pret/pokered.git
synced 2024-10-23 06:58:24 +00:00
45 lines
763 B
NASM
Executable file
45 lines
763 B
NASM
Executable file
MrPsychicsHouse_Script:
|
|
jp EnableAutoTextBoxDrawing
|
|
|
|
MrPsychicsHouse_TextPointers:
|
|
dw SaffronHouse2Text1
|
|
|
|
SaffronHouse2Text1:
|
|
text_asm
|
|
CheckEvent EVENT_GOT_TM29
|
|
jr nz, .asm_9e72b
|
|
ld hl, TM29PreReceiveText
|
|
call PrintText
|
|
lb bc, TM_PSYCHIC_M, 1
|
|
call GiveItem
|
|
jr nc, .BagFull
|
|
ld hl, ReceivedTM29Text
|
|
call PrintText
|
|
SetEvent EVENT_GOT_TM29
|
|
jr .asm_fe4e1
|
|
.BagFull
|
|
ld hl, TM29NoRoomText
|
|
call PrintText
|
|
jr .asm_fe4e1
|
|
.asm_9e72b
|
|
ld hl, TM29ExplanationText
|
|
call PrintText
|
|
.asm_fe4e1
|
|
jp TextScriptEnd
|
|
|
|
TM29PreReceiveText:
|
|
text_far _TM29PreReceiveText
|
|
text_end
|
|
|
|
ReceivedTM29Text:
|
|
text_far _ReceivedTM29Text
|
|
sound_get_item_1
|
|
text_end
|
|
|
|
TM29ExplanationText:
|
|
text_far _TM29ExplanationText
|
|
text_end
|
|
|
|
TM29NoRoomText:
|
|
text_far _TM29NoRoomText
|
|
text_end
|