2021-07-20 21:18:31 +02:00
|
|
|
Route131_MapScripts::
|
2019-04-22 22:31:51 +02:00
|
|
|
map_script MAP_SCRIPT_ON_TRANSITION, Route131_OnTransition
|
2017-11-10 02:21:31 +01:00
|
|
|
.byte 0
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route131_OnTransition:
|
2021-11-19 05:06:30 +01:00
|
|
|
call_if_ge VAR_SOOTOPOLIS_CITY_STATE, 4, Route131_EventScript_CheckSetAbnormalWeather
|
2019-11-11 23:19:39 +01:00
|
|
|
call Route131_EventScript_SetLayout
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route131_EventScript_SetLayout::
|
2019-02-09 16:57:30 +01:00
|
|
|
setmaplayoutindex LAYOUT_ROUTE131_SKY_PILLAR
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route131_EventScript_CheckSetAbnormalWeather::
|
2019-12-02 01:19:47 +01:00
|
|
|
call_if_set FLAG_SYS_WEATHER_CTRL, Common_EventScript_SetAbnormalWeather
|
2017-11-10 02:21:31 +01:00
|
|
|
return
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route131_EventScript_Richard::
|
2019-11-11 23:19:39 +01:00
|
|
|
trainerbattle_single TRAINER_RICHARD, Route131_Text_RichardIntro, Route131_Text_RichardDefeat
|
|
|
|
msgbox Route131_Text_RichardPostBattle, MSGBOX_AUTOCLOSE
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route131_EventScript_Herman::
|
2019-11-11 23:19:39 +01:00
|
|
|
trainerbattle_single TRAINER_HERMAN, Route131_Text_HermanIntro, Route131_Text_HermanDefeat
|
|
|
|
msgbox Route131_Text_HermanPostBattle, MSGBOX_AUTOCLOSE
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route131_EventScript_Susie::
|
2019-11-11 23:19:39 +01:00
|
|
|
trainerbattle_single TRAINER_SUSIE, Route131_Text_SusieIntro, Route131_Text_SusieDefeat
|
|
|
|
msgbox Route131_Text_SusiePostBattle, MSGBOX_AUTOCLOSE
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route131_EventScript_Kara::
|
2019-11-11 23:19:39 +01:00
|
|
|
trainerbattle_single TRAINER_KARA, Route131_Text_KaraIntro, Route131_Text_KaraDefeat
|
|
|
|
msgbox Route131_Text_KaraPostBattle, MSGBOX_AUTOCLOSE
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route131_EventScript_Reli::
|
2019-11-11 23:19:39 +01:00
|
|
|
trainerbattle_double TRAINER_RELI_AND_IAN, Route131_Text_ReliIntro, Route131_Text_ReliDefeat, Route131_Text_ReliNotEnoughMons
|
|
|
|
msgbox Route131_Text_ReliPostBattle, MSGBOX_AUTOCLOSE
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route131_EventScript_Ian::
|
2019-11-11 23:19:39 +01:00
|
|
|
trainerbattle_double TRAINER_RELI_AND_IAN, Route131_Text_IanIntro, Route131_Text_IanDefeat, Route131_Text_IanNotEnoughMons
|
|
|
|
msgbox Route131_Text_IanPostBattle, MSGBOX_AUTOCLOSE
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route131_EventScript_Talia::
|
2019-11-11 23:19:39 +01:00
|
|
|
trainerbattle_single TRAINER_TALIA, Route131_Text_TaliaIntro, Route131_Text_TaliaDefeat
|
|
|
|
msgbox Route131_Text_TaliaPostBattle, MSGBOX_AUTOCLOSE
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route131_EventScript_Kevin::
|
2019-11-11 23:19:39 +01:00
|
|
|
trainerbattle_single TRAINER_KEVIN, Route131_Text_KevinIntro, Route131_Text_KevinDefeat
|
|
|
|
msgbox Route131_Text_KevinPostBattle, MSGBOX_AUTOCLOSE
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|