summaryrefslogtreecommitdiff
path: root/data/maps/MtEmber_Summit
diff options
context:
space:
mode:
authorPikalaxALT <PikalaxALT@users.noreply.github.com>2020-01-12 17:04:23 -0500
committerGitHub <noreply@github.com>2020-01-12 17:04:23 -0500
commit92d99d4fd2e5579372b9f4cc39468000553ba3a8 (patch)
tree4ff8e60d1ad6a25dad888a4e78011624b46ad9ec /data/maps/MtEmber_Summit
parent15ff7eb2f87032797f6ce9ef9bb471c468b48a36 (diff)
parent0676e732869d0e62322b001cbab57b8500361005 (diff)
Merge pull request #207 from GriffinRichards/sync-script
Sync scripts with pokeemerald
Diffstat (limited to 'data/maps/MtEmber_Summit')
-rw-r--r--data/maps/MtEmber_Summit/scripts.inc38
1 files changed, 18 insertions, 20 deletions
diff --git a/data/maps/MtEmber_Summit/scripts.inc b/data/maps/MtEmber_Summit/scripts.inc
index 3f8256837..76261b037 100644
--- a/data/maps/MtEmber_Summit/scripts.inc
+++ b/data/maps/MtEmber_Summit/scripts.inc
@@ -1,23 +1,21 @@
MtEmber_Summit_MapScripts:: @ 8163AFC
- map_script 3, MtEmber_Summit_MapScript1_163B25
- map_script 5, MtEmber_Summit_MapScript2_163B07
+ map_script MAP_SCRIPT_ON_TRANSITION, MtEmber_Summit_OnTransition
+ map_script MAP_SCRIPT_ON_RESUME, MtEmber_Summit_OnResume
.byte 0
-MtEmber_Summit_MapScript2_163B07:: @ 8163B07
- checkflag FLAG_SYS_SPECIAL_WILD_BATTLE
- call_if TRUE, EventScript_163B11
+MtEmber_Summit_OnResume:: @ 8163B07
+ call_if_set FLAG_SYS_SPECIAL_WILD_BATTLE, EventScript_163B11
end
EventScript_163B11:: @ 8163B11
specialvar VAR_RESULT, Special_GetBattleOutcome
- compare_var_to_value VAR_RESULT, B_OUTCOME_CAUGHT
- goto_if ne, EventScript_1A77A9
+ compare VAR_RESULT, B_OUTCOME_CAUGHT
+ goto_if_ne EventScript_Return
removeobject VAR_LAST_TALKED
return
-MtEmber_Summit_MapScript1_163B25:: @ 8163B25
- checkflag FLAG_FOUGHT_MOLTRES
- call_if FALSE, EventScript_163B2F
+MtEmber_Summit_OnTransition:: @ 8163B25
+ call_if_unset FLAG_FOUGHT_MOLTRES, EventScript_163B2F
end
EventScript_163B2F:: @ 8163B2F
@@ -26,8 +24,8 @@ EventScript_163B2F:: @ 8163B2F
MtEmber_Summit_EventScript_163B33:: @ 8163B33
special sub_8110AB4
- compare_var_to_value VAR_RESULT, 2
- goto_if eq, EventScript_1A7AE0
+ compare VAR_RESULT, 2
+ goto_if_eq EventScript_1A7AE0
special sub_8112364
lock
faceplayer
@@ -45,22 +43,22 @@ MtEmber_Summit_EventScript_163B33:: @ 8163B33
waitstate
clearflag FLAG_SYS_SPECIAL_WILD_BATTLE
specialvar VAR_RESULT, Special_GetBattleOutcome
- compare_var_to_value VAR_RESULT, B_OUTCOME_WON
- goto_if eq, EventScript_163B96
- compare_var_to_value VAR_RESULT, B_OUTCOME_RAN
- goto_if eq, EventScript_163B9F
- compare_var_to_value VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED
- goto_if eq, EventScript_163B9F
+ compare VAR_RESULT, B_OUTCOME_WON
+ goto_if_eq EventScript_163B96
+ compare VAR_RESULT, B_OUTCOME_RAN
+ goto_if_eq EventScript_163B9F
+ compare VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED
+ goto_if_eq EventScript_163B9F
setflag FLAG_FOUGHT_MOLTRES
release
end
EventScript_163B96:: @ 8163B96
setflag FLAG_FOUGHT_MOLTRES
- goto EventScript_1A922D
+ goto EventScript_RemoveStaticMon
end
EventScript_163B9F:: @ 8163B9F
setvar VAR_0x8004, SPECIES_MOLTRES
- goto EventScript_1A9236
+ goto EventScript_MonFlewAway
end