2017-11-10 02:21:31 +01:00
|
|
|
BirthIsland_Exterior_MapScripts:: @ 8267F15
|
|
|
|
map_script 3, BirthIsland_Exterior_MapScript1_267F29
|
|
|
|
map_script 5, BirthIsland_Exterior_MapScript1_267F65
|
|
|
|
map_script 7, BirthIsland_Exterior_MapScript1_267F25
|
|
|
|
.byte 0
|
|
|
|
|
|
|
|
BirthIsland_Exterior_MapScript1_267F25: @ 8267F25
|
|
|
|
special sub_813B1D0
|
|
|
|
end
|
|
|
|
|
|
|
|
BirthIsland_Exterior_MapScript1_267F29: @ 8267F29
|
2019-01-02 22:12:43 +01:00
|
|
|
setflag FLAG_MAP_SCRIPT_CHECKED_DEOXYS
|
2018-12-25 02:12:51 +01:00
|
|
|
setvar VAR_OBJ_GFX_ID_0, EVENT_OBJ_GFX_RIVAL_BRENDAN_NORMAL
|
2018-12-28 20:10:02 +01:00
|
|
|
setvar VAR_DEOXYS_ROCK_STEP_COUNT, 0
|
|
|
|
setvar VAR_DEOXYS_ROCK_LEVEL, 0
|
2019-01-02 22:12:43 +01:00
|
|
|
call_if_set FLAG_BATTLED_DEOXYS, BirthIsland_Exterior_EventScript_267F4E
|
|
|
|
call_if_unset FLAG_BATTLED_DEOXYS, BirthIsland_Exterior_EventScript_267F55
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
BirthIsland_Exterior_EventScript_267F4E:: @ 8267F4E
|
2018-10-18 04:07:23 +02:00
|
|
|
setflag FLAG_HIDE_DEOXYS
|
|
|
|
setflag FLAG_HIDE_BIRTH_ISLAND_DEOXYS_TRIANGLE
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BirthIsland_Exterior_EventScript_267F55:: @ 8267F55
|
2019-01-02 22:12:43 +01:00
|
|
|
goto_if_set FLAG_DEFEATED_DEOXYS, BirthIsland_Exterior_EventScript_27374E
|
2018-10-18 04:07:23 +02:00
|
|
|
clearflag FLAG_HIDE_BIRTH_ISLAND_DEOXYS_TRIANGLE
|
2018-12-28 20:10:02 +01:00
|
|
|
clearflag FLAG_DEOXYS_ROCK_COMPLETE
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
|
|
|
BirthIsland_Exterior_MapScript1_267F65: @ 8267F65
|
2018-12-22 03:32:45 +01:00
|
|
|
call_if_set FLAG_SYS_CTRL_OBJ_DELETE, BirthIsland_Exterior_EventScript_267F6F
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
BirthIsland_Exterior_EventScript_267F6F:: @ 8267F6F
|
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 BirthIsland_Exterior_EventScript_27374E
|
2017-11-10 02:21:31 +01:00
|
|
|
removeobject 2
|
|
|
|
return
|
|
|
|
|
|
|
|
BirthIsland_Exterior_EventScript_267F83:: @ 8267F83
|
|
|
|
lock
|
|
|
|
faceplayer
|
2018-12-28 20:10:02 +01:00
|
|
|
special DoDeoxysRockInteraction
|
2017-11-10 02:21:31 +01:00
|
|
|
waitstate
|
|
|
|
switch VAR_RESULT
|
|
|
|
case 0, BirthIsland_Exterior_EventScript_267FBB
|
|
|
|
case 1, BirthIsland_Exterior_EventScript_267FBD
|
|
|
|
case 2, BirthIsland_Exterior_EventScript_267FC1
|
|
|
|
case 3, BirthIsland_Exterior_EventScript_267FBF
|
|
|
|
end
|
|
|
|
|
|
|
|
BirthIsland_Exterior_EventScript_267FBB:: @ 8267FBB
|
|
|
|
release
|
|
|
|
end
|
|
|
|
|
|
|
|
BirthIsland_Exterior_EventScript_267FBD:: @ 8267FBD
|
|
|
|
release
|
|
|
|
end
|
|
|
|
|
|
|
|
BirthIsland_Exterior_EventScript_267FBF:: @ 8267FBF
|
|
|
|
release
|
|
|
|
end
|
|
|
|
|
|
|
|
BirthIsland_Exterior_EventScript_267FC1:: @ 8267FC1
|
|
|
|
waitse
|
|
|
|
setfieldeffectargument 0, 1
|
|
|
|
setfieldeffectargument 1, 58
|
|
|
|
setfieldeffectargument 2, 26
|
|
|
|
dofieldeffect 65
|
2017-12-22 08:46:19 +01:00
|
|
|
playbgm MUS_RG_DEOEYE, 0
|
2017-11-10 02:21:31 +01:00
|
|
|
waitfieldeffect 65
|
|
|
|
addobject 2
|
|
|
|
applymovement 2, BirthIsland_Exterior_Movement_268054
|
|
|
|
waitmovement 0
|
|
|
|
waitse
|
|
|
|
playmoncry SPECIES_DEOXYS, 2
|
|
|
|
delay 40
|
|
|
|
waitmoncry
|
|
|
|
setvar VAR_LAST_TALKED, 2
|
|
|
|
setvar VAR_0x8004, 410
|
|
|
|
setvar VAR_0x8005, 30
|
|
|
|
setvar VAR_0x8006, 0
|
2018-02-09 15:55:12 +01:00
|
|
|
special CreateObedientEnemyMon
|
2017-11-10 02:21:31 +01:00
|
|
|
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-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 BirthIsland_Exterior_EventScript_26803B
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 4
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq BirthIsland_Exterior_EventScript_268049
|
2017-12-21 20:47:52 +01:00
|
|
|
compare VAR_RESULT, 5
|
2018-12-22 02:28:24 +01:00
|
|
|
goto_if_eq BirthIsland_Exterior_EventScript_268049
|
2019-01-02 22:12:43 +01:00
|
|
|
setflag FLAG_BATTLED_DEOXYS
|
2017-11-10 02:21:31 +01:00
|
|
|
release
|
|
|
|
end
|
|
|
|
|
|
|
|
BirthIsland_Exterior_EventScript_26803B:: @ 826803B
|
2019-01-02 22:12:43 +01:00
|
|
|
setflag FLAG_DEFEATED_DEOXYS
|
2017-11-10 02:21:31 +01:00
|
|
|
setvar VAR_0x8004, 410
|
|
|
|
goto BirthIsland_Exterior_EventScript_273776
|
|
|
|
end
|
|
|
|
|
|
|
|
BirthIsland_Exterior_EventScript_268049:: @ 8268049
|
|
|
|
setvar VAR_0x8004, 410
|
|
|
|
goto BirthIsland_Exterior_EventScript_273776
|
|
|
|
end
|
|
|
|
|
|
|
|
BirthIsland_Exterior_Movement_268054: @ 8268054
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_slow_down
|
|
|
|
walk_slow_down
|
|
|
|
walk_slow_down
|
|
|
|
walk_slow_down
|
|
|
|
walk_slow_down
|
|
|
|
walk_slow_down
|
|
|
|
walk_slow_down
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|