2021-07-20 21:18:31 +02:00
|
|
|
Route130_MapScripts::
|
2019-04-22 22:31:51 +02:00
|
|
|
map_script MAP_SCRIPT_ON_TRANSITION, Route130_OnTransition
|
2017-11-10 02:21:31 +01:00
|
|
|
.byte 0
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route130_OnTransition:
|
2021-11-19 05:06:30 +01:00
|
|
|
call_if_ge VAR_SOOTOPOLIS_CITY_STATE, 4, Route130_EventScript_CheckSetAbnormalWeather
|
2017-12-28 09:09:11 +01:00
|
|
|
specialvar VAR_RESULT, IsMirageIslandPresent
|
2021-11-19 05:06:30 +01:00
|
|
|
goto_if_eq VAR_RESULT, TRUE, Route130_EventScript_SetMirageIslandLayout
|
2018-10-17 18:25:12 +02:00
|
|
|
setflag FLAG_TEMP_11
|
|
|
|
setflag FLAG_TEMP_12
|
|
|
|
setflag FLAG_TEMP_13
|
|
|
|
setflag FLAG_TEMP_14
|
|
|
|
setflag FLAG_TEMP_15
|
|
|
|
setflag FLAG_TEMP_16
|
|
|
|
setflag FLAG_TEMP_17
|
|
|
|
setflag FLAG_TEMP_18
|
|
|
|
setflag FLAG_TEMP_19
|
|
|
|
setflag FLAG_TEMP_1A
|
|
|
|
setflag FLAG_TEMP_1B
|
|
|
|
setflag FLAG_TEMP_1C
|
|
|
|
setflag FLAG_TEMP_1D
|
|
|
|
setflag FLAG_TEMP_1E
|
|
|
|
setflag FLAG_TEMP_1F
|
2019-01-31 22:51:20 +01:00
|
|
|
setmaplayoutindex LAYOUT_ROUTE130
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route130_EventScript_SetMirageIslandLayout::
|
2019-02-09 16:57:30 +01:00
|
|
|
setmaplayoutindex LAYOUT_ROUTE130_MIRAGE_ISLAND
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route130_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
|
|
|
Route130_EventScript_Rodney::
|
2019-11-11 23:19:39 +01:00
|
|
|
trainerbattle_single TRAINER_RODNEY, Route130_Text_RodneyIntro, Route130_Text_RodneyDefeat
|
|
|
|
msgbox Route130_Text_RodneyPostBattle, MSGBOX_AUTOCLOSE
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route130_EventScript_Katie::
|
2019-11-11 23:19:39 +01:00
|
|
|
trainerbattle_single TRAINER_KATIE, Route130_Text_KatieIntro, Route130_Text_KatieDefeat
|
|
|
|
msgbox Route130_Text_KatiePostBattle, MSGBOX_AUTOCLOSE
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|
2021-07-20 21:18:31 +02:00
|
|
|
Route130_EventScript_Santiago::
|
2019-11-11 23:19:39 +01:00
|
|
|
trainerbattle_single TRAINER_SANTIAGO, Route130_Text_SantiagoIntro, Route130_Text_SantiagoDefeat
|
|
|
|
msgbox Route130_Text_SantiagoPostBattle, MSGBOX_AUTOCLOSE
|
2017-11-10 02:21:31 +01:00
|
|
|
end
|
|
|
|
|