pokeemerald/data/maps/Underwater_SeafloorCavern/scripts.inc

51 lines
1.9 KiB
PHP
Raw Normal View History

2021-07-20 21:18:31 +02:00
Underwater_SeafloorCavern_MapScripts::
2019-11-07 02:38:53 +01:00
map_script MAP_SCRIPT_ON_RESUME, Underwater_SeafloorCavern_OnResume
2019-04-05 01:28:37 +02:00
map_script MAP_SCRIPT_ON_TRANSITION, Underwater_SeafloorCavern_OnTransition
2019-11-07 02:38:53 +01:00
map_script MAP_SCRIPT_ON_LOAD, Underwater_SeafloorCavern_OnLoad
2017-11-10 02:21:31 +01:00
.byte 0
2021-07-20 21:18:31 +02:00
Underwater_SeafloorCavern_OnTransition:
2017-12-27 04:20:29 +01:00
setflag FLAG_LANDMARK_SEAFLOOR_CAVERN
2019-11-07 02:38:53 +01:00
goto_if_set FLAG_KYOGRE_ESCAPED_SEAFLOOR_CAVERN, Underwater_SeafloorCavern_EventScript_HideSubmarine
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Underwater_SeafloorCavern_EventScript_HideSubmarine::
2018-10-19 03:32:21 +02:00
setflag FLAG_HIDE_UNDERWATER_SEA_FLOOR_CAVERN_STOLEN_SUBMARINE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Underwater_SeafloorCavern_OnLoad:
2019-11-07 02:38:53 +01:00
call_if_set FLAG_KYOGRE_ESCAPED_SEAFLOOR_CAVERN, Underwater_SeafloorCavern_EventScript_SetSubmarineGoneMetatiles
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Underwater_SeafloorCavern_EventScript_SetSubmarineGoneMetatiles::
2019-06-13 00:47:51 +02:00
setmetatile 5, 3, METATILE_Underwater_RockWall, 1
setmetatile 6, 3, METATILE_Underwater_RockWall, 1
setmetatile 7, 3, METATILE_Underwater_RockWall, 1
setmetatile 8, 3, METATILE_Underwater_RockWall, 1
setmetatile 5, 4, METATILE_Underwater_FloorShadow, 0
setmetatile 6, 4, METATILE_Underwater_FloorShadow, 0
setmetatile 7, 4, METATILE_Underwater_FloorShadow, 0
setmetatile 8, 4, METATILE_Underwater_FloorShadow, 0
setmetatile 5, 5, METATILE_Underwater_FloorShadow, 0
setmetatile 6, 5, METATILE_Underwater_FloorShadow, 0
setmetatile 7, 5, METATILE_Underwater_FloorShadow, 0
setmetatile 8, 5, METATILE_Underwater_FloorShadow, 0
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
Underwater_SeafloorCavern_OnResume:
setdivewarp MAP_SEAFLOOR_CAVERN_ENTRANCE, 255, 10, 17
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Underwater_SeafloorCavern_EventScript_CheckStolenSub::
2019-04-05 01:28:37 +02:00
msgbox Underwater_SeafloorCavern_Text_SubExplorer1, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Underwater_SeafloorCavern_Text_SubExplorer1:
2017-11-10 02:21:31 +01:00
.string "“SUBMARINE EXPLORER 1” is painted\n"
.string "on the hull.\p"
.string "This is the submarine TEAM AQUA\n"
.string "stole in SLATEPORT!\p"
.string "TEAM AQUA must have gone\n"
.string "ashore here.$"