pokeemerald/data/maps/Route125/scripts.inc

90 lines
3.4 KiB
PHP
Raw Normal View History

2017-11-10 02:21:31 +01:00
Route125_MapScripts:: @ 81F6748
map_script MAP_SCRIPT_ON_TRANSITION, Route125_OnTransition
2019-11-11 23:19:39 +01:00
map_script MAP_SCRIPT_ON_LOAD, Route125_OnLoad
map_script MAP_SCRIPT_ON_FRAME_TABLE, Route125_OnFrame
2017-11-10 02:21:31 +01:00
.byte 0
Route125_OnTransition: @ 81F6758
2019-12-02 01:19:47 +01:00
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
2017-11-10 02:21:31 +01:00
end
2019-11-11 23:19:39 +01:00
Route125_OnLoad: @ 81F6783
2019-12-02 01:19:47 +01:00
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
2017-11-10 02:21:31 +01:00
end
2019-11-11 23:19:39 +01:00
Route125_OnFrame: @ 81F679A
2019-12-02 01:19:47 +01:00
map_script_2 VAR_SHOULD_END_ABNORMAL_WEATHER, 1, AbnormalWeather_EventScript_EndEventAndCleanup_1
2017-11-10 02:21:31 +01:00
.2byte 0
2019-11-11 23:19:39 +01:00
Route125_EventScript_Nolen:: @ 81F67A4
trainerbattle_single TRAINER_NOLEN, Route125_Text_NolenIntro, Route125_Text_NolenDefeat
msgbox Route125_Text_NolenPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2019-11-11 23:19:39 +01:00
Route125_EventScript_Stan:: @ 81F67BB
trainerbattle_single TRAINER_STAN, Route125_Text_StanIntro, Route125_Text_StanDefeat
msgbox Route125_Text_StanPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2019-11-11 23:19:39 +01:00
Route125_EventScript_Tanya:: @ 81F67D2
trainerbattle_single TRAINER_TANYA, Route125_Text_TanyaIntro, Route125_Text_TanyaDefeat
msgbox Route125_Text_TanyaPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2019-11-11 23:19:39 +01:00
Route125_EventScript_Sharon:: @ 81F67E9
trainerbattle_single TRAINER_SHARON, Route125_Text_SharonIntro, Route125_Text_SharonDefeat
msgbox Route125_Text_SharonPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2019-11-11 23:19:39 +01:00
Route125_EventScript_Ernest:: @ 81F6800
trainerbattle_single TRAINER_ERNEST_1, Route125_Text_ErnestIntro, Route125_Text_ErnestDefeat, Route125_EventScript_RegisterErnest
2017-12-01 21:25:13 +01:00
specialvar VAR_RESULT, ShouldTryRematchBattle
2019-11-11 23:19:39 +01:00
compare VAR_RESULT, TRUE
goto_if_eq Route125_EventScript_RematchErnest
msgbox Route125_Text_ErnestPostBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2019-11-11 23:19:39 +01:00
Route125_EventScript_RegisterErnest:: @ 81F682C
2019-11-01 08:41:55 +01:00
special PlayerFaceTrainerAfterBattle
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-11 23:19:39 +01:00
msgbox Route125_Text_ErnestRegister, MSGBOX_DEFAULT
2018-12-02 12:04:59 +01:00
register_matchcall TRAINER_ERNEST_1
2017-11-10 02:21:31 +01:00
release
end
2019-11-11 23:19:39 +01:00
Route125_EventScript_RematchErnest:: @ 81F684B
trainerbattle_rematch TRAINER_ERNEST_1, Route125_Text_ErnestRematchIntro, Route125_Text_ErnestRematchDefeat
msgbox Route125_Text_ErnestRematchPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2019-11-11 23:19:39 +01:00
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
2017-11-10 02:21:31 +01:00
end
2019-11-11 23:19:39 +01:00
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
2017-11-10 02:21:31 +01:00
end
2019-11-11 23:19:39 +01:00
Route125_EventScript_Presley:: @ 81F6898
trainerbattle_single TRAINER_PRESLEY, Route125_Text_PresleyIntro, Route125_Text_PresleyDefeat
msgbox Route125_Text_PresleyPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2019-11-11 23:19:39 +01:00
Route125_EventScript_Auron:: @ 81F68AF
trainerbattle_single TRAINER_AURON, Route125_Text_AuronIntro, Route125_Text_AuronDefeat
msgbox Route125_Text_AuronPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end