2017-11-10 02:21:31 +01:00
|
|
|
NavelRock_Top_MapScripts:: @ 8269113
|
2019-04-22 22:31:51 +02:00
|
|
|
map_script MAP_SCRIPT_ON_TRANSITION, NavelRock_Top_OnTransition
|
2019-10-31 22:00:37 +01:00
|
|
|
map_script MAP_SCRIPT_ON_RESUME, NavelRock_Top_OnResume
|
2017-11-10 02:21:31 +01:00
|
|
|
.byte 0
|
|
|
|
|
2019-04-22 22:31:51 +02:00
|
|
|
NavelRock_Top_OnTransition: @ 826911E
|
2019-10-31 22:00:37 +01:00
|
|
|
call_if_set FLAG_CAUGHT_HO_OH, NavelRock_Top_EventScript_HideHoOh
|
|
|
|
call_if_unset FLAG_CAUGHT_HO_OH, NavelRock_Top_EventScript_TryShowHoOh
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-10-31 22:00:37 +01:00
|
|
|
NavelRock_Top_EventScript_HideHoOh:: @ 8269131
|
2018-05-19 18:02:43 +02:00
|
|
|
setvar VAR_TEMP_1, 1
|
2019-01-02 22:12:43 +01:00
|
|
|
setflag FLAG_HIDE_HO_OH
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2019-10-31 22:00:37 +01:00
|
|
|
NavelRock_Top_EventScript_TryShowHoOh:: @ 826913A
|
2018-05-19 18:02:43 +02:00
|
|
|
setvar VAR_TEMP_1, 1
|
2019-02-23 02:21:26 +01:00
|
|
|
goto_if_set FLAG_DEFEATED_HO_OH, Common_EventScript_NopReturn
|
2018-05-19 18:02:43 +02:00
|
|
|
setvar VAR_TEMP_1, 0
|
2019-01-02 22:12:43 +01:00
|
|
|
clearflag FLAG_HIDE_HO_OH
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2019-10-31 22:00:37 +01:00
|
|
|
NavelRock_Top_OnResume: @ 8269151
|
|
|
|
call_if_set FLAG_SYS_CTRL_OBJ_DELETE, NavelRock_Top_EventScript_TryRemoveHoOh
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-10-31 22:00:37 +01:00
|
|
|
NavelRock_Top_EventScript_TryRemoveHoOh:: @ 826915B
|
2018-08-08 10:37:12 +02:00
|
|
|
specialvar VAR_RESULT, GetBattleOutcome
|
2019-10-07 05:07:59 +02:00
|
|
|
compare VAR_RESULT, B_OUTCOME_CAUGHT
|
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
|
|
|
|
|
2019-10-31 22:00:37 +01:00
|
|
|
NavelRock_Top_EventScript_HoOh:: @ 826916F
|
2017-11-10 02:21:31 +01:00
|
|
|
lockall
|
2018-05-19 18:02:43 +02:00
|
|
|
setvar VAR_TEMP_1, 1
|
2018-12-19 20:08:01 +01:00
|
|
|
special SpawnCameraObject
|
2019-09-30 07:42:52 +02:00
|
|
|
setvar VAR_0x8004, 3 @ num loops
|
|
|
|
setvar VAR_0x8005, 35 @ delay
|
|
|
|
special LoopWingFlapSE
|
2019-10-31 22:00:37 +01:00
|
|
|
applymovement 1, NavelRock_Top_Movement_HoOhAppear
|
2019-11-21 05:12:51 +01:00
|
|
|
applymovement OBJ_EVENT_ID_CAMERA, NavelRock_Top_Movement_CameraPanUp
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
|
|
|
delay 50
|
2018-12-24 22:23:58 +01:00
|
|
|
setweather WEATHER_NONE
|
2017-11-10 02:21:31 +01:00
|
|
|
doweather
|
|
|
|
waitse
|
|
|
|
playmoncry SPECIES_HO_OH, 2
|
|
|
|
delay 30
|
|
|
|
waitmoncry
|
|
|
|
delay 60
|
2019-09-30 07:42:52 +02:00
|
|
|
setvar VAR_0x8004, 3 @ num loops
|
|
|
|
setvar VAR_0x8005, 35 @ delay
|
|
|
|
special LoopWingFlapSE
|
2019-11-21 05:12:51 +01:00
|
|
|
applymovement OBJ_EVENT_ID_CAMERA, NavelRock_Top_Movement_CameraPanDown
|
2019-10-31 22:00:37 +01:00
|
|
|
applymovement 1, NavelRock_Top_Movement_HoOhApproach
|
2017-11-10 02:21:31 +01:00
|
|
|
waitmovement 0
|
2018-12-19 20:08:01 +01:00
|
|
|
special RemoveCameraObject
|
2019-08-15 05:38:42 +02:00
|
|
|
setvar VAR_0x8004, SPECIES_HO_OH
|
2019-10-31 22:00:37 +01:00
|
|
|
setvar VAR_0x8005, 70 @ level
|
2019-08-15 05:38:42 +02:00
|
|
|
setvar VAR_0x8006, ITEM_NONE
|
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
|
|
|
|
setvar VAR_LAST_TALKED, 1
|
2018-08-08 10:37:12 +02:00
|
|
|
specialvar VAR_RESULT, GetBattleOutcome
|
2019-10-07 05:07:59 +02:00
|
|
|
compare VAR_RESULT, B_OUTCOME_WON
|
2019-10-31 22:00:37 +01:00
|
|
|
goto_if_eq NavelRock_Top_EventScript_DefeatedHoOh
|
2019-10-07 05:07:59 +02:00
|
|
|
compare VAR_RESULT, B_OUTCOME_RAN
|
2019-10-31 22:00:37 +01:00
|
|
|
goto_if_eq NavelRock_Top_EventScript_RanFromHoOh
|
2019-10-07 05:07:59 +02:00
|
|
|
compare VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED
|
2019-10-31 22:00:37 +01:00
|
|
|
goto_if_eq NavelRock_Top_EventScript_RanFromHoOh
|
2019-01-02 22:12:43 +01:00
|
|
|
setflag FLAG_CAUGHT_HO_OH
|
2017-11-10 02:21:31 +01:00
|
|
|
releaseall
|
|
|
|
end
|
|
|
|
|
2019-10-31 22:00:37 +01:00
|
|
|
NavelRock_Top_EventScript_DefeatedHoOh:: @ 8269217
|
2019-01-02 22:12:43 +01:00
|
|
|
setflag FLAG_DEFEATED_HO_OH
|
2019-08-15 05:38:42 +02:00
|
|
|
setvar VAR_0x8004, SPECIES_HO_OH
|
|
|
|
goto Common_EventScript_LegendaryFlewAway
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-10-31 22:00:37 +01:00
|
|
|
NavelRock_Top_EventScript_RanFromHoOh:: @ 8269225
|
2019-08-15 05:38:42 +02:00
|
|
|
setvar VAR_0x8004, SPECIES_HO_OH
|
|
|
|
goto Common_EventScript_LegendaryFlewAway
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2019-10-31 22:00:37 +01:00
|
|
|
NavelRock_Top_Movement_CameraPanUp: @ 8269230
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_up
|
|
|
|
walk_up
|
|
|
|
walk_up
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2019-10-31 22:00:37 +01:00
|
|
|
NavelRock_Top_Movement_CameraPanDown: @ 8269234
|
2018-06-14 01:19:19 +02:00
|
|
|
delay_16
|
|
|
|
delay_16
|
|
|
|
walk_down
|
|
|
|
walk_down
|
|
|
|
walk_down
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2019-10-31 22:00:37 +01:00
|
|
|
NavelRock_Top_Movement_HoOhApproach: @ 826923A
|
2018-06-14 01:19:19 +02:00
|
|
|
walk_down
|
|
|
|
walk_down
|
|
|
|
walk_down
|
|
|
|
walk_down
|
|
|
|
walk_down
|
|
|
|
walk_in_place_down
|
|
|
|
delay_16
|
|
|
|
delay_16
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|
|
|
|
|
2019-10-31 22:00:37 +01:00
|
|
|
NavelRock_Top_Movement_HoOhAppear: @ 8269243
|
2018-06-14 01:19:19 +02:00
|
|
|
delay_16
|
|
|
|
delay_16
|
|
|
|
walk_in_place_down
|
|
|
|
walk_in_place_down
|
|
|
|
walk_in_place_down
|
|
|
|
walk_in_place_down
|
2017-11-10 02:21:31 +01:00
|
|
|
step_end
|