mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-30 14:20:42 +01:00
90 lines
3.3 KiB
PHP
90 lines
3.3 KiB
PHP
Route125_MapScripts::
|
|
map_script MAP_SCRIPT_ON_TRANSITION, Route125_OnTransition
|
|
map_script MAP_SCRIPT_ON_LOAD, Route125_OnLoad
|
|
map_script MAP_SCRIPT_ON_FRAME_TABLE, Route125_OnFrame
|
|
.byte 0
|
|
|
|
Route125_OnTransition:
|
|
call_if_set FLAG_SYS_WEATHER_CTRL, Common_EventScript_SetAbnormalWeather
|
|
compare VAR_SHOULD_END_ABNORMAL_WEATHER, 1
|
|
call_if_eq AbnormalWeather_EventScript_HideMapNamePopup
|
|
compare VAR_ABNORMAL_WEATHER_LOCATION, ABNORMAL_WEATHER_ROUTE_125_WEST
|
|
call_if_eq AbnormalWeather_StartKyogreWeather
|
|
compare VAR_ABNORMAL_WEATHER_LOCATION, ABNORMAL_WEATHER_ROUTE_125_EAST
|
|
call_if_eq AbnormalWeather_StartKyogreWeather
|
|
end
|
|
|
|
Route125_OnLoad:
|
|
compare VAR_ABNORMAL_WEATHER_LOCATION, ABNORMAL_WEATHER_ROUTE_125_WEST
|
|
call_if_eq AbnormalWeather_EventScript_PlaceTilesRoute125West
|
|
compare VAR_ABNORMAL_WEATHER_LOCATION, ABNORMAL_WEATHER_ROUTE_125_EAST
|
|
call_if_eq AbnormalWeather_EventScript_PlaceTilesRoute125East
|
|
end
|
|
|
|
Route125_OnFrame:
|
|
map_script_2 VAR_SHOULD_END_ABNORMAL_WEATHER, 1, AbnormalWeather_EventScript_EndEventAndCleanup_1
|
|
.2byte 0
|
|
|
|
Route125_EventScript_Nolen::
|
|
trainerbattle_single TRAINER_NOLEN, Route125_Text_NolenIntro, Route125_Text_NolenDefeat
|
|
msgbox Route125_Text_NolenPostBattle, MSGBOX_AUTOCLOSE
|
|
end
|
|
|
|
Route125_EventScript_Stan::
|
|
trainerbattle_single TRAINER_STAN, Route125_Text_StanIntro, Route125_Text_StanDefeat
|
|
msgbox Route125_Text_StanPostBattle, MSGBOX_AUTOCLOSE
|
|
end
|
|
|
|
Route125_EventScript_Tanya::
|
|
trainerbattle_single TRAINER_TANYA, Route125_Text_TanyaIntro, Route125_Text_TanyaDefeat
|
|
msgbox Route125_Text_TanyaPostBattle, MSGBOX_AUTOCLOSE
|
|
end
|
|
|
|
Route125_EventScript_Sharon::
|
|
trainerbattle_single TRAINER_SHARON, Route125_Text_SharonIntro, Route125_Text_SharonDefeat
|
|
msgbox Route125_Text_SharonPostBattle, MSGBOX_AUTOCLOSE
|
|
end
|
|
|
|
Route125_EventScript_Ernest::
|
|
trainerbattle_single TRAINER_ERNEST_1, Route125_Text_ErnestIntro, Route125_Text_ErnestDefeat, Route125_EventScript_RegisterErnest
|
|
specialvar VAR_RESULT, ShouldTryRematchBattle
|
|
compare VAR_RESULT, TRUE
|
|
goto_if_eq Route125_EventScript_RematchErnest
|
|
msgbox Route125_Text_ErnestPostBattle, MSGBOX_DEFAULT
|
|
release
|
|
end
|
|
|
|
Route125_EventScript_RegisterErnest::
|
|
special PlayerFaceTrainerAfterBattle
|
|
waitmovement 0
|
|
msgbox Route125_Text_ErnestRegister, MSGBOX_DEFAULT
|
|
register_matchcall TRAINER_ERNEST_1
|
|
release
|
|
end
|
|
|
|
Route125_EventScript_RematchErnest::
|
|
trainerbattle_rematch TRAINER_ERNEST_1, Route125_Text_ErnestRematchIntro, Route125_Text_ErnestRematchDefeat
|
|
msgbox Route125_Text_ErnestRematchPostBattle, MSGBOX_AUTOCLOSE
|
|
end
|
|
|
|
Route125_EventScript_Kim::
|
|
trainerbattle_double TRAINER_KIM_AND_IRIS, Route125_Text_KimIntro, Route125_Text_KimDefeat, Route125_Text_KimNotEnoughMons
|
|
msgbox Route125_Text_KimPostBattle, MSGBOX_AUTOCLOSE
|
|
end
|
|
|
|
Route125_EventScript_Iris::
|
|
trainerbattle_double TRAINER_KIM_AND_IRIS, Route125_Text_IrisIntro, Route125_Text_IrisDefeat, Route125_Text_IrisNotEnoughMons
|
|
msgbox Route125_Text_IrisPostBattle, MSGBOX_AUTOCLOSE
|
|
end
|
|
|
|
Route125_EventScript_Presley::
|
|
trainerbattle_single TRAINER_PRESLEY, Route125_Text_PresleyIntro, Route125_Text_PresleyDefeat
|
|
msgbox Route125_Text_PresleyPostBattle, MSGBOX_AUTOCLOSE
|
|
end
|
|
|
|
Route125_EventScript_Auron::
|
|
trainerbattle_single TRAINER_AURON, Route125_Text_AuronIntro, Route125_Text_AuronDefeat
|
|
msgbox Route125_Text_AuronPostBattle, MSGBOX_AUTOCLOSE
|
|
end
|
|
|