pokered/scripts/MrPsychicsHouse.asm

46 lines
763 B
NASM
Raw Normal View History

MrPsychicsHouse_Script:
2014-05-18 18:19:10 +00:00
jp EnableAutoTextBoxDrawing
MrPsychicsHouse_TextPointers:
2014-05-18 18:19:10 +00:00
dw SaffronHouse2Text1
2016-06-12 00:24:04 +00:00
SaffronHouse2Text1:
text_asm
2015-07-21 17:36:03 +00:00
CheckEvent EVENT_GOT_TM29
jr nz, .asm_9e72b
2014-05-18 18:19:10 +00:00
ld hl, TM29PreReceiveText
call PrintText
2020-07-06 02:52:27 +00:00
lb bc, TM_PSYCHIC_M, 1
2014-05-18 18:19:10 +00:00
call GiveItem
jr nc, .BagFull
ld hl, ReceivedTM29Text
call PrintText
2015-07-21 17:36:03 +00:00
SetEvent EVENT_GOT_TM29
jr .asm_fe4e1
2014-05-18 18:19:10 +00:00
.BagFull
ld hl, TM29NoRoomText
call PrintText
jr .asm_fe4e1
.asm_9e72b
2014-05-18 18:19:10 +00:00
ld hl, TM29ExplanationText
call PrintText
.asm_fe4e1
2014-05-18 18:19:10 +00:00
jp TextScriptEnd
2016-06-12 00:24:04 +00:00
TM29PreReceiveText:
text_far _TM29PreReceiveText
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
ReceivedTM29Text:
text_far _ReceivedTM29Text
sound_get_item_1
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
TM29ExplanationText:
text_far _TM29ExplanationText
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
TM29NoRoomText:
text_far _TM29NoRoomText
text_end