pokeemerald/data/scripts/elite_four.inc

63 lines
3.2 KiB
PHP
Raw Normal View History

2021-07-20 21:18:31 +02:00
PokemonLeague_EliteFour_SetAdvanceToNextRoomMetatiles::
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_Delay32
2019-10-05 16:52:48 +02:00
waitmovement 0
playse SE_DOOR
2021-11-16 23:12:16 +01:00
setmetatile 6, 1, METATILE_EliteFour_OpenDoor_Frame, FALSE
setmetatile 6, 2, METATILE_EliteFour_OpenDoor_Opening, FALSE
setmetatile 0, 2, METATILE_EliteFour_RightSpotlightOff, TRUE
setmetatile 1, 2, METATILE_EliteFour_LeftSpotlightOff, TRUE
setmetatile 2, 2, METATILE_EliteFour_RightSpotlightOff, TRUE
setmetatile 3, 2, METATILE_EliteFour_LeftSpotlightOff, TRUE
setmetatile 4, 2, METATILE_EliteFour_RightSpotlightOff, TRUE
setmetatile 8, 2, METATILE_EliteFour_LeftSpotlightOff, TRUE
setmetatile 9, 2, METATILE_EliteFour_RightSpotlightOff, TRUE
setmetatile 10, 2, METATILE_EliteFour_LeftSpotlightOff, TRUE
setmetatile 11, 2, METATILE_EliteFour_RightSpotlightOff, TRUE
setmetatile 12, 2, METATILE_EliteFour_LeftSpotlightOff, TRUE
2019-10-05 16:52:48 +02:00
special DrawWholeMapView
return
2021-07-20 21:18:31 +02:00
PokemonLeague_EliteFour_EventScript_WalkInCloseDoor::
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkUp6
2019-10-05 16:52:48 +02:00
waitmovement 0
2020-08-21 00:02:00 +02:00
playse SE_TRUCK_DOOR
2021-11-16 23:12:16 +01:00
setmetatile 5, 12, METATILE_EliteFour_EntryDoor_ClosedTop, TRUE
setmetatile 6, 12, METATILE_EliteFour_EntryDoor_ClosedTop, TRUE
setmetatile 7, 12, METATILE_EliteFour_EntryDoor_ClosedTop, TRUE
setmetatile 5, 13, METATILE_EliteFour_EntryDoor_ClosedBottom, TRUE
setmetatile 6, 13, METATILE_EliteFour_EntryDoor_ClosedBottom, TRUE
setmetatile 7, 13, METATILE_EliteFour_EntryDoor_ClosedBottom, TRUE
2019-10-05 16:52:48 +02:00
special DrawWholeMapView
return
@ Essentially unused, only necessary when re-entering an Elite Four room after defeating the member, which isnt normally possible
2021-07-20 21:18:31 +02:00
PokemonLeague_EliteFour_EventScript_ResetAdvanceToNextRoom::
2021-11-16 23:12:16 +01:00
setmetatile 6, 1, METATILE_EliteFour_OpenDoor_Frame, FALSE
setmetatile 6, 2, METATILE_EliteFour_OpenDoor_Opening, FALSE
setmetatile 5, 12, METATILE_EliteFour_EntryDoor_ClosedTop, TRUE
setmetatile 6, 12, METATILE_EliteFour_EntryDoor_ClosedTop, TRUE
setmetatile 7, 12, METATILE_EliteFour_EntryDoor_ClosedTop, TRUE
setmetatile 5, 13, METATILE_EliteFour_EntryDoor_ClosedBottom, TRUE
setmetatile 6, 13, METATILE_EliteFour_EntryDoor_ClosedBottom, TRUE
setmetatile 7, 13, METATILE_EliteFour_EntryDoor_ClosedBottom, TRUE
setmetatile 0, 2, METATILE_EliteFour_RightSpotlightOff, TRUE
setmetatile 1, 2, METATILE_EliteFour_LeftSpotlightOff, TRUE
setmetatile 2, 2, METATILE_EliteFour_RightSpotlightOff, TRUE
setmetatile 3, 2, METATILE_EliteFour_LeftSpotlightOff, TRUE
setmetatile 4, 2, METATILE_EliteFour_RightSpotlightOff, TRUE
setmetatile 8, 2, METATILE_EliteFour_LeftSpotlightOff, TRUE
setmetatile 9, 2, METATILE_EliteFour_RightSpotlightOff, TRUE
setmetatile 10, 2, METATILE_EliteFour_LeftSpotlightOff, TRUE
setmetatile 11, 2, METATILE_EliteFour_RightSpotlightOff, TRUE
setmetatile 12, 2, METATILE_EliteFour_LeftSpotlightOff, TRUE
2019-10-05 16:52:48 +02:00
return
2021-07-20 21:18:31 +02:00
PokemonLeague_EliteFour_EventScript_CloseDoor::
2021-11-16 23:12:16 +01:00
setmetatile 5, 12, METATILE_EliteFour_EntryDoor_ClosedTop, TRUE
setmetatile 6, 12, METATILE_EliteFour_EntryDoor_ClosedTop, TRUE
setmetatile 7, 12, METATILE_EliteFour_EntryDoor_ClosedTop, TRUE
setmetatile 5, 13, METATILE_EliteFour_EntryDoor_ClosedBottom, TRUE
setmetatile 6, 13, METATILE_EliteFour_EntryDoor_ClosedBottom, TRUE
setmetatile 7, 13, METATILE_EliteFour_EntryDoor_ClosedBottom, TRUE
2019-10-05 16:52:48 +02:00
return