From 4e5d818f89caae9153dd53ba321900e0d4e16c1e Mon Sep 17 00:00:00 2001 From: garak Date: Mon, 6 May 2019 22:13:57 -0400 Subject: dump event scripts --- data/maps/MtEmber_Summit/scripts.inc | 66 ++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 data/maps/MtEmber_Summit/scripts.inc (limited to 'data/maps/MtEmber_Summit') diff --git a/data/maps/MtEmber_Summit/scripts.inc b/data/maps/MtEmber_Summit/scripts.inc new file mode 100644 index 000000000..85f60fd1d --- /dev/null +++ b/data/maps/MtEmber_Summit/scripts.inc @@ -0,0 +1,66 @@ +MtEmber_Summit_MapScripts:: @ 8163AFC + map_script 3, MtEmber_Summit_MapScript1_163B25 + map_script 5, MtEmber_Summit_MapScript2_163B07 + .byte 0 + +MtEmber_Summit_MapScript2_163B07:: @ 8163B07 + checkflag 2055 + call_if 1, EventScript_163B11 + end + +EventScript_163B11:: @ 8163B11 + specialvar VAR_RESULT, sub_80CA74C + compare_var_to_value VAR_RESULT, 7 + goto_if 5, EventScript_1A77A9 + removeobject VAR_LAST_TALKED + return + +MtEmber_Summit_MapScript1_163B25:: @ 8163B25 + checkflag FLAG_0x2BD + call_if 0, EventScript_163B2F + end + +EventScript_163B2F:: @ 8163B2F + clearflag FLAG_0x052 + return + +MtEmber_Summit_EventScript_163B33:: @ 8163B33 + special sub_8110AB4 + compare_var_to_value VAR_RESULT, 2 + goto_if 1, EventScript_1A7AE0 + special sub_8112364 + lock + faceplayer + setwildbattle SPECIES_MOLTRES, 50, ITEM_NONE + waitse + playmoncry SPECIES_MOLTRES, 2 + message Text_1A6448 + waitmessage + waitmoncry + delay 10 + playbgm BGM_FRLG_LEADER_EYE, 0 + waitbuttonpress + setflag 2055 + special sub_807F9D8 + waitstate + clearflag 2055 + specialvar VAR_RESULT, sub_80CA74C + compare_var_to_value VAR_RESULT, 1 + goto_if 1, EventScript_163B96 + compare_var_to_value VAR_RESULT, 4 + goto_if 1, EventScript_163B9F + compare_var_to_value VAR_RESULT, 5 + goto_if 1, EventScript_163B9F + setflag FLAG_0x2BD + release + end + +EventScript_163B96:: @ 8163B96 + setflag FLAG_0x2BD + goto EventScript_1A922D + end + +EventScript_163B9F:: @ 8163B9F + setvar VAR_0x8004, 146 + goto EventScript_1A9236 + end -- cgit v1.2.3