pokeemerald/data/maps/MarineCave_End/scripts.inc

77 lines
1.9 KiB
PHP
Raw Normal View History

2017-11-10 02:21:31 +01:00
MarineCave_End_MapScripts:: @ 823AFDF
2019-02-22 08:28:32 +01:00
map_script MAP_SCRIPT_ON_RESUME, MarineCave_End_MapScript1_23AFEA
map_script MAP_SCRIPT_ON_TRANSITION, MarineCave_End_MapScript1_23B008
2017-11-10 02:21:31 +01:00
.byte 0
MarineCave_End_MapScript1_23AFEA: @ 823AFEA
2018-12-22 03:32:45 +01:00
call_if_set FLAG_SYS_CTRL_OBJ_DELETE, MarineCave_End_EventScript_23AFF4
2017-11-10 02:21:31 +01:00
end
MarineCave_End_EventScript_23AFF4:: @ 823AFF4
specialvar VAR_RESULT, GetBattleOutcome
compare VAR_RESULT, 7
2019-02-23 02:21:26 +01:00
goto_if_ne Common_EventScript_NopReturn
2017-11-10 02:21:31 +01:00
removeobject 1
return
MarineCave_End_MapScript1_23B008: @ 823B008
2019-01-02 22:12:43 +01:00
call_if_unset FLAG_DEFEATED_KYOGRE, MarineCave_End_EventScript_23B012
2017-11-10 02:21:31 +01:00
end
MarineCave_End_EventScript_23B012:: @ 823B012
2018-10-18 21:28:59 +02:00
clearflag FLAG_HIDE_MARINE_CAVE_KYOGRE
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 1
2017-11-10 02:21:31 +01:00
return
MarineCave_End_EventScript_23B01B:: @ 823B01B
lockall
applymovement EVENT_OBJ_ID_PLAYER, Common_Movement_FaceUp
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement 1, MarineCave_End_Movement_23B09D
waitmovement 0
waitse
playmoncry SPECIES_KYOGRE, 2
delay 40
waitmoncry
setvar VAR_LAST_TALKED, 1
setwildbattle SPECIES_KYOGRE, 70, ITEM_NONE
setflag FLAG_SYS_CTRL_OBJ_DELETE
2017-11-28 23:02:09 +01:00
special BattleSetup_StartLegendaryBattle
2017-11-10 02:21:31 +01:00
waitstate
clearflag FLAG_SYS_CTRL_OBJ_DELETE
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 0
specialvar VAR_RESULT, GetBattleOutcome
compare VAR_RESULT, 1
2018-12-22 02:28:24 +01:00
goto_if_eq MarineCave_End_EventScript_23B084
compare VAR_RESULT, 4
2018-12-22 02:28:24 +01:00
goto_if_eq MarineCave_End_EventScript_23B092
compare VAR_RESULT, 5
2018-12-22 02:28:24 +01:00
goto_if_eq MarineCave_End_EventScript_23B092
setvar VAR_SHOULD_END_UNUSUAL_WEATHER, 1
2019-01-02 22:12:43 +01:00
setflag FLAG_DEFEATED_KYOGRE
2017-11-10 02:21:31 +01:00
releaseall
end
MarineCave_End_EventScript_23B084:: @ 823B084
setvar VAR_SHOULD_END_UNUSUAL_WEATHER, 1
2019-01-02 22:12:43 +01:00
setflag FLAG_DEFEATED_KYOGRE
2017-11-10 02:21:31 +01:00
goto MarineCave_End_EventScript_27376D
end
MarineCave_End_EventScript_23B092:: @ 823B092
setvar VAR_0x8004, 404
goto MarineCave_End_EventScript_273776
end
MarineCave_End_Movement_23B09D: @ 823B09D
init_affine_anim
walk_down_start_affine
delay_16
delay_16
walk_down_affine
delay_16
delay_16
walk_down_affine
2017-11-10 02:21:31 +01:00
step_end