summaryrefslogtreecommitdiff
path: root/data/maps/DesertUnderpass
diff options
context:
space:
mode:
authorMarcus Huderle <huderlem@gmail.com>2018-06-20 17:41:41 -0500
committerMarcus Huderle <huderlem@gmail.com>2018-06-20 19:54:21 -0500
commit135a11e50eba1e12108e5c2025f534e3bd0cc722 (patch)
treea66f9a02270e19015825c6cb8acf04bcabfe5a23 /data/maps/DesertUnderpass
parent89d35e82a27c7328bf5987b4993b3456bb78f440 (diff)
Move events and scripts into map dirs
Diffstat (limited to 'data/maps/DesertUnderpass')
-rw-r--r--data/maps/DesertUnderpass/events.inc9
-rw-r--r--data/maps/DesertUnderpass/scripts.inc36
2 files changed, 45 insertions, 0 deletions
diff --git a/data/maps/DesertUnderpass/events.inc b/data/maps/DesertUnderpass/events.inc
new file mode 100644
index 000000000..05fb939a0
--- /dev/null
+++ b/data/maps/DesertUnderpass/events.inc
@@ -0,0 +1,9 @@
+DesertUnderpass_EventObjects: @ 85376D4
+ object_event 1, EVENT_OBJ_GFX_FOSSIL, 0, 132, 10, 0, 8, 1, 1, 0, 0, DesertUnderpass_EventScript_23AF41, 874
+
+DesertUnderpass_MapWarps: @ 85376EC
+ warp_def 10, 12, 0, 2, MAP_ROUTE114_FOSSIL_MANIACS_TUNNEL
+
+DesertUnderpass_MapEvents:: @ 85376F4
+ map_events DesertUnderpass_EventObjects, DesertUnderpass_MapWarps, 0x0, 0x0
+
diff --git a/data/maps/DesertUnderpass/scripts.inc b/data/maps/DesertUnderpass/scripts.inc
new file mode 100644
index 000000000..486bd2577
--- /dev/null
+++ b/data/maps/DesertUnderpass/scripts.inc
@@ -0,0 +1,36 @@
+DesertUnderpass_MapScripts:: @ 823AF37
+ map_script 3, DesertUnderpass_MapScript1_23AF3D
+ .byte 0
+
+DesertUnderpass_MapScript1_23AF3D: @ 823AF3D
+ setflag FLAG_LANDMARK_DESERT_UNDERPASS
+ end
+
+DesertUnderpass_EventScript_23AF41:: @ 823AF41
+ lock
+ faceplayer
+ checkflag FLAG_0x14F
+ goto_eq DesertUnderpass_EventScript_23AF57
+ checkflag FLAG_0x150
+ goto_eq DesertUnderpass_EventScript_23AF68
+ release
+ end
+
+DesertUnderpass_EventScript_23AF57:: @ 823AF57
+ giveitem_std ITEM_CLAW_FOSSIL
+ removeobject 1
+ release
+ end
+
+DesertUnderpass_EventScript_23AF68:: @ 823AF68
+ giveitem_std ITEM_ROOT_FOSSIL
+ removeobject 1
+ release
+ end
+
+DesertUnderpass_Text_23AF79:: @ 823AF79
+ .string "{PLAYER} found the ROOT FOSSIL.$"
+
+DesertUnderpass_Text_23AF93:: @ 823AF93
+ .string "{PLAYER} found the CLAW FOSSIL.$"
+