pokeemerald/data/maps/Underwater_SealedChamber/scripts.inc
2021-07-20 15:18:31 -04:00

29 lines
821 B
C++

Underwater_SealedChamber_MapScripts::
map_script MAP_SCRIPT_ON_DIVE_WARP, Underwater_SealedChamber_OnDive
.byte 0
Underwater_SealedChamber_OnDive:
getplayerxy VAR_0x8004, VAR_0x8005
compare VAR_0x8004, 12
goto_if_ne Underwater_SealedChamber_EventScript_SurfaceRoute134
compare VAR_0x8005, 44
goto_if_ne Underwater_SealedChamber_EventScript_SurfaceRoute134
goto Underwater_SealedChamber_EventScript_SurfaceSealedChamber
Underwater_SealedChamber_EventScript_SurfaceRoute134::
setdivewarp MAP_ROUTE134, 255, 60, 31
end
Underwater_SealedChamber_EventScript_SurfaceSealedChamber::
setdivewarp MAP_SEALED_CHAMBER_OUTER_ROOM, 255, 10, 19
end
Underwater_SealedChamber_EventScript_Braille::
lockall
braillemessage Underwater_SealedChamber_Braille_GoUpHere
waitbuttonpress
closebraillemessage
releaseall
end