summaryrefslogtreecommitdiff
path: root/data/maps/FiveIsland_MemorialPillar
diff options
context:
space:
mode:
authorgarak <garakmon@gmail.com>2019-05-06 22:13:57 -0400
committergarak <garakmon@gmail.com>2019-05-09 13:46:28 -0400
commit4e5d818f89caae9153dd53ba321900e0d4e16c1e (patch)
tree889d43985efba48bcf0a9a210e1ec8c4b2b5fd9c /data/maps/FiveIsland_MemorialPillar
parentc6673cc8fe233edfb716cf0e584b8b9e65655c92 (diff)
dump event scripts
Diffstat (limited to 'data/maps/FiveIsland_MemorialPillar')
-rw-r--r--data/maps/FiveIsland_MemorialPillar/scripts.inc110
1 files changed, 110 insertions, 0 deletions
diff --git a/data/maps/FiveIsland_MemorialPillar/scripts.inc b/data/maps/FiveIsland_MemorialPillar/scripts.inc
new file mode 100644
index 000000000..8337e9d6f
--- /dev/null
+++ b/data/maps/FiveIsland_MemorialPillar/scripts.inc
@@ -0,0 +1,110 @@
+FiveIsland_MemorialPillar_MapScripts:: @ 81689D2
+ .byte 0
+
+FiveIsland_MemorialPillar_EventScript_1689D3:: @ 81689D3
+ lock
+ checkflag FLAG_0x236
+ goto_if 1, EventScript_168A18
+ checkflag FLAG_0x2D7
+ goto_if 1, EventScript_168A22
+ loadword 0, gUnknown_818B02E
+ callstd 4
+ closemessage
+ applymovement 1, Movement_1A75E1
+ waitmovement 0
+ delay 45
+ loadword 0, gUnknown_818B03C
+ callstd 4
+ applymovement 1, Movement_1A75E9
+ waitmovement 0
+ loadword 0, gUnknown_818B05E
+ callstd 4
+ release
+ end
+
+EventScript_168A18:: @ 8168A18
+ loadword 0, gUnknown_818B2DA
+ callstd 4
+ release
+ end
+
+EventScript_168A22:: @ 8168A22
+ loadword 0, gUnknown_818B282
+ callstd 4
+ setorcopyvar VAR_0x8000, 330
+ setorcopyvar VAR_0x8001, 1
+ callstd 0
+ compare_var_to_value VAR_RESULT, 0
+ goto_if 1, EventScript_168AFE
+ call EventScript_168AE8
+ release
+ end
+
+FiveIsland_MemorialPillar_EventScript_168A48:: @ 8168A48
+ special sub_8110AB4
+ compare_var_to_value VAR_RESULT, 2
+ goto_if 1, EventScript_1A7AE0
+ special sub_8112364
+ lockall
+ checkflag FLAG_0x236
+ goto_if 1, EventScript_168B0B
+ checkflag FLAG_0x2D7
+ goto_if 1, EventScript_168B0B
+ loadword 0, gUnknown_818B095
+ callstd 4
+ checkitem ITEM_LEMONADE, 1
+ compare_var_to_value VAR_RESULT, 1
+ goto_if 1, EventScript_168A86
+ releaseall
+ end
+
+EventScript_168A86:: @ 8168A86
+ loadword 0, gUnknown_818B105
+ callstd 5
+ compare_var_to_value VAR_RESULT, 1
+ goto_if 1, EventScript_168A9B
+ releaseall
+ end
+
+EventScript_168A9B:: @ 8168A9B
+ removeitem ITEM_LEMONADE, 1
+ loadword 0, gUnknown_818B13E
+ callstd 4
+ closemessage
+ applymovement 1, Movement_1A75EB
+ waitmovement 0
+ delay 45
+ applymovement 255, Movement_1A75E7
+ waitmovement 0
+ textcolor 0
+ loadword 0, gUnknown_818B171
+ callstd 4
+ setorcopyvar VAR_0x8000, 330
+ setorcopyvar VAR_0x8001, 1
+ callstd 0
+ compare_var_to_value VAR_RESULT, 0
+ goto_if 1, EventScript_168AFE
+ call EventScript_168AE8
+ releaseall
+ end
+
+EventScript_168AE8:: @ 8168AE8
+ loadword 0, gUnknown_818B219
+ callstd 4
+ applymovement 1, Movement_1A75E9
+ waitmovement 0
+ setflag FLAG_0x236
+ return
+
+EventScript_168AFE:: @ 8168AFE
+ setflag FLAG_0x2D7
+ loadword 0, gUnknown_818B23E
+ callstd 4
+ releaseall
+ end
+
+EventScript_168B0B:: @ 8168B0B
+ loadword 0, gUnknown_818B2F8
+ callstd 4
+ releaseall
+ end