pokeemerald/data/maps/NavelRock_Top/scripts.inc

128 lines
2.7 KiB
PHP
Raw Normal View History

2017-11-10 02:21:31 +01:00
NavelRock_Top_MapScripts:: @ 8269113
map_script 3, NavelRock_Top_MapScript1_26911E
map_script 5, NavelRock_Top_MapScript1_269151
.byte 0
NavelRock_Top_MapScript1_26911E: @ 826911E
checkflag FLAG_0x092
call_if 1, NavelRock_Top_EventScript_269131
checkflag FLAG_0x092
call_if 0, NavelRock_Top_EventScript_26913A
end
NavelRock_Top_EventScript_269131:: @ 8269131
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 1
2018-10-18 21:28:59 +02:00
setflag FLAG_HIDE_HOOH
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
2017-11-10 02:21:31 +01:00
checkflag FLAG_0x1DC
goto_eq NavelRock_Top_EventScript_27374E
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 0
2018-10-18 21:28:59 +02:00
clearflag FLAG_HIDE_HOOH
2017-11-10 02:21:31 +01:00
return
NavelRock_Top_MapScript1_269151: @ 8269151
checkflag FLAG_SYS_CTRL_OBJ_DELETE
call_if 1, NavelRock_Top_EventScript_26915B
end
NavelRock_Top_EventScript_26915B:: @ 826915B
specialvar VAR_RESULT, GetBattleOutcome
compare VAR_RESULT, 7
2017-11-10 02:21:31 +01:00
goto_if 5, NavelRock_Top_EventScript_27374E
removeobject 1
return
NavelRock_Top_EventScript_26916F:: @ 826916F
lockall
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 1
special SpawnScriptEventObject
2017-11-10 02:21:31 +01:00
setvar VAR_0x8004, 3
setvar VAR_0x8005, 35
special sub_813B80C
applymovement 1, NavelRock_Top_Movement_269243
applymovement 127, NavelRock_Top_Movement_269230
waitmovement 0
delay 50
setweather 0
doweather
waitse
playmoncry SPECIES_HO_OH, 2
delay 30
waitmoncry
delay 60
setvar VAR_0x8004, 3
setvar VAR_0x8005, 35
special sub_813B80C
applymovement 127, NavelRock_Top_Movement_269234
applymovement 1, NavelRock_Top_Movement_26923A
waitmovement 0
special RemoveScriptEventObject
2017-11-10 02:21:31 +01:00
setvar VAR_0x8004, 250
setvar VAR_0x8005, 70
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
setvar VAR_LAST_TALKED, 1
specialvar VAR_RESULT, GetBattleOutcome
compare VAR_RESULT, 1
2017-11-10 02:21:31 +01:00
goto_eq NavelRock_Top_EventScript_269217
compare VAR_RESULT, 4
2017-11-10 02:21:31 +01:00
goto_eq NavelRock_Top_EventScript_269225
compare VAR_RESULT, 5
2017-11-10 02:21:31 +01:00
goto_eq NavelRock_Top_EventScript_269225
setflag FLAG_0x092
releaseall
end
NavelRock_Top_EventScript_269217:: @ 8269217
setflag FLAG_0x1DC
setvar VAR_0x8004, 250
goto NavelRock_Top_EventScript_273776
end
NavelRock_Top_EventScript_269225:: @ 8269225
setvar VAR_0x8004, 250
goto NavelRock_Top_EventScript_273776
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