pokeemerald/data/maps/Route113/scripts.inc

167 lines
5.2 KiB
PHP
Raw Normal View History

2021-07-20 21:18:31 +02:00
Route113_MapScripts::
2019-11-12 07:57:39 +01:00
map_script MAP_SCRIPT_ON_RESUME, Route113_OnResume
map_script MAP_SCRIPT_ON_TRANSITION, Route113_OnTransition
2017-11-10 02:21:31 +01:00
.byte 0
2021-07-20 21:18:31 +02:00
Route113_OnResume:
setstepcallback STEP_CB_ASH
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route113_OnTransition:
clearflag FLAG_FORCE_MIRAGE_TOWER_VISIBLE
2019-11-12 07:57:39 +01:00
call Route113_EventScript_CheckSetAshWeather
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route113_EventScript_CheckSetAshWeather::
2018-05-19 18:02:43 +02:00
getplayerxy VAR_TEMP_0, VAR_TEMP_1
goto_if_lt VAR_TEMP_0, 19, Route113_EventScript_DontSetAshWeather
goto_if_gt VAR_TEMP_0, 84, Route113_EventScript_DontSetAshWeather
2019-12-02 01:19:47 +01:00
setweather WEATHER_VOLCANIC_ASH
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
Route113_EventScript_DontSetAshWeather::
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
Route113_EventScript_Gentleman::
2019-11-12 07:57:39 +01:00
msgbox Route113_Text_AshCanBeFashionedIntoGlass, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route113_EventScript_NinjaBoy::
2019-11-12 07:57:39 +01:00
msgbox Route113_Text_FunWalkingThroughAsh, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route113_EventScript_RouteSign111::
2019-11-12 07:57:39 +01:00
msgbox Route113_Text_RouteSign111, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route113_EventScript_RouteSignFallarbor::
2019-11-12 07:57:39 +01:00
msgbox Route113_Text_RouteSignFallarbor, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route113_EventScript_GlassWorkshopSign::
2019-11-12 07:57:39 +01:00
msgbox Route113_Text_GlassWorkshopSign, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route113_EventScript_TrainerTipsRegisterKeyItems::
2019-11-12 07:57:39 +01:00
msgbox Route113_Text_TrainerTipsRegisterKeyItems, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route113_EventScript_Jaylen::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_JAYLEN, Route113_Text_JaylenIntro, Route113_Text_JaylenDefeat
msgbox Route113_Text_JaylenPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route113_EventScript_Dillon::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_DILLON, Route113_Text_DillonIntro, Route113_Text_DillonDefeat
msgbox Route113_Text_DillonPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route113_EventScript_Madeline::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_MADELINE_1, Route113_Text_MadelineIntro, Route113_Text_MadelineDefeat, Route113_EventScript_RegisterMadeline
2017-12-01 21:25:13 +01:00
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, Route113_EventScript_RematchMadeline
2019-11-12 07:57:39 +01:00
msgbox Route113_Text_MadelinePostBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route113_EventScript_RegisterMadeline::
2019-11-01 08:41:55 +01:00
special PlayerFaceTrainerAfterBattle
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-12 07:57:39 +01:00
msgbox Route113_Text_MadelineRegister, MSGBOX_DEFAULT
2018-12-02 12:04:59 +01:00
register_matchcall TRAINER_MADELINE_1
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route113_EventScript_RematchMadeline::
2019-11-12 07:57:39 +01:00
trainerbattle_rematch TRAINER_MADELINE_1, Route113_Text_MadelineRematchIntro, Route113_Text_MadelineRematchDefeat
msgbox Route113_Text_MadelinePostRematch, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route113_EventScript_Lao::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_LAO_1, Route113_Text_LaoIntro, Route113_Text_LaoDefeat, Route113_EventScript_RegisterLao
2017-12-01 21:25:13 +01:00
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, Route113_EventScript_RematchLao
2019-11-12 07:57:39 +01:00
msgbox Route113_Text_LaoPostBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route113_EventScript_RegisterLao::
2019-11-01 08:41:55 +01:00
special PlayerFaceTrainerAfterBattle
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-12 07:57:39 +01:00
msgbox Route113_Text_LaoRegister, MSGBOX_DEFAULT
2018-12-02 12:04:59 +01:00
register_matchcall TRAINER_LAO_1
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route113_EventScript_RematchLao::
2019-11-12 07:57:39 +01:00
trainerbattle_rematch TRAINER_LAO_1, Route113_Text_LaoRematchIntro, Route113_Text_LaoRematchDefeat
msgbox Route113_Text_LaoPostRematch, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route113_EventScript_Lung::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_LUNG, Route113_Text_LungIntro, Route113_Text_LungDefeat
msgbox Route113_Text_LungPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route113_EventScript_Tori::
2019-11-12 07:57:39 +01:00
trainerbattle_double TRAINER_TORI_AND_TIA, Route113_Text_ToriIntro, Route113_Text_ToriDefeat, Route113_Text_ToriNotEnoughMons
msgbox Route113_Text_ToriPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route113_EventScript_Tia::
2019-11-12 07:57:39 +01:00
trainerbattle_double TRAINER_TORI_AND_TIA, Route113_Text_TiaIntro, Route113_Text_TiaDefeat, Route113_Text_TiaNotEnoughMons
msgbox Route113_Text_TiaPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route113_EventScript_Sophie::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_SOPHIE, Route113_Text_SophieIntro, Route113_Text_SophieDefeat
msgbox Route113_Text_SophiePostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route113_EventScript_Coby::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_COBY, Route113_Text_CobyIntro, Route113_Text_CobyDefeat
msgbox Route113_Text_CobyPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route113_EventScript_Lawrence::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_LAWRENCE, Route113_Text_LawrenceIntro, Route113_Text_LawrenceDefeat
msgbox Route113_Text_LawrencePostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route113_EventScript_Wyatt::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_WYATT, Route113_Text_WyattIntro, Route113_Text_WyattDefeat
msgbox Route113_Text_WyattPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route113_Text_AshCanBeFashionedIntoGlass:
2018-12-07 16:41:08 +01:00
.string "Wahahaha! Today's technology is a\n"
2017-11-10 02:21:31 +01:00
.string "wondrous thing!\p"
.string "Take this volcanic ash here.\n"
.string "It can be fashioned into glass.$"
2021-07-20 21:18:31 +02:00
Route113_Text_FunWalkingThroughAsh:
2018-12-07 16:41:08 +01:00
.string "It's fun walking through the volcano's\n"
2017-11-10 02:21:31 +01:00
.string "ashes on the ground and grass.\p"
2018-12-07 16:41:08 +01:00
.string "You can see where you walked--it's\n"
2017-11-10 02:21:31 +01:00
.string "really neat!$"
2021-07-20 21:18:31 +02:00
Route113_Text_RouteSign111:
2017-11-10 02:21:31 +01:00
.string "ROUTE 113\n"
.string "{RIGHT_ARROW} ROUTE 111$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route113_Text_RouteSignFallarbor:
2017-11-10 02:21:31 +01:00
.string "ROUTE 113\n"
.string "{LEFT_ARROW} FALLARBOR TOWN$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route113_Text_TrainerTipsRegisterKeyItems:
2017-11-10 02:21:31 +01:00
.string "TRAINER TIPS\p"
.string "You may register one of the KEY ITEMS\n"
.string "in your BAG as SELECT.\p"
.string "Simply press SELECT to use\n"
.string "the registered item conveniently.$"
2021-07-20 21:18:31 +02:00
Route113_Text_GlassWorkshopSign:
2017-11-10 02:21:31 +01:00
.string "GLASS WORKSHOP\n"
.string "“Turning Volcanic Ash into Glass Items”$"