pokeemerald/data/maps/NavelRock_Top/scripts.inc

123 lines
3.0 KiB
PHP
Raw Normal View History

2017-11-10 02:21:31 +01:00
NavelRock_Top_MapScripts:: @ 8269113
map_script MAP_SCRIPT_ON_TRANSITION, NavelRock_Top_OnTransition
2019-02-22 08:28:32 +01:00
map_script MAP_SCRIPT_ON_RESUME, NavelRock_Top_MapScript1_269151
2017-11-10 02:21:31 +01:00
.byte 0
NavelRock_Top_OnTransition: @ 826911E
2019-01-02 22:12:43 +01:00
call_if_set FLAG_CAUGHT_HO_OH, NavelRock_Top_EventScript_269131
call_if_unset FLAG_CAUGHT_HO_OH, NavelRock_Top_EventScript_26913A
2017-11-10 02:21:31 +01:00
end
NavelRock_Top_EventScript_269131:: @ 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
NavelRock_Top_EventScript_26913A:: @ 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
NavelRock_Top_MapScript1_269151: @ 8269151
2018-12-22 03:32:45 +01:00
call_if_set FLAG_SYS_CTRL_OBJ_DELETE, NavelRock_Top_EventScript_26915B
2017-11-10 02:21:31 +01:00
end
NavelRock_Top_EventScript_26915B:: @ 826915B
specialvar VAR_RESULT, GetBattleOutcome
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
NavelRock_Top_EventScript_26916F:: @ 826916F
lockall
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 1
special SpawnCameraObject
2019-09-30 07:42:52 +02:00
setvar VAR_0x8004, 3 @ num loops
setvar VAR_0x8005, 35 @ delay
special LoopWingFlapSE
2017-11-10 02:21:31 +01:00
applymovement 1, NavelRock_Top_Movement_269243
applymovement EVENT_OBJ_ID_CAMERA, NavelRock_Top_Movement_269230
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
applymovement EVENT_OBJ_ID_CAMERA, NavelRock_Top_Movement_269234
2017-11-10 02:21:31 +01:00
applymovement 1, NavelRock_Top_Movement_26923A
waitmovement 0
special RemoveCameraObject
2019-08-15 05:38:42 +02:00
setvar VAR_0x8004, SPECIES_HO_OH
setvar VAR_0x8005, 70 @level
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
specialvar VAR_RESULT, GetBattleOutcome
compare VAR_RESULT, B_OUTCOME_WON
2018-12-22 02:28:24 +01:00
goto_if_eq NavelRock_Top_EventScript_269217
compare VAR_RESULT, B_OUTCOME_RAN
2018-12-22 02:28:24 +01:00
goto_if_eq NavelRock_Top_EventScript_269225
compare VAR_RESULT, B_OUTCOME_PLAYER_TELEPORTED
2018-12-22 02:28:24 +01:00
goto_if_eq NavelRock_Top_EventScript_269225
2019-01-02 22:12:43 +01:00
setflag FLAG_CAUGHT_HO_OH
2017-11-10 02:21:31 +01:00
releaseall
end
NavelRock_Top_EventScript_269217:: @ 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
NavelRock_Top_EventScript_269225:: @ 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
NavelRock_Top_Movement_269230: @ 8269230
walk_up
walk_up
walk_up
2017-11-10 02:21:31 +01:00
step_end
NavelRock_Top_Movement_269234: @ 8269234
delay_16
delay_16
walk_down
walk_down
walk_down
2017-11-10 02:21:31 +01:00
step_end
NavelRock_Top_Movement_26923A: @ 826923A
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
NavelRock_Top_Movement_269243: @ 8269243
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