summaryrefslogtreecommitdiff
path: root/scripts/CeladonMart3F_2.asm
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/CeladonMart3F_2.asm')
-rwxr-xr-xscripts/CeladonMart3F_2.asm36
1 files changed, 36 insertions, 0 deletions
diff --git a/scripts/CeladonMart3F_2.asm b/scripts/CeladonMart3F_2.asm
new file mode 100755
index 00000000..239f84d1
--- /dev/null
+++ b/scripts/CeladonMart3F_2.asm
@@ -0,0 +1,36 @@
+Func_f1e30::
+ CheckEvent EVENT_GOT_TM18
+ jr nz, .got_item
+ ld hl, TM18PreReceiveText
+ call PrintText
+ lb bc, TM_COUNTER, 1
+ call GiveItem
+ jr nc, .bag_full
+ SetEvent EVENT_GOT_TM18
+ ld hl, ReceivedTM18Text
+ jr .done
+.bag_full
+ ld hl, TM18NoRoomText
+ jr .done
+.got_item
+ ld hl, TM18ExplanationText
+.done
+ call PrintText
+ ret
+
+TM18PreReceiveText:
+ text_far _TM18PreReceiveText
+ text_end
+
+ReceivedTM18Text:
+ text_far _ReceivedTM18Text
+ sound_get_item_1
+ text_end
+
+TM18ExplanationText:
+ text_far _TM18ExplanationText
+ text_end
+
+TM18NoRoomText:
+ text_far _TM18NoRoomText
+ text_end