summaryrefslogtreecommitdiff
path: root/data/maps/Route131
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/Route131
parent89d35e82a27c7328bf5987b4993b3456bb78f440 (diff)
Move events and scripts into map dirs
Diffstat (limited to 'data/maps/Route131')
-rw-r--r--data/maps/Route131/events.inc16
-rw-r--r--data/maps/Route131/scripts.inc59
2 files changed, 75 insertions, 0 deletions
diff --git a/data/maps/Route131/events.inc b/data/maps/Route131/events.inc
new file mode 100644
index 000000000..2bb2c5cbc
--- /dev/null
+++ b/data/maps/Route131/events.inc
@@ -0,0 +1,16 @@
+Route131_EventObjects: @ 852CAB4
+ object_event 1, EVENT_OBJ_GFX_SWIMMER_M, 0, 41, 32, 1, 29, 5, 7, 1, 3, Route131_EventScript_1F7429, 0
+ object_event 2, EVENT_OBJ_GFX_SWIMMER_M, 0, 18, 19, 1, 22, 0, 7, 1, 4, Route131_EventScript_1F7440, 0
+ object_event 3, EVENT_OBJ_GFX_SWIMMER_F, 0, 10, 22, 1, 20, 6, 0, 1, 4, Route131_EventScript_1F7457, 0
+ object_event 4, EVENT_OBJ_GFX_SWIMMER_F, 0, 31, 25, 1, 47, 3, 5, 1, 3, Route131_EventScript_1F746E, 0
+ object_event 5, EVENT_OBJ_GFX_SWIMMER_F, 0, 9, 16, 1, 8, 1, 1, 1, 1, Route131_EventScript_1F7485, 0
+ object_event 6, EVENT_OBJ_GFX_TUBER_M_SWIMMING, 0, 8, 16, 1, 8, 1, 1, 1, 1, Route131_EventScript_1F74A0, 0
+ object_event 7, EVENT_OBJ_GFX_SWIMMER_M, 0, 52, 20, 1, 26, 1, 3, 1, 5, Route131_EventScript_1F74D2, 0
+ object_event 8, EVENT_OBJ_GFX_SWIMMER_F, 0, 52, 27, 1, 25, 1, 3, 1, 5, Route131_EventScript_1F74BB, 0
+
+Route131_MapWarps: @ 852CB74
+ warp_def 36, 6, 3, 0, MAP_SKY_PILLAR_ENTRANCE
+
+Route131_MapEvents:: @ 852CB7C
+ map_events Route131_EventObjects, Route131_MapWarps, 0x0, 0x0
+
diff --git a/data/maps/Route131/scripts.inc b/data/maps/Route131/scripts.inc
new file mode 100644
index 000000000..566cbef66
--- /dev/null
+++ b/data/maps/Route131/scripts.inc
@@ -0,0 +1,59 @@
+Route131_MapScripts:: @ 81F7404
+ map_script 3, Route131_MapScript1_1F740A
+ .byte 0
+
+Route131_MapScript1_1F740A: @ 81F740A
+ compare VAR_0x405E, 4
+ call_if 4, Route131_EventScript_1F741F
+ call Route131_EventScript_1F741B
+ end
+
+Route131_EventScript_1F741B:: @ 81F741B
+ setmaplayoutindex 319
+ return
+
+Route131_EventScript_1F741F:: @ 81F741F
+ checkflag FLAG_SYS_WEATHER_CTRL
+ call_if 1, Route131_EventScript_27207A
+ return
+
+Route131_EventScript_1F7429:: @ 81F7429
+ trainerbattle 0, TRAINER_RICHARD, 0, Route131_Text_2A34C8, Route131_Text_2A350D
+ msgbox Route131_Text_2A353D, 6
+ end
+
+Route131_EventScript_1F7440:: @ 81F7440
+ trainerbattle 0, TRAINER_HERMAN, 0, Route131_Text_2A35C6, Route131_Text_2A3626
+ msgbox Route131_Text_2A362D, 6
+ end
+
+Route131_EventScript_1F7457:: @ 81F7457
+ trainerbattle 0, TRAINER_SUSIE, 0, Route131_Text_2A367B, Route131_Text_2A36AB
+ msgbox Route131_Text_2A36D6, 6
+ end
+
+Route131_EventScript_1F746E:: @ 81F746E
+ trainerbattle 0, TRAINER_KARA, 0, Route131_Text_2A3751, Route131_Text_2A378A
+ msgbox Route131_Text_2A379F, 6
+ end
+
+Route131_EventScript_1F7485:: @ 81F7485
+ trainerbattle 4, TRAINER_RELI_AND_IAN, 0, Route131_Text_2A37E9, Route131_Text_2A381F, Route131_Text_2A38B7
+ msgbox Route131_Text_2A3855, 6
+ end
+
+Route131_EventScript_1F74A0:: @ 81F74A0
+ trainerbattle 4, TRAINER_RELI_AND_IAN, 0, Route131_Text_2A38F8, Route131_Text_2A3925, Route131_Text_2A39CD
+ msgbox Route131_Text_2A3960, 6
+ end
+
+Route131_EventScript_1F74BB:: @ 81F74BB
+ trainerbattle 0, TRAINER_TALIA, 0, Route131_Text_2A39FE, Route131_Text_2A3A38
+ msgbox Route131_Text_2A3A48, 6
+ end
+
+Route131_EventScript_1F74D2:: @ 81F74D2
+ trainerbattle 0, TRAINER_KEVIN, 0, Route131_Text_2A3AA0, Route131_Text_2A3AFC
+ msgbox Route131_Text_2A3B02, 6
+ end
+