pokered/scripts/CinnabarLabMetronomeRoom.asm

63 lines
944 B
NASM
Raw Normal View History

CinnabarLabMetronomeRoom_Script:
2014-05-18 18:19:10 +00:00
jp EnableAutoTextBoxDrawing
CinnabarLabMetronomeRoom_TextPointers:
2014-05-18 18:19:10 +00:00
dw Lab3Text1
dw Lab3Text2
dw Lab3Text3
dw Lab3Text4
dw Lab3Text5
2016-06-12 00:24:04 +00:00
Lab3Text1:
text_asm
2015-07-21 17:36:03 +00:00
CheckEvent EVENT_GOT_TM35
jr nz, .got_item
2014-05-18 18:19:10 +00:00
ld hl, TM35PreReceiveText
call PrintText
2020-07-06 02:52:27 +00:00
lb bc, TM_METRONOME, 1
2014-05-18 18:19:10 +00:00
call GiveItem
jr nc, .bag_full
2014-05-18 18:19:10 +00:00
ld hl, ReceivedTM35Text
call PrintText
2015-07-21 17:36:03 +00:00
SetEvent EVENT_GOT_TM35
jr .done
.bag_full
2014-05-18 18:19:10 +00:00
ld hl, TM35NoRoomText
call PrintText
jr .done
.got_item
2014-05-18 18:19:10 +00:00
ld hl, TM35ExplanationText
call PrintText
.done
2014-05-18 18:19:10 +00:00
jp TextScriptEnd
2016-06-12 00:24:04 +00:00
TM35PreReceiveText:
text_far _TM35PreReceiveText
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
ReceivedTM35Text:
text_far _ReceivedTM35Text
sound_get_item_1
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
TM35ExplanationText:
text_far _TM35ExplanationText
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
TM35NoRoomText:
text_far _TM35NoRoomText
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Lab3Text2:
text_far _Lab3Text2
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Lab3Text4:
Lab3Text3:
text_far _Lab3Text3
text_end
2014-05-18 18:19:10 +00:00
2016-06-12 00:24:04 +00:00
Lab3Text5:
text_far _Lab3Text5
text_end