mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-18 04:27:38 +01:00
90 lines
3.4 KiB
PHP
90 lines
3.4 KiB
PHP
Route125_MapScripts:: @ 81F6748
|
|
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: @ 81F6758
|
|
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: @ 81F6783
|
|
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: @ 81F679A
|
|
map_script_2 VAR_SHOULD_END_ABNORMAL_WEATHER, 1, AbnormalWeather_EventScript_EndEventAndCleanup_1
|
|
.2byte 0
|
|
|
|
Route125_EventScript_Nolen:: @ 81F67A4
|
|
trainerbattle_single TRAINER_NOLEN, Route125_Text_NolenIntro, Route125_Text_NolenDefeat
|
|
msgbox Route125_Text_NolenPostBattle, MSGBOX_AUTOCLOSE
|
|
end
|
|
|
|
Route125_EventScript_Stan:: @ 81F67BB
|
|
trainerbattle_single TRAINER_STAN, Route125_Text_StanIntro, Route125_Text_StanDefeat
|
|
msgbox Route125_Text_StanPostBattle, MSGBOX_AUTOCLOSE
|
|
end
|
|
|
|
Route125_EventScript_Tanya:: @ 81F67D2
|
|
trainerbattle_single TRAINER_TANYA, Route125_Text_TanyaIntro, Route125_Text_TanyaDefeat
|
|
msgbox Route125_Text_TanyaPostBattle, MSGBOX_AUTOCLOSE
|
|
end
|
|
|
|
Route125_EventScript_Sharon:: @ 81F67E9
|
|
trainerbattle_single TRAINER_SHARON, Route125_Text_SharonIntro, Route125_Text_SharonDefeat
|
|
msgbox Route125_Text_SharonPostBattle, MSGBOX_AUTOCLOSE
|
|
end
|
|
|
|
Route125_EventScript_Ernest:: @ 81F6800
|
|
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:: @ 81F682C
|
|
special PlayerFaceTrainerAfterBattle
|
|
waitmovement 0
|
|
msgbox Route125_Text_ErnestRegister, MSGBOX_DEFAULT
|
|
register_matchcall TRAINER_ERNEST_1
|
|
release
|
|
end
|
|
|
|
Route125_EventScript_RematchErnest:: @ 81F684B
|
|
trainerbattle_rematch TRAINER_ERNEST_1, Route125_Text_ErnestRematchIntro, Route125_Text_ErnestRematchDefeat
|
|
msgbox Route125_Text_ErnestRematchPostBattle, MSGBOX_AUTOCLOSE
|
|
end
|
|
|
|
Route125_EventScript_Kim:: @ 81F6862
|
|
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:: @ 81F687D
|
|
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:: @ 81F6898
|
|
trainerbattle_single TRAINER_PRESLEY, Route125_Text_PresleyIntro, Route125_Text_PresleyDefeat
|
|
msgbox Route125_Text_PresleyPostBattle, MSGBOX_AUTOCLOSE
|
|
end
|
|
|
|
Route125_EventScript_Auron:: @ 81F68AF
|
|
trainerbattle_single TRAINER_AURON, Route125_Text_AuronIntro, Route125_Text_AuronDefeat
|
|
msgbox Route125_Text_AuronPostBattle, MSGBOX_AUTOCLOSE
|
|
end
|
|
|