pokeemerald/data/maps/Route118/scripts.inc

302 lines
8.5 KiB
PHP
Raw Normal View History

.set LOCALID_STEVEN, 19
2021-07-20 21:18:31 +02:00
Route118_MapScripts::
map_script MAP_SCRIPT_ON_TRANSITION, Route118_OnTransition
2019-11-12 07:57:39 +01:00
map_script MAP_SCRIPT_ON_LOAD, Route118_OnLoad
map_script MAP_SCRIPT_ON_FRAME_TABLE, Route118_OnFrame
2017-11-10 02:21:31 +01:00
.byte 0
2021-07-20 21:18:31 +02:00
Route118_OnTransition:
2019-10-23 01:44:38 +02:00
call GabbyAndTy_EventScript_UpdateLocation
call_if_eq VAR_SHOULD_END_ABNORMAL_WEATHER, 1, AbnormalWeather_EventScript_HideMapNamePopup
call_if_eq VAR_ABNORMAL_WEATHER_LOCATION, ABNORMAL_WEATHER_ROUTE_118_EAST, AbnormalWeather_StartGroudonWeather
call_if_eq VAR_ABNORMAL_WEATHER_LOCATION, ABNORMAL_WEATHER_ROUTE_118_WEST, AbnormalWeather_StartGroudonWeather
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route118_OnLoad:
call_if_eq VAR_ABNORMAL_WEATHER_LOCATION, ABNORMAL_WEATHER_ROUTE_118_EAST, AbnormalWeather_EventScript_PlaceTilesRoute118East
call_if_eq VAR_ABNORMAL_WEATHER_LOCATION, ABNORMAL_WEATHER_ROUTE_118_WEST, AbnormalWeather_EventScript_PlaceTilesRoute118West
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route118_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
Route118_EventScript_GoodRodFisherman::
2017-11-10 02:21:31 +01:00
lock
faceplayer
2019-11-12 07:57:39 +01:00
goto_if_set FLAG_RECEIVED_GOOD_ROD, Route118_EventScript_ReceivedGoodRod
msgbox Route118_Text_YouAgreeGoodRodIsGood, MSGBOX_YESNO
goto_if_eq VAR_RESULT, YES, Route118_EventScript_ReceiveGoodRod
goto_if_eq VAR_RESULT, NO, Route118_EventScript_DeclineGoodRod
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route118_EventScript_ReceiveGoodRod::
2019-11-12 07:57:39 +01:00
msgbox Route118_Text_IdenticalMindsTakeThis, MSGBOX_DEFAULT
giveitem ITEM_GOOD_ROD
2019-01-02 22:12:43 +01:00
setflag FLAG_RECEIVED_GOOD_ROD
2019-11-12 07:57:39 +01:00
msgbox Route118_Text_TryYourLuckFishing, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route118_EventScript_DeclineGoodRod::
2019-11-12 07:57:39 +01:00
msgbox Route118_Text_DontYouLikeToFish, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route118_EventScript_ReceivedGoodRod::
2019-11-12 07:57:39 +01:00
msgbox Route118_Text_TryCatchingMonWithGoodRod, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route118_EventScript_Girl::
2019-11-12 07:57:39 +01:00
msgbox Route118_Text_CanCrossRiversWithSurf, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route118_EventScript_RouteSignMauville::
2019-11-12 07:57:39 +01:00
msgbox Route118_Text_RouteSignMauville, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route118_EventScript_RouteSign119::
2019-11-12 07:57:39 +01:00
msgbox Route118_Text_RouteSign119, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route118_EventScript_StevenTrigger0::
2017-11-10 02:21:31 +01:00
lockall
setvar VAR_0x8008, 0
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_FaceUp
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement LOCALID_STEVEN, Route118_Movement_StevenApproachLedge0
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-12 07:57:39 +01:00
goto Route118_EventScript_StevenTrigger
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route118_EventScript_StevenTrigger1::
2017-11-10 02:21:31 +01:00
lockall
setvar VAR_0x8008, 1
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_FaceUp
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-12 07:57:39 +01:00
goto Route118_EventScript_StevenTrigger
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route118_EventScript_StevenTrigger2::
2017-11-10 02:21:31 +01:00
lockall
setvar VAR_0x8008, 2
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_FaceUp
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement LOCALID_STEVEN, Route118_Movement_StevenApproachLedge2
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-12 07:57:39 +01:00
goto Route118_EventScript_StevenTrigger
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route118_EventScript_StevenTrigger::
2020-08-21 00:02:00 +02:00
playse SE_LEDGE
applymovement LOCALID_STEVEN, Route118_Movement_StevenJumpLedge
2017-11-10 02:21:31 +01:00
waitmovement 0
delay 30
2019-11-12 07:57:39 +01:00
msgbox Route118_Text_StevenQuestions, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
call_if_eq VAR_0x8008, 0, Route118_EventScript_StevenExit0
call_if_eq VAR_0x8008, 1, Route118_EventScript_StevenExit1
call_if_eq VAR_0x8008, 2, Route118_EventScript_StevenExit2
setvar VAR_ROUTE118_STATE, 1
removeobject LOCALID_STEVEN
2017-11-10 02:21:31 +01:00
releaseall
end
2021-07-20 21:18:31 +02:00
Route118_EventScript_StevenExit0::
applymovement OBJ_EVENT_ID_PLAYER, Route118_Movement_PlayerWatchStevenExit
applymovement LOCALID_STEVEN, Route118_Movement_StevenExit0
2017-11-10 02:21:31 +01:00
waitmovement 0
return
2021-07-20 21:18:31 +02:00
Route118_EventScript_StevenExit1::
applymovement OBJ_EVENT_ID_PLAYER, Route118_Movement_PlayerWatchStevenExit
applymovement LOCALID_STEVEN, Route118_Movement_StevenExit1
2017-11-10 02:21:31 +01:00
waitmovement 0
return
2021-07-20 21:18:31 +02:00
Route118_EventScript_StevenExit2::
applymovement OBJ_EVENT_ID_PLAYER, Route118_Movement_PlayerWatchStevenExit
applymovement LOCALID_STEVEN, Route118_Movement_StevenExit2
2017-11-10 02:21:31 +01:00
waitmovement 0
return
2021-07-20 21:18:31 +02:00
Route118_Movement_PlayerWatchStevenExit:
delay_16
walk_in_place_faster_right
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
Route118_Movement_StevenApproachLedge0:
walk_left
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
Route118_Movement_StevenApproachLedge2:
walk_right
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
Route118_Movement_StevenJumpLedge:
jump_2_down
delay_16
walk_down
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
Route118_Movement_StevenExit0:
walk_right
walk_right
walk_right
walk_right
walk_right
walk_right
walk_right
walk_right
walk_right
walk_right
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
Route118_Movement_StevenExit1:
walk_right
walk_right
walk_right
walk_right
walk_right
walk_right
walk_right
walk_right
walk_right
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
Route118_Movement_StevenExit2:
walk_right
walk_right
walk_right
walk_right
walk_right
walk_right
walk_right
walk_right
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
Route118_EventScript_Rose::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_ROSE_1, Route118_Text_RoseIntro, Route118_Text_RoseDefeat, Route118_EventScript_RegisterRose
2017-12-01 21:25:13 +01:00
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, Route118_EventScript_RematchRose
2019-11-12 07:57:39 +01:00
msgbox Route118_Text_RosePostBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route118_EventScript_RegisterRose::
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 Route118_Text_RoseRegister, MSGBOX_DEFAULT
2018-12-02 12:04:59 +01:00
register_matchcall TRAINER_ROSE_1
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route118_EventScript_RematchRose::
2019-11-12 07:57:39 +01:00
trainerbattle_rematch TRAINER_ROSE_1, Route118_Text_RoseRematchIntro, Route118_Text_RoseRematchDefeat
msgbox Route118_Text_RosePostRematch, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route118_EventScript_Barny::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_BARNY, Route118_Text_BarnyIntro, Route118_Text_BarnyDefeat
msgbox Route118_Text_BarnyPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route118_EventScript_Wade::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_WADE, Route118_Text_WadeIntro, Route118_Text_WadeDefeat
msgbox Route118_Text_WadePostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route118_EventScript_Dalton::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_DALTON_1, Route118_Text_DaltonIntro, Route118_Text_DaltonDefeat, Route118_EventScript_RegisterDalton
2017-12-01 21:25:13 +01:00
specialvar VAR_RESULT, ShouldTryRematchBattle
goto_if_eq VAR_RESULT, TRUE, Route118_EventScript_RematchDalton
2019-11-12 07:57:39 +01:00
msgbox Route118_Text_DaltonPostBattle, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route118_EventScript_RegisterDalton::
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 Route118_Text_DaltonRegister, MSGBOX_DEFAULT
2018-12-02 12:04:59 +01:00
register_matchcall TRAINER_DALTON_1
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
Route118_EventScript_RematchDalton::
2019-11-12 07:57:39 +01:00
trainerbattle_rematch TRAINER_DALTON_1, Route118_Text_DaltonRematchIntro, Route118_Text_DaltonRematchDefeat
msgbox Route118_Text_DaltonPostRematch, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route118_EventScript_Perry::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_PERRY, Route118_Text_PerryIntro, Route118_Text_PerryDefeat
msgbox Route118_Text_PerryPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route118_EventScript_Chester::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_CHESTER, Route118_Text_ChesterIntro, Route118_Text_ChesterDefeat
msgbox Route118_Text_ChesterPostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route118_EventScript_Deandre::
2019-11-12 07:57:39 +01:00
trainerbattle_single TRAINER_DEANDRE, Route118_Text_DeandreIntro, Route118_Text_DeandreDefeat
msgbox Route118_Text_DeandrePostBattle, MSGBOX_AUTOCLOSE
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
Route118_Text_StevenQuestions:
2017-11-10 02:21:31 +01:00
.string "STEVEN: Hi, {PLAYER}{KUN}!\p"
2018-12-07 16:41:08 +01:00
.string "It's me, STEVEN!\n"
2017-11-10 02:21:31 +01:00
.string "We met in the cave near DEWFORD.\p"
.string "Have you met many kinds of POKéMON\n"
.string "since I last saw you?\p"
.string "There are many, many kinds of POKéMON\n"
.string "in this wide world of ours.\p"
.string "If you wanted to raise only your\n"
2018-12-07 16:41:08 +01:00
.string "favorites, that's fine.\p"
2017-11-10 02:21:31 +01:00
.string "Perhaps you find it more fun to raise\n"
.string "all sorts of POKéMON.\p"
.string "As a TRAINER of POKéMON,\n"
.string "what do you think?\p"
2018-12-07 16:41:08 +01:00
.string "Of course, it's not any of my business.\p"
2017-11-10 02:21:31 +01:00
.string "It would be nice if we were to meet\n"
.string "again somewhere.$"
2021-07-20 21:18:31 +02:00
Route118_Text_YouAgreeGoodRodIsGood:
2017-11-10 02:21:31 +01:00
.string "Hmm!\n"
.string "A GOOD ROD is really good!\p"
2018-12-07 16:41:08 +01:00
.string "Wouldn't you agree?$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route118_Text_IdenticalMindsTakeThis:
2017-11-10 02:21:31 +01:00
.string "Hmm!\n"
2018-12-07 16:41:08 +01:00
.string "We're of identical minds!\p"
2017-11-10 02:21:31 +01:00
.string "Hmm!\n"
.string "Take this GOOD ROD!$"
2021-07-20 21:18:31 +02:00
Route118_Text_TryYourLuckFishing:
2018-12-07 16:41:08 +01:00
.string "Wherever there's water, try your luck\n"
2017-11-10 02:21:31 +01:00
.string "at fishing.$"
2021-07-20 21:18:31 +02:00
Route118_Text_DontYouLikeToFish:
2018-12-07 16:41:08 +01:00
.string "Don't you like to fish?$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route118_Text_TryCatchingMonWithGoodRod:
2017-11-10 02:21:31 +01:00
.string "Try catching all sorts of POKéMON\n"
.string "with your GOOD ROD.$"
2021-07-20 21:18:31 +02:00
Route118_Text_CanCrossRiversWithSurf:
2018-12-07 16:41:08 +01:00
.string "Even if there isn't a boat, you can\n"
2017-11-10 02:21:31 +01:00
.string "cross rivers and the sea if you have\l"
.string "a POKéMON that knows SURF.\p"
.string "POKéMON can be counted on to do so\n"
.string "much!$"
2021-07-20 21:18:31 +02:00
Route118_Text_RouteSignMauville:
2017-11-10 02:21:31 +01:00
.string "ROUTE 118\n"
.string "{LEFT_ARROW} MAUVILLE CITY$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
Route118_Text_RouteSign119:
2017-11-10 02:21:31 +01:00
.string "ROUTE 118\n"
.string "{UP_ARROW} ROUTE 119$"
2017-11-10 02:21:31 +01:00