pokeemerald/data/maps/NavelRock_Bottom/scripts.inc

84 lines
2.1 KiB
PHP
Raw Normal View History

2017-11-10 02:21:31 +01:00
NavelRock_Bottom_MapScripts:: @ 8269255
map_script 3, NavelRock_Bottom_MapScript1_269260
map_script 5, NavelRock_Bottom_MapScript1_269284
.byte 0
NavelRock_Bottom_MapScript1_269260: @ 8269260
2019-01-02 22:12:43 +01:00
call_if_set FLAG_CAUGHT_LUGIA, NavelRock_Bottom_EventScript_269273
call_if_unset FLAG_CAUGHT_LUGIA, NavelRock_Bottom_EventScript_269277
2017-11-10 02:21:31 +01:00
end
NavelRock_Bottom_EventScript_269273:: @ 8269273
2018-10-18 21:28:59 +02:00
setflag FLAG_HIDE_LUGIA
2017-11-10 02:21:31 +01:00
return
NavelRock_Bottom_EventScript_269277:: @ 8269277
2019-01-02 22:12:43 +01:00
goto_if_set FLAG_DEFEATED_LUGIA, NavelRock_Bottom_EventScript_27374E
2018-10-18 21:28:59 +02:00
clearflag FLAG_HIDE_LUGIA
2017-11-10 02:21:31 +01:00
return
NavelRock_Bottom_MapScript1_269284: @ 8269284
2018-12-22 03:32:45 +01:00
call_if_set FLAG_SYS_CTRL_OBJ_DELETE, NavelRock_Bottom_EventScript_26928E
2017-11-10 02:21:31 +01:00
end
NavelRock_Bottom_EventScript_26928E:: @ 826928E
specialvar VAR_RESULT, GetBattleOutcome
compare VAR_RESULT, 7
2018-12-22 02:28:24 +01:00
goto_if_ne NavelRock_Bottom_EventScript_27374E
2017-11-10 02:21:31 +01:00
removeobject 1
return
NavelRock_Bottom_EventScript_2692A2:: @ 82692A2
lock
faceplayer
waitse
delay 20
playse SE_T_AME_E
setvar VAR_0x8004, 0
setvar VAR_0x8005, 3
setvar VAR_0x8006, 4
setvar VAR_0x8007, 2
special sub_8139560
delay 30
playse SE_T_AME_E
setvar VAR_0x8004, 0
setvar VAR_0x8005, 3
setvar VAR_0x8006, 4
setvar VAR_0x8007, 2
special sub_8139560
delay 30
delay 50
waitse
playmoncry SPECIES_LUGIA, 2
waitmoncry
delay 20
setvar VAR_0x8004, 249
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
specialvar VAR_RESULT, GetBattleOutcome
compare VAR_RESULT, 1
2018-12-22 02:28:24 +01:00
goto_if_eq NavelRock_Bottom_EventScript_269336
compare VAR_RESULT, 4
2018-12-22 02:28:24 +01:00
goto_if_eq NavelRock_Bottom_EventScript_269344
compare VAR_RESULT, 5
2018-12-22 02:28:24 +01:00
goto_if_eq NavelRock_Bottom_EventScript_269344
2019-01-02 22:12:43 +01:00
setflag FLAG_CAUGHT_LUGIA
2017-11-10 02:21:31 +01:00
release
end
NavelRock_Bottom_EventScript_269336:: @ 8269336
2019-01-02 22:12:43 +01:00
setflag FLAG_DEFEATED_LUGIA
2017-11-10 02:21:31 +01:00
setvar VAR_0x8004, 249
goto NavelRock_Bottom_EventScript_273776
end
NavelRock_Bottom_EventScript_269344:: @ 8269344
setvar VAR_0x8004, 249
goto NavelRock_Bottom_EventScript_273776
end