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

29 lines
640 B
C++

MtPyre_Exterior_MapScripts::
map_script MAP_SCRIPT_ON_TRANSITION, MtPyre_Exterior_OnTransition
.byte 0
MtPyre_Exterior_OnTransition:
call MtPyre_Exterior_EventScript_CheckEnterFromSummit
end
MtPyre_Exterior_EventScript_CheckEnterFromSummit::
getplayerxy VAR_TEMP_0, VAR_TEMP_1
compare VAR_TEMP_1, 12
goto_if_lt MtPyre_Exterior_EventScript_EnterFromSummit
return
MtPyre_Exterior_EventScript_EnterFromSummit::
setweather WEATHER_FOG_HORIZONTAL
return
MtPyre_Exterior_EventScript_FogTrigger::
setweather WEATHER_FOG_HORIZONTAL
doweather
end
MtPyre_Exterior_EventScript_SunTrigger::
setweather WEATHER_SUNNY
doweather
end