2017-11-10 02:21:31 +01:00
|
|
|
TerraCave_End_MapScripts:: @ 823B0B0
|
|
|
|
map_script 5, TerraCave_End_MapScript1_23B0BB
|
|
|
|
map_script 3, TerraCave_End_MapScript1_23B0D9
|
|
|
|
.byte 0
|
|
|
|
|
|
|
|
TerraCave_End_MapScript1_23B0BB: @ 823B0BB
|
2018-12-22 03:32:45 +01:00
|
|
|
call_if_set FLAG_SYS_CTRL_OBJ_DELETE, TerraCave_End_EventScript_23B0C5
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
TerraCave_End_EventScript_23B0C5:: @ 823B0C5
|
2018-08-08 10:37:12 +02:00
|
|
|
specialvar VAR_RESULT, GetBattleOutcome
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 7
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_ne TerraCave_End_EventScript_27374E
|
2017-11-10 02:21:31 +01:00
|
|
|
removeobject 1
|
|
|
|
return
|
|
|
|
|
|
|
|
TerraCave_End_MapScript1_23B0D9: @ 823B0D9
|
2018-12-22 03:32:45 +01:00
|
|
|
call_if_unset FLAG_0x1BF, TerraCave_End_EventScript_23B0E3
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
TerraCave_End_EventScript_23B0E3:: @ 823B0E3
|
2018-10-19 03:32:21 +02:00
|
|
|
clearflag FLAG_HIDE_TERRA_CAVE_GROUDON
|
2018-05-19 18:02:43 +02:00
|
|
|
setvar VAR_TEMP_1, 1
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
TerraCave_End_EventScript_23B0EC:: @ 823B0EC
|
|
|
|
lockall
|
2018-12-19 20:08:01 +01:00
|
|
|
applymovement EVENT_OBJ_ID_PLAYER, TerraCave_End_Movement_2725B2
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
|
|
|
applymovement 1, TerraCave_End_Movement_23B16E
|
|
|
|
waitmovement 0
|
|
|
|
waitse
|
|
|
|
playmoncry SPECIES_GROUDON, 2
|
|
|
|
delay 40
|
|
|
|
waitmoncry
|
|
|
|
setvar VAR_LAST_TALKED, 1
|
|
|
|
setwildbattle SPECIES_GROUDON, 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
|
2018-08-08 10:37:12 +02:00
|
|
|
specialvar VAR_RESULT, GetBattleOutcome
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 1
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq TerraCave_End_EventScript_23B155
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 4
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq TerraCave_End_EventScript_23B163
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 5
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq TerraCave_End_EventScript_23B163
|
2017-11-10 02:21:31 +01:00
|
|
|
setvar VAR_0x4039, 1
|
|
|
|
setflag FLAG_0x1BF
|
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
|
|
|
TerraCave_End_EventScript_23B155:: @ 823B155
|
|
|
|
setvar VAR_0x4039, 1
|
|
|
|
setflag FLAG_0x1BF
|
|
|
|
goto TerraCave_End_EventScript_27376D
|
|
|
|
end
|
|
|
|
|
|
|
|
TerraCave_End_EventScript_23B163:: @ 823B163
|
|
|
|
setvar VAR_0x8004, 405
|
|
|
|
goto TerraCave_End_EventScript_273776
|
|
|
|
end
|
|
|
|
|
|
|
|
TerraCave_End_Movement_23B16E: @ 823B16E
|
2018-06-14 01:19:19 +02:00
|
|
|
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
|
|
|
|
|