pokeemerald/data/maps/Route105/scripts.inc

98 lines
3.7 KiB
PHP
Raw Permalink Normal View History

2021-07-20 21:18:31 +02:00
Route105_MapScripts::
2019-10-25 03:04:02 +02:00
map_script MAP_SCRIPT_ON_LOAD, Route105_OnLoad
map_script MAP_SCRIPT_ON_TRANSITION, Route105_OnTransition
2019-10-25 03:04:02 +02:00
map_script MAP_SCRIPT_ON_FRAME_TABLE, Route105_OnFrame
2017-11-10 02:21:31 +01:00
.byte 0
2021-07-20 21:18:31 +02:00
Route105_OnLoad:
2019-10-25 03:04:02 +02:00
call_if_unset FLAG_REGI_DOORS_OPENED, Route105_CloseRegiEntrance
call_if_eq VAR_ABNORMAL_WEATHER_LOCATION, ABNORMAL_WEATHER_ROUTE_105_NORTH, AbnormalWeather_EventScript_PlaceTilesRoute105North
call_if_eq VAR_ABNORMAL_WEATHER_LOCATION, ABNORMAL_WEATHER_ROUTE_105_SOUTH, AbnormalWeather_EventScript_PlaceTilesRoute105South
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route105_CloseRegiEntrance::
2021-11-16 23:12:16 +01:00
setmetatile 9, 19, METATILE_General_RockWall_RockBase, TRUE
setmetatile 9, 20, METATILE_General_RockWall_SandBase, TRUE
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
Route105_OnTransition:
call_if_eq VAR_SHOULD_END_ABNORMAL_WEATHER, 1, AbnormalWeather_EventScript_HideMapNamePopup
call_if_eq VAR_ABNORMAL_WEATHER_LOCATION, ABNORMAL_WEATHER_ROUTE_105_NORTH, AbnormalWeather_StartKyogreWeather
call_if_eq VAR_ABNORMAL_WEATHER_LOCATION, ABNORMAL_WEATHER_ROUTE_105_SOUTH, AbnormalWeather_StartKyogreWeather
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route105_OnFrame:
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
2021-07-20 21:18:31 +02:00
Route105_EventScript_Foster::
2019-10-25 03:04:02 +02:00
trainerbattle_single TRAINER_FOSTER, Route105_Text_FosterIntro, Route105_Text_FosterDefeated
msgbox Route105_Text_FosterPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route105_EventScript_Luis::
2019-10-25 03:04:02 +02:00
trainerbattle_single TRAINER_LUIS, Route105_Text_LuisIntro, Route105_Text_LuisDefeated
msgbox Route105_Text_LuisPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route105_EventScript_Dominik::
2019-10-25 03:04:02 +02:00
trainerbattle_single TRAINER_DOMINIK, Route105_Text_DominikIntro, Route105_Text_DominikDefeated
msgbox Route105_Text_DominikPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route105_EventScript_Beverly::
2019-10-25 03:04:02 +02:00
trainerbattle_single TRAINER_BEVERLY, Route105_Text_BeverlyIntro, Route105_Text_BeverlyDefeated
msgbox Route105_Text_PostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route105_EventScript_Imani::
2019-10-25 03:04:02 +02:00
trainerbattle_single TRAINER_IMANI, Route105_Text_ImaniIntro, Route105_Text_ImaniDefeated
msgbox Route105_Text_ImaniPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route105_EventScript_Josue::
2019-10-25 03:04:02 +02:00
trainerbattle_single TRAINER_JOSUE, Route105_Text_JosueIntro, Route105_Text_JosueDefeated
msgbox Route105_Text_JosuePostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route105_EventScript_Andres::
2019-10-25 03:04:02 +02:00
trainerbattle_single TRAINER_ANDRES_1, Route105_Text_AndresIntro, Route105_Text_AndresDefeated, Route105_EventScript_AndresRegisterMatchCallAfterBattle
2017-12-01 21:25:13 +01:00
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, Route105_EventScript_AndresRematch
2019-10-25 03:04:02 +02:00
msgbox Route105_Text_AndresPostBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route105_EventScript_AndresRegisterMatchCallAfterBattle::
2019-11-01 08:41:55 +01:00
special PlayerFaceTrainerAfterBattle
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-10-25 03:04:02 +02:00
msgbox Route105_Text_AndresRegister, MSGBOX_DEFAULT
2018-12-02 12:04:59 +01:00
register_matchcall TRAINER_ANDRES_1
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route105_EventScript_AndresRematch::
2019-10-25 03:04:02 +02:00
trainerbattle_rematch TRAINER_ANDRES_1, Route105_Text_AndresRematchIntro, Route105_Text_AndresRematchDefeated
msgbox Route105_Text_AndresRematchPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route104_Text_DadPokenavCall:
.string "… … … … … …\n"
.string "… … … … … Beep!\p"
.string "DAD: Oh, {PLAYER}?\p"
.string "… … … … … …\n"
.string "Where are you now?\l"
.string "It sounds windy wherever you are.\p"
2018-12-07 16:41:08 +01:00
.string "I just heard from DEVON's MR. STONE\n"
.string "about your POKéNAV, so I decided\l"
.string "to give you a call.\p"
2018-12-07 16:41:08 +01:00
.string "It sounds like you're doing fine,\n"
.string "so that's fine with me.\p"
.string "You take care now.\p"
.string "… … … … … …\n"
.string "… … … … … Click!$"
2021-07-20 21:18:31 +02:00
Route104_Text_RegisteredDadInPokenav:
.string "Registered DAD NORMAN\n"
.string "in the POKéNAV.$"