pokeemerald/data/maps/SealedChamber_OuterRoom/scripts.inc

107 lines
2.7 KiB
PHP
Raw Normal View History

2021-07-20 21:18:31 +02:00
SealedChamber_OuterRoom_MapScripts::
2019-11-07 02:38:53 +01:00
map_script MAP_SCRIPT_ON_RESUME, SealedChamber_OuterRoom_OnResume
2019-04-05 01:28:37 +02:00
map_script MAP_SCRIPT_ON_TRANSITION, SealedChamber_OuterRoom_OnTransition
2019-11-07 02:38:53 +01:00
map_script MAP_SCRIPT_ON_LOAD, SealedChamber_OuterRoom_OnLoad
2017-11-10 02:21:31 +01:00
.byte 0
2021-07-20 21:18:31 +02:00
SealedChamber_OuterRoom_OnResume:
setdivewarp MAP_UNDERWATER_SEALED_CHAMBER, 12, 44
setescapewarp MAP_UNDERWATER_SEALED_CHAMBER, 12, 44
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
SealedChamber_OuterRoom_OnTransition:
2017-12-27 04:20:29 +01:00
setflag FLAG_LANDMARK_SEALED_CHAMBER
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
SealedChamber_OuterRoom_OnLoad:
2019-11-07 02:38:53 +01:00
call_if_unset FLAG_SYS_BRAILLE_DIG, SealedChamber_OuterRoom_EventScript_CloseInnerRoomEntrance
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
SealedChamber_OuterRoom_EventScript_CloseInnerRoomEntrance::
2021-11-16 23:12:16 +01:00
setmetatile 9, 1, METATILE_Cave_EntranceCover, TRUE
setmetatile 10, 1, METATILE_Cave_EntranceCover, TRUE
setmetatile 11, 1, METATILE_Cave_EntranceCover, TRUE
setmetatile 9, 2, METATILE_Cave_SealedChamberBraille_Mid, TRUE
setmetatile 10, 2, METATILE_Cave_SealedChamberBraille_Mid, TRUE
setmetatile 11, 2, METATILE_Cave_SealedChamberBraille_Mid, TRUE
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
SealedChamber_OuterRoom_EventScript_BrailleABC::
2017-11-10 02:21:31 +01:00
lockall
2021-10-30 22:19:10 +02:00
braillemsgbox SealedChamber_OuterRoom_Braille_ABC
2017-11-10 02:21:31 +01:00
releaseall
end
2021-07-20 21:18:31 +02:00
SealedChamber_OuterRoom_EventScript_BrailleGHI::
2017-11-10 02:21:31 +01:00
lockall
2021-10-30 22:19:10 +02:00
braillemsgbox SealedChamber_OuterRoom_Braille_GHI
2017-11-10 02:21:31 +01:00
releaseall
end
2021-07-20 21:18:31 +02:00
SealedChamber_OuterRoom_EventScript_BrailleMNO::
2017-11-10 02:21:31 +01:00
lockall
2021-10-30 22:19:10 +02:00
braillemsgbox SealedChamber_OuterRoom_Braille_MNO
2017-11-10 02:21:31 +01:00
releaseall
end
2021-07-20 21:18:31 +02:00
SealedChamber_OuterRoom_EventScript_BrailleTUV::
2017-11-10 02:21:31 +01:00
lockall
2021-10-30 22:19:10 +02:00
braillemsgbox SealedChamber_OuterRoom_Braille_TUV
2017-11-10 02:21:31 +01:00
releaseall
end
2021-07-20 21:18:31 +02:00
SealedChamber_OuterRoom_EventScript_BrailleDEF::
2017-11-10 02:21:31 +01:00
lockall
2021-10-30 22:19:10 +02:00
braillemsgbox SealedChamber_OuterRoom_Braille_DEF
2017-11-10 02:21:31 +01:00
releaseall
end
2021-07-20 21:18:31 +02:00
SealedChamber_OuterRoom_EventScript_BrailleJKL::
2017-11-10 02:21:31 +01:00
lockall
2021-10-30 22:19:10 +02:00
braillemsgbox SealedChamber_OuterRoom_Braille_JKL
2017-11-10 02:21:31 +01:00
releaseall
end
2021-07-20 21:18:31 +02:00
SealedChamber_OuterRoom_EventScript_BraillePQRS::
2017-11-10 02:21:31 +01:00
lockall
2021-10-30 22:19:10 +02:00
braillemsgbox SealedChamber_OuterRoom_Braille_PQRS
2017-11-10 02:21:31 +01:00
releaseall
end
2021-07-20 21:18:31 +02:00
SealedChamber_OuterRoom_EventScript_BraillePeriod::
2017-11-10 02:21:31 +01:00
lockall
2021-10-30 22:19:10 +02:00
braillemsgbox SealedChamber_OuterRoom_Braille_Period
2017-11-10 02:21:31 +01:00
releaseall
end
2021-07-20 21:18:31 +02:00
SealedChamber_OuterRoom_EventScript_BrailleWXYZ::
2017-11-10 02:21:31 +01:00
lockall
2021-10-30 22:19:10 +02:00
braillemsgbox SealedChamber_OuterRoom_Braille_WXYZ
2017-11-10 02:21:31 +01:00
releaseall
end
2021-07-20 21:18:31 +02:00
SealedChamber_OuterRoom_EventScript_BrailleComma::
2017-11-10 02:21:31 +01:00
lockall
2021-10-30 22:19:10 +02:00
braillemsgbox SealedChamber_OuterRoom_Braille_Comma
2017-11-10 02:21:31 +01:00
releaseall
end
2021-07-20 21:18:31 +02:00
SealedChamber_OuterRoom_EventScript_InnerRoomEntranceWall::
2017-11-10 02:21:31 +01:00
lockall
2019-11-07 02:38:53 +01:00
goto_if_set FLAG_SYS_BRAILLE_DIG, SealedChamber_OuterRoom_EventScript_HoleInWall
2021-10-30 22:19:10 +02:00
braillemsgbox SealedChamber_OuterRoom_Braille_DigHere
2017-11-10 02:21:31 +01:00
releaseall
end
2021-07-20 21:18:31 +02:00
SealedChamber_OuterRoom_EventScript_HoleInWall::
2019-08-15 05:38:42 +02:00
msgbox gText_BigHoleInTheWall, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
releaseall
end
2021-07-20 21:18:31 +02:00
SealedChamber_OuterRoom_EventScript_BrailleDigHere::
2017-11-10 02:21:31 +01:00
lockall
2021-10-30 22:19:10 +02:00
braillemsgbox SealedChamber_OuterRoom_Braille_DigHere
2017-11-10 02:21:31 +01:00
releaseall
end