Merge branch 'master' into battle

This commit is contained in:
jiangzhengwenjz
2019-10-24 01:42:52 +08:00
1127 changed files with 79056 additions and 34785 deletions
+20 -20
View File
@@ -4,30 +4,30 @@ MtEmber_Summit_MapScripts:: @ 8163AFC
.byte 0
MtEmber_Summit_MapScript2_163B07:: @ 8163B07
checkflag FLAG_0x807
call_if 1, EventScript_163B11
checkflag FLAG_SYS_SPECIAL_WILD_BATTLE
call_if TRUE, EventScript_163B11
end
EventScript_163B11:: @ 8163B11
specialvar VAR_RESULT, sub_80CA74C
compare_var_to_value VAR_RESULT, 7
goto_if 5, EventScript_1A77A9
specialvar VAR_RESULT, Special_GetBattleOutcome
compare_var_to_value VAR_RESULT, B_OUTCOME_CAUGHT
goto_if ne, EventScript_1A77A9
removeobject VAR_LAST_TALKED
return
MtEmber_Summit_MapScript1_163B25:: @ 8163B25
checkflag FLAG_0x2BD
call_if 0, EventScript_163B2F
checkflag FLAG_FOUGHT_MOLTRES
call_if FALSE, EventScript_163B2F
end
EventScript_163B2F:: @ 8163B2F
clearflag FLAG_0x052
clearflag FLAG_HIDE_MOLTRES
return
MtEmber_Summit_EventScript_163B33:: @ 8163B33
special sub_8110AB4
compare_var_to_value VAR_RESULT, 2
goto_if_eq EventScript_1A7AE0
goto_if eq, EventScript_1A7AE0
special sub_8112364
lock
faceplayer
@@ -40,23 +40,23 @@ MtEmber_Summit_EventScript_163B33:: @ 8163B33
delay 10
playbgm MUS_EXEYE, 0
waitbuttonpress
setflag FLAG_0x807
setflag FLAG_SYS_SPECIAL_WILD_BATTLE
special BattleSetup_StartLegendaryBattle
waitstate
clearflag FLAG_0x807
specialvar VAR_RESULT, sub_80CA74C
compare_var_to_value VAR_RESULT, 1
goto_if_eq EventScript_163B96
compare_var_to_value VAR_RESULT, 4
goto_if_eq EventScript_163B9F
compare_var_to_value VAR_RESULT, 5
goto_if_eq EventScript_163B9F
setflag FLAG_0x2BD
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
setflag FLAG_FOUGHT_MOLTRES
release
end
EventScript_163B96:: @ 8163B96
setflag FLAG_0x2BD
setflag FLAG_FOUGHT_MOLTRES
goto EventScript_1A922D
end