pokeemerald/data/maps/Route114/scripts.inc

212 lines
7.0 KiB
PHP
Raw Normal View History

2017-11-10 02:21:31 +01:00
Route114_MapScripts:: @ 81F252F
map_script MAP_SCRIPT_ON_TRANSITION, Route114_OnTransition
2019-11-12 07:57:39 +01:00
map_script MAP_SCRIPT_ON_LOAD, Route114_OnLoad
map_script MAP_SCRIPT_ON_FRAME_TABLE, Route114_OnFrame
2017-11-10 02:21:31 +01:00
.byte 0
Route114_OnTransition: @ 81F253F
2019-12-02 01:19:47 +01:00
compare VAR_SHOULD_END_ABNORMAL_WEATHER, 1
call_if_eq AbnormalWeather_EventScript_HideMapNamePopup
compare VAR_ABNORMAL_WEATHER_LOCATION, ABNORMAL_WEATHER_ROUTE_114_NORTH
call_if_eq AbnormalWeather_StartGroudonWeather
compare VAR_ABNORMAL_WEATHER_LOCATION, ABNORMAL_WEATHER_ROUTE_114_SOUTH
call_if_eq AbnormalWeather_StartGroudonWeather
2017-11-10 02:21:31 +01:00
end
2019-11-12 07:57:39 +01:00
Route114_OnLoad: @ 81F2561
2019-12-02 01:19:47 +01:00
compare VAR_ABNORMAL_WEATHER_LOCATION, ABNORMAL_WEATHER_ROUTE_114_NORTH
call_if_eq AbnormalWeather_EventScript_PlaceTilesRoute114North
compare VAR_ABNORMAL_WEATHER_LOCATION, ABNORMAL_WEATHER_ROUTE_114_SOUTH
call_if_eq AbnormalWeather_EventScript_PlaceTilesRoute114South
2017-11-10 02:21:31 +01:00
end
2019-11-12 07:57:39 +01:00
Route114_OnFrame: @ 81F2578
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
2019-11-12 07:57:39 +01:00
Route114_EventScript_Man:: @ 81F2582
2017-11-10 02:21:31 +01:00
lock
faceplayer
dotimebasedevents
2019-11-12 07:57:39 +01:00
goto_if_set FLAG_DAILY_ROUTE_114_RECEIVED_BERRY, Route114_EventScript_ReceivedBerry
msgbox Route114_Text_LoveUsingBerryCrushShareBerry, MSGBOX_DEFAULT
random NUM_ROUTE_114_MAN_BERRIES
addvar VAR_RESULT, NUM_ROUTE_114_MAN_BERRIES_SKIPPED
2019-09-16 05:47:07 +02:00
addvar VAR_RESULT, FIRST_BERRY_INDEX
giveitem VAR_RESULT
2019-11-12 07:57:39 +01:00
compare VAR_RESULT, FALSE
goto_if_eq Common_EventScript_ShowBagIsFull
2019-01-03 02:54:55 +01:00
setflag FLAG_DAILY_ROUTE_114_RECEIVED_BERRY
2019-11-12 07:57:39 +01:00
msgbox Route114_Text_TryBerryCrushWithFriends, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2019-11-12 07:57:39 +01:00
Route114_EventScript_ReceivedBerry:: @ 81F25C7
msgbox Route114_Text_FunToThinkAboutBerries, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2019-11-12 07:57:39 +01:00
Route114_EventScript_RoarGentleman:: @ 81F25D1
2017-11-10 02:21:31 +01:00
lock
faceplayer
2019-11-12 07:57:39 +01:00
goto_if_set FLAG_RECEIVED_TM05, Route114_EventScript_ReceivedRoar
msgbox Route114_Text_AllMyMonDoesIsRoarTakeThis, MSGBOX_DEFAULT
giveitem ITEM_TM05
2019-11-12 07:57:39 +01:00
compare VAR_RESULT, FALSE
goto_if_eq Common_EventScript_ShowBagIsFull
2019-01-02 22:12:43 +01:00
setflag FLAG_RECEIVED_TM05
2019-11-12 07:57:39 +01:00
msgbox Route114_Text_ExplainRoar, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2019-11-12 07:57:39 +01:00
Route114_EventScript_ReceivedRoar:: @ 81F2608
msgbox Route114_Text_ExplainRoar, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2019-11-12 07:57:39 +01:00
Route114_EventScript_Poochyena:: @ 81F2612
2017-11-10 02:21:31 +01:00
lock
faceplayer
waitse
playmoncry SPECIES_POOCHYENA, 2
2019-11-12 07:57:39 +01:00
msgbox Route114_Text_Poochyena, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
waitmoncry
release
end
2019-11-12 07:57:39 +01:00
Route114_EventScript_MeteorFallsSign:: @ 81F2625
msgbox Route114_Text_MeteorFallsSign, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
2019-11-12 07:57:39 +01:00
Route114_EventScript_FossilManiacsHouseSign:: @ 81F262E
msgbox Route114_Text_FossilManiacsHouseSign, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
2019-11-12 07:57:39 +01:00
Route114_EventScript_LanettesHouseSign:: @ 81F2637
msgbox Route114_Text_LanettesHouse, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
2019-11-12 07:57:39 +01:00
Route114_EventScript_Lenny:: @ 81F2640
trainerbattle_single TRAINER_LENNY, Route114_Text_LennyIntro, Route114_Text_LennyDefeat
msgbox Route114_Text_LennyPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2019-11-12 07:57:39 +01:00
Route114_EventScript_Lucas:: @ 81F2657
trainerbattle_single TRAINER_LUCAS_1, Route114_Text_LucasIntro, Route114_Text_LucasDefeat
msgbox Route114_Text_LucasPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2019-11-12 07:57:39 +01:00
Route114_EventScript_Shane:: @ 81F266E
trainerbattle_single TRAINER_SHANE, Route114_Text_ShaneIntro, Route114_Text_ShaneDefeat
msgbox Route114_Text_ShanePostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2019-11-12 07:57:39 +01:00
Route114_EventScript_Nancy:: @ 81F2685
trainerbattle_single TRAINER_NANCY, Route114_Text_NancyIntro, Route114_Text_NancyDefeat
msgbox Route114_Text_NancyPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2019-11-12 07:57:39 +01:00
Route114_EventScript_Steve:: @ 81F269C
trainerbattle_single TRAINER_STEVE_1, Route114_Text_SteveIntro, Route114_Text_SteveDefeat, Route114_EventScript_RegisterSteve
2017-12-01 21:25:13 +01:00
specialvar VAR_RESULT, ShouldTryRematchBattle
2019-11-12 07:57:39 +01:00
compare VAR_RESULT, TRUE
goto_if_eq Route114_EventScript_RematchSteve
msgbox Route114_Text_StevePostBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2019-11-12 07:57:39 +01:00
Route114_EventScript_RegisterSteve:: @ 81F26C8
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 Route114_Text_SteveRegister, MSGBOX_DEFAULT
2018-12-02 12:04:59 +01:00
register_matchcall TRAINER_STEVE_1
2017-11-10 02:21:31 +01:00
release
end
2019-11-12 07:57:39 +01:00
Route114_EventScript_RematchSteve:: @ 81F26E7
trainerbattle_rematch TRAINER_STEVE_1, Route114_Text_SteveRematchIntro, Route114_Text_SteveRematchDefeat
msgbox Route114_Text_StevePostRematch, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2019-11-12 07:57:39 +01:00
Route114_EventScript_Bernie:: @ 81F26FE
trainerbattle_single TRAINER_BERNIE_1, Route114_Text_BernieIntro, Route114_Text_BernieDefeat, Route114_EventScript_RegisterBernie
2017-12-01 21:25:13 +01:00
specialvar VAR_RESULT, ShouldTryRematchBattle
2019-11-12 07:57:39 +01:00
compare VAR_RESULT, TRUE
goto_if_eq Route114_EventScript_RematchBernie
msgbox Route114_Text_BerniePostBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2019-11-12 07:57:39 +01:00
Route114_EventScript_RegisterBernie:: @ 81F272A
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 Route114_Text_BernieRegister, MSGBOX_DEFAULT
2018-12-02 12:04:59 +01:00
register_matchcall TRAINER_BERNIE_1
2017-11-10 02:21:31 +01:00
release
end
2019-11-12 07:57:39 +01:00
Route114_EventScript_RematchBernie:: @ 81F2749
trainerbattle_rematch TRAINER_BERNIE_1, Route114_Text_BernieRematchIntro, Route114_Text_BernieRematchDefeat
msgbox Route114_Text_BerniePostRematch, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2019-11-12 07:57:39 +01:00
Route114_EventScript_Claude:: @ 81F2760
trainerbattle_single TRAINER_CLAUDE, Route114_Text_ClaudeIntro, Route114_Text_ClaudeDefeat
msgbox Route114_Text_ClaudePostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2019-11-12 07:57:39 +01:00
Route114_EventScript_Nolan:: @ 81F2777
trainerbattle_single TRAINER_NOLAN, Route114_Text_NolanIntro, Route114_Text_NolanDefeat
msgbox Route114_Text_NolanPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2019-11-12 07:57:39 +01:00
Route114_EventScript_Tyra:: @ 81F278E
trainerbattle_double TRAINER_TYRA_AND_IVY, Route114_Text_TyraIntro, Route114_Text_TyraDefeat, Route114_Text_TyraNotEnoughMons
msgbox Route114_Text_TyraPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2019-11-12 07:57:39 +01:00
Route114_EventScript_Ivy:: @ 81F27A9
trainerbattle_double TRAINER_TYRA_AND_IVY, Route114_Text_IvyIntro, Route114_Text_IvyDefeat, Route114_Text_IvyNotEnoughMons
msgbox Route114_Text_IvyPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2019-11-12 07:57:39 +01:00
Route114_EventScript_Angelina:: @ 81F27C4
trainerbattle_single TRAINER_ANGELINA, Route114_Text_AngelinaIntro, Route114_Text_AngelinaDefeat
msgbox Route114_Text_AngelinaPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2019-11-12 07:57:39 +01:00
Route114_EventScript_Charlotte:: @ 81F27DB
trainerbattle_single TRAINER_CHARLOTTE, Route114_Text_CharlotteIntro, Route114_Text_CharlotteDefeat
msgbox Route114_Text_CharlottePostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2019-11-12 07:57:39 +01:00
Route114_EventScript_Kai:: @ 81F27F2
trainerbattle_single TRAINER_KAI, Route114_Text_KaiIntro, Route114_Text_KaiDefeat
msgbox Route114_Text_KaiPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2019-11-12 07:57:39 +01:00
Route114_Text_AllMyMonDoesIsRoarTakeThis: @ 81F2809
2017-11-10 02:21:31 +01:00
.string "All my POKéMON does is ROAR…\n"
.string "No one dares to come near me…\p"
.string "Sigh… If you would, please take\n"
.string "this TM away…$"
2019-11-12 07:57:39 +01:00
Route114_Text_ExplainRoar: @ 81F2872
2017-11-10 02:21:31 +01:00
.string "TM05 contains ROAR.\n"
.string "A ROAR sends POKéMON scurrying.$"
2019-11-12 07:57:39 +01:00
Route114_Text_Poochyena: @ 81F28A6
2017-11-10 02:21:31 +01:00
.string "Bow! Bowwow!$"
2019-11-12 07:57:39 +01:00
Route114_Text_MeteorFallsSign: @ 81F28B3
2017-11-10 02:21:31 +01:00
.string "METEOR FALLS\n"
.string "RUSTBORO CITY THROUGH HERE$"
2019-11-12 07:57:39 +01:00
Route114_Text_FossilManiacsHouseSign: @ 81F28DB
2018-12-07 16:41:08 +01:00
.string "FOSSIL MANIAC'S HOUSE\n"
2017-11-10 02:21:31 +01:00
.string "“Fossils gratefully accepted!”$"
2019-11-12 07:57:39 +01:00
Route114_Text_LanettesHouse: @ 81F2910
2018-12-07 16:41:08 +01:00
.string "LANETTE'S HOUSE$"
2017-11-10 02:21:31 +01:00