summaryrefslogtreecommitdiff
path: root/scripts/CinnabarLabMetronomeRoom.asm
diff options
context:
space:
mode:
authorDaniel Harding <33dannye@gmail.com>2020-05-20 20:17:30 -0500
committerGitHub <noreply@github.com>2020-05-20 20:17:30 -0500
commit500d99c258145d233af8d14cdb5c6e0200dfc1d8 (patch)
tree7dbe7b152dde8a6e9b56664b5b8cdfc0d6be1253 /scripts/CinnabarLabMetronomeRoom.asm
parentb8954732a3eaa3a784a6e3eaaa68977a9ccd9816 (diff)
parent33456b8fb28ef547a54d04d22baa2313b72fdb1d (diff)
Merge pull request #50 from dannye/master
merge pokered
Diffstat (limited to 'scripts/CinnabarLabMetronomeRoom.asm')
-rwxr-xr-xscripts/CinnabarLabMetronomeRoom.asm62
1 files changed, 62 insertions, 0 deletions
diff --git a/scripts/CinnabarLabMetronomeRoom.asm b/scripts/CinnabarLabMetronomeRoom.asm
new file mode 100755
index 00000000..6eddceae
--- /dev/null
+++ b/scripts/CinnabarLabMetronomeRoom.asm
@@ -0,0 +1,62 @@
+CinnabarLabMetronomeRoom_Script:
+ jp EnableAutoTextBoxDrawing
+
+CinnabarLabMetronomeRoom_TextPointers:
+ dw Lab3Text1
+ dw Lab3Text2
+ dw Lab3Text3
+ dw Lab3Text4
+ dw Lab3Text5
+
+Lab3Text1:
+ TX_ASM
+ CheckEvent EVENT_GOT_TM35
+ jr nz, .asm_e551a
+ ld hl, TM35PreReceiveText
+ call PrintText
+ lb bc, TM_35, 1
+ call GiveItem
+ jr nc, .BagFull
+ ld hl, ReceivedTM35Text
+ call PrintText
+ SetEvent EVENT_GOT_TM35
+ jr .asm_eb896
+.BagFull
+ ld hl, TM35NoRoomText
+ call PrintText
+ jr .asm_eb896
+.asm_e551a
+ ld hl, TM35ExplanationText
+ call PrintText
+.asm_eb896
+ jp TextScriptEnd
+
+TM35PreReceiveText:
+ TX_FAR _TM35PreReceiveText
+ db "@"
+
+ReceivedTM35Text:
+ TX_FAR _ReceivedTM35Text
+ TX_SFX_ITEM_1
+ db "@"
+
+TM35ExplanationText:
+ TX_FAR _TM35ExplanationText
+ db "@"
+
+TM35NoRoomText:
+ TX_FAR _TM35NoRoomText
+ db "@"
+
+Lab3Text2:
+ TX_FAR _Lab3Text2
+ db "@"
+
+Lab3Text4:
+Lab3Text3:
+ TX_FAR _Lab3Text3
+ db "@"
+
+Lab3Text5:
+ TX_FAR _Lab3Text5
+ db "@"