pokeemerald/data/maps/Route124/scripts.inc

105 lines
3.6 KiB
PHP
Raw Normal View History

2021-07-20 21:18:31 +02:00
Route124_MapScripts::
map_script MAP_SCRIPT_ON_TRANSITION, Route124_OnTransition
2017-11-10 02:21:31 +01:00
.byte 0
2021-07-20 21:18:31 +02:00
Route124_OnTransition:
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
end
2021-07-20 21:18:31 +02:00
Route124_EventScript_HuntersHouseSign::
2019-11-11 23:19:39 +01:00
msgbox Route124_Text_HuntersHouse, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route124_EventScript_Spencer::
2019-11-11 23:19:39 +01:00
trainerbattle_single TRAINER_SPENCER, Route124_Text_SpencerIntro, Route124_Text_SpencerDefeat
msgbox Route124_Text_SpencerPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route124_EventScript_Roland::
2019-11-11 23:19:39 +01:00
trainerbattle_single TRAINER_ROLAND, Route124_Text_RolandIntro, Route124_Text_RolandDefeat
msgbox Route124_Text_RolandPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route124_EventScript_Jenny::
2019-11-11 23:19:39 +01:00
trainerbattle_single TRAINER_JENNY_1, Route124_Text_JennyIntro, Route124_Text_JennyDefeat, Route124_EventScript_RegisterJenny
2017-12-01 21:25:13 +01:00
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, Route124_EventScript_RematchJenny
2019-11-11 23:19:39 +01:00
msgbox Route124_Text_JennyPostBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route124_EventScript_RegisterJenny::
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 Route124_Text_JennyRegister, MSGBOX_DEFAULT
2018-12-02 12:04:59 +01:00
register_matchcall TRAINER_JENNY_1
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route124_EventScript_RematchJenny::
2019-11-11 23:19:39 +01:00
trainerbattle_rematch TRAINER_JENNY_1, Route124_Text_JennyRematchIntro, Route124_Text_JennyRematchDefeat
msgbox Route124_Text_JennyPostRematch, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route124_EventScript_Grace::
2019-11-11 23:19:39 +01:00
trainerbattle_single TRAINER_GRACE, Route124_Text_GraceIntro, Route124_Text_GraceDefeat
msgbox Route124_Text_GracePostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route124_EventScript_Chad::
2019-11-11 23:19:39 +01:00
trainerbattle_single TRAINER_CHAD, Route124_Text_ChadIntro, Route124_Text_ChadDefeat
msgbox Route124_Text_ChadPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route124_EventScript_Lila::
2019-11-11 23:19:39 +01:00
trainerbattle_double TRAINER_LILA_AND_ROY_1, Route124_Text_LilaIntro, Route124_Text_LilaDefeat, Route124_Text_LilaNotEnoughMons, Route124_EventScript_RegisterLila
2017-12-01 21:25:13 +01:00
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, Route124_EventScript_RematchLila
2019-11-11 23:19:39 +01:00
msgbox Route124_Text_LilaPostBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route124_EventScript_RegisterLila::
2019-11-11 23:19:39 +01:00
msgbox Route124_Text_LilaRoyRegister, MSGBOX_DEFAULT
2018-12-02 12:04:59 +01:00
register_matchcall TRAINER_LILA_AND_ROY_1
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route124_EventScript_RematchLila::
2019-11-11 23:19:39 +01:00
trainerbattle_rematch_double TRAINER_LILA_AND_ROY_1, Route124_Text_LilaRematchIntro, Route124_Text_LilaRematchDefeat, Route124_Text_LilaRematchNotEnoughMons
msgbox Route124_Text_LilaPostRematch, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route124_EventScript_Roy::
2019-11-11 23:19:39 +01:00
trainerbattle_double TRAINER_LILA_AND_ROY_1, Route124_Text_RoyIntro, Route124_Text_RoyDefeat, Route124_Text_RoyNotEnoughMons, Route124_EventScript_RegisterRoy
2017-12-01 21:25:13 +01:00
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, Route124_EventScript_RematchRoy
2019-11-11 23:19:39 +01:00
msgbox Route124_Text_RoyPostBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route124_EventScript_RegisterRoy::
2019-11-11 23:19:39 +01:00
msgbox Route124_Text_LilaRoyRegister, MSGBOX_DEFAULT
2018-12-02 12:04:59 +01:00
register_matchcall TRAINER_LILA_AND_ROY_1
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route124_EventScript_RematchRoy::
2019-11-11 23:19:39 +01:00
trainerbattle_rematch_double TRAINER_LILA_AND_ROY_1, Route124_Text_RoyRematchIntro, Route124_Text_RoyRematchDefeat, Route124_Text_RoyRematchNotEnoughMons
msgbox Route124_Text_RoyPostRematch, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route124_EventScript_Declan::
2019-11-11 23:19:39 +01:00
trainerbattle_single TRAINER_DECLAN, Route124_Text_DeclanIntro, Route124_Text_DeclanDefeat
msgbox Route124_Text_DeclanPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route124_EventScript_Isabella::
2019-11-11 23:19:39 +01:00
trainerbattle_single TRAINER_ISABELLA, Route124_Text_IsabellaIntro, Route124_Text_IsabellaDefeat
msgbox Route124_Text_IsabellaPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route124_Text_HuntersHouse:
2018-12-07 16:41:08 +01:00
.string "HUNTER'S HOUSE$"
2017-11-10 02:21:31 +01:00