pokeemerald/data/maps/MossdeepCity/scripts.inc

436 lines
11 KiB
PHP
Raw Normal View History

.set LOCALID_GRUNT_1, 10
.set LOCALID_GRUNT_2, 11
.set LOCALID_GRUNT_3, 12
.set LOCALID_GRUNT_4, 13
.set LOCALID_MAXIE, 14
.set LOCALID_SCOTT, 16
2021-07-20 21:18:31 +02:00
MossdeepCity_MapScripts::
map_script MAP_SCRIPT_ON_TRANSITION, MossdeepCity_OnTransition
2017-11-10 02:21:31 +01:00
.byte 0
2021-07-20 21:18:31 +02:00
MossdeepCity_OnTransition:
2019-01-02 22:12:43 +01:00
clearflag FLAG_MOSSDEEP_GYM_SWITCH_1
clearflag FLAG_MOSSDEEP_GYM_SWITCH_2
clearflag FLAG_MOSSDEEP_GYM_SWITCH_3
clearflag FLAG_MOSSDEEP_GYM_SWITCH_4
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
MossdeepCity_EventScript_PokefanF::
2017-11-10 02:21:31 +01:00
lock
faceplayer
2019-11-09 17:28:28 +01:00
goto_if_set FLAG_RECEIVED_HM08, MossdeepCity_EventScript_PokefanFMagmaGone
msgbox MossdeepCity_Text_SpaceCenterReceivedLetter, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
MossdeepCity_EventScript_PokefanFMagmaGone::
2019-11-09 17:28:28 +01:00
msgbox MossdeepCity_Text_SpaceCenterLaunchingRockets, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
MossdeepCity_EventScript_Sailor::
2017-11-10 02:21:31 +01:00
lock
faceplayer
2019-11-09 17:28:28 +01:00
goto_if_set FLAG_RECEIVED_HM08, MossdeepCity_EventScript_SailorMagmaGone
msgbox MossdeepCity_Text_MossdeepTargetedByMagma, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
MossdeepCity_EventScript_SailorMagmaGone::
2019-11-09 17:28:28 +01:00
msgbox MossdeepCity_Text_FeelReliefOnLand, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
MossdeepCity_EventScript_NinjaBoy::
2019-11-09 17:28:28 +01:00
msgbox MossdeepCity_Text_WailmerWatching, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
MossdeepCity_EventScript_ExpertM::
2019-11-09 17:28:28 +01:00
msgbox MossdeepCity_Text_LifeNeedsSeaToLive, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
MossdeepCity_EventScript_Girl::
2019-11-09 17:28:28 +01:00
msgbox MossdeepCity_Text_NiceIfWorldCoveredByFlowers, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
MossdeepCity_EventScript_Woman::
2019-11-09 17:28:28 +01:00
msgbox MossdeepCity_Text_SpecialSpaceCenterRock, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
MossdeepCity_EventScript_WhiteRock::
2019-11-09 17:28:28 +01:00
msgbox MossdeepCity_Text_ItsAWhiteRock, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
MossdeepCity_EventScript_GymSign::
2019-11-09 17:28:28 +01:00
msgbox MossdeepCity_Text_GymSign, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
MossdeepCity_EventScript_CitySign::
2019-11-09 17:28:28 +01:00
msgbox MossdeepCity_Text_CitySign, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
MossdeepCity_EventScript_SpaceCenterSign::
2019-11-09 17:28:28 +01:00
msgbox MossdeepCity_Text_SpaceCenterSign, MSGBOX_SIGN
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
MossdeepCity_EventScript_VisitedMossdeep::
2017-11-10 02:21:31 +01:00
setflag FLAG_VISITED_MOSSDEEP_CITY
2018-05-19 18:02:43 +02:00
setvar VAR_TEMP_1, 1
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
MossdeepCity_EventScript_TeamMagmaEnterSpaceCenter::
2017-11-10 02:21:31 +01:00
lockall
applymovement LOCALID_MAXIE, MossdeepCity_Movement_MaxieGestureToSpaceCenter
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement LOCALID_GRUNT_1, MossdeepCity_Movement_GruntFaceSpaceCenter
applymovement LOCALID_GRUNT_2, MossdeepCity_Movement_GruntFaceSpaceCenter
applymovement LOCALID_GRUNT_3, MossdeepCity_Movement_GruntFaceSpaceCenter
applymovement LOCALID_GRUNT_4, MossdeepCity_Movement_GruntFaceSpaceCenter
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement LOCALID_MAXIE, MossdeepCity_Movement_MaxieEnterSpaceCenter
applymovement LOCALID_GRUNT_1, MossdeepCity_Movement_Grunt1EnterSpaceCenter
applymovement LOCALID_GRUNT_2, MossdeepCity_Movement_Grunt2EnterSpaceCenter
applymovement LOCALID_GRUNT_3, MossdeepCity_Movement_Grunt3EnterSpaceCenter
applymovement LOCALID_GRUNT_4, MossdeepCity_Movement_Grunt4EnterSpaceCenter
2017-11-10 02:21:31 +01:00
waitmovement 0
removeobject LOCALID_MAXIE
removeobject LOCALID_GRUNT_1
removeobject LOCALID_GRUNT_2
removeobject LOCALID_GRUNT_3
removeobject LOCALID_GRUNT_4
2017-11-10 02:21:31 +01:00
delay 30
2019-08-05 17:23:45 +02:00
setvar VAR_MOSSDEEP_CITY_STATE, 2
2018-10-18 21:28:59 +02:00
setflag FLAG_HIDE_MOSSDEEP_CITY_TEAM_MAGMA
2017-11-10 02:21:31 +01:00
releaseall
end
2021-07-20 21:18:31 +02:00
MossdeepCity_Movement_MaxieGestureToSpaceCenter:
delay_16
face_right
delay_16
delay_16
delay_16
delay_16
face_left
delay_16
delay_16
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
MossdeepCity_Movement_GruntFaceSpaceCenter:
face_right
delay_16
delay_16
delay_16
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
MossdeepCity_Movement_MaxieEnterSpaceCenter:
walk_down
walk_right
walk_right
walk_down
walk_down
walk_down
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
MossdeepCity_Movement_Grunt1EnterSpaceCenter:
delay_16
delay_8
walk_down
walk_down
walk_down
walk_right
walk_right
walk_right
walk_down
walk_down
walk_down
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
MossdeepCity_Movement_Grunt2EnterSpaceCenter:
delay_16
delay_8
walk_down
walk_down
walk_right
walk_right
walk_right
walk_down
walk_down
walk_down
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
MossdeepCity_Movement_Grunt3EnterSpaceCenter:
delay_16
delay_8
walk_down
walk_right
walk_right
walk_right
walk_down
walk_down
walk_down
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
MossdeepCity_Movement_Grunt4EnterSpaceCenter:
delay_16
delay_8
walk_right
walk_right
walk_right
walk_down
walk_down
walk_down
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
MossdeepCity_EventScript_Man::
2017-11-10 02:21:31 +01:00
lock
faceplayer
2019-11-09 17:28:28 +01:00
msgbox MossdeepCity_Text_SurfExhilarating, MSGBOX_DEFAULT
applymovement VAR_LAST_TALKED, Common_Movement_FaceOriginalDirection
2017-11-10 02:21:31 +01:00
waitmovement 0
release
end
2021-07-20 21:18:31 +02:00
MossdeepCity_EventScript_KingsRockBoy::
2017-11-10 02:21:31 +01:00
lock
faceplayer
2019-11-09 17:28:28 +01:00
goto_if_set FLAG_RECEIVED_KINGS_ROCK, MossdeepCity_EventScript_ReceivedKingsRock
msgbox MossdeepCity_Text_WantKingsRockStevenGaveMe, MSGBOX_YESNO
goto_if_eq VAR_RESULT, NO, MossdeepCity_EventScript_DeclineKingsRock
2019-11-09 17:28:28 +01:00
msgbox MossdeepCity_Text_YouCanKeepIt, MSGBOX_DEFAULT
giveitem ITEM_KINGS_ROCK
goto_if_eq VAR_RESULT, FALSE, Common_EventScript_ShowBagIsFull
2019-01-02 22:12:43 +01:00
setflag FLAG_RECEIVED_KINGS_ROCK
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
MossdeepCity_EventScript_ReceivedKingsRock::
2019-11-09 17:28:28 +01:00
msgbox MossdeepCity_Text_StevensHouseOverThere, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
MossdeepCity_EventScript_DeclineKingsRock::
2019-11-09 17:28:28 +01:00
msgbox MossdeepCity_Text_WhatToDoWithWeirdRock, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
MossdeepCity_EventScript_BlackBelt::
2019-11-09 17:28:28 +01:00
msgbox MossdeepCity_Text_SootopolisNewGymLeader, MSGBOX_NPC
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
MossdeepCity_EventScript_Scott::
2017-11-10 02:21:31 +01:00
lock
faceplayer
2019-11-09 17:28:28 +01:00
msgbox MossdeepCity_Text_ScottSomethingWrongWithTown, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
call_if_eq VAR_FACING, DIR_NORTH, MossdeepCity_EventScript_ScottExitNorth
call_if_eq VAR_FACING, DIR_EAST, MossdeepCity_EventScript_ScottExitEast
addvar VAR_SCOTT_STATE, 1
removeobject LOCALID_SCOTT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
MossdeepCity_EventScript_ScottExitNorth::
applymovement OBJ_EVENT_ID_PLAYER, MossdeepCity_Movement_PlayerWatchScottExit
applymovement LOCALID_SCOTT, MossdeepCity_Movement_ScottExitNorth
2017-11-10 02:21:31 +01:00
waitmovement 0
return
2021-07-20 21:18:31 +02:00
MossdeepCity_EventScript_ScottExitEast::
applymovement OBJ_EVENT_ID_PLAYER, MossdeepCity_Movement_PlayerWatchScottExit
applymovement LOCALID_SCOTT, MossdeepCity_Movement_ScottExitEast
2017-11-10 02:21:31 +01:00
waitmovement 0
return
2021-07-20 21:18:31 +02:00
MossdeepCity_Movement_PlayerWatchScottExit:
delay_16
delay_16
walk_in_place_faster_left
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
MossdeepCity_Movement_ScottExitNorth:
walk_left
walk_left
walk_left
walk_left
walk_left
walk_left
walk_left
walk_left
walk_left
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
MossdeepCity_Movement_ScottExitEast:
walk_down
walk_left
walk_left
walk_left
walk_left
walk_left
walk_left
walk_left
walk_left
walk_left
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
MossdeepCity_Text_WantKingsRockStevenGaveMe:
2018-12-07 16:41:08 +01:00
.string "I got this from STEVEN, but I don't\n"
.string "know what it's good for.\p"
.string "I think it's called KING'S ROCK.\n"
2017-11-10 02:21:31 +01:00
.string "Do you want it?$"
2021-07-20 21:18:31 +02:00
MossdeepCity_Text_YouCanKeepIt:
2017-11-10 02:21:31 +01:00
.string "Why would you want it?\n"
2018-12-07 16:41:08 +01:00
.string "You're weird.\p"
2017-11-10 02:21:31 +01:00
.string "You can keep it, but keep it a secret\n"
.string "from STEVEN.$"
2021-07-20 21:18:31 +02:00
MossdeepCity_Text_StevensHouseOverThere:
2018-12-07 16:41:08 +01:00
.string "STEVEN's house is right over there!$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
MossdeepCity_Text_WhatToDoWithWeirdRock:
2017-11-10 02:21:31 +01:00
.string "Yeah, you think so, too! What are you\n"
.string "supposed to do with some weird rock?$"
2021-07-20 21:18:31 +02:00
MossdeepCity_Text_WailmerWatching:
2017-11-10 02:21:31 +01:00
.string "Around MOSSDEEP, you can see wild\n"
.string "WAILMER.\p"
2018-12-07 16:41:08 +01:00
.string "It's called, uh…\n"
2017-11-10 02:21:31 +01:00
.string "What was it now…\p"
.string "WAI, WAI, WAI…\p"
.string "WAILMER watching!$"
2021-07-20 21:18:31 +02:00
MossdeepCity_Text_SpaceCenterReceivedLetter:
2018-12-07 16:41:08 +01:00
.string "The island's SPACE CENTER has been\n"
2017-11-10 02:21:31 +01:00
.string "launching huge rockets.\p"
2018-12-07 16:41:08 +01:00
.string "There's been some kind of an uproar\n"
2017-11-10 02:21:31 +01:00
.string "over a letter they received recently.$"
2021-07-20 21:18:31 +02:00
MossdeepCity_Text_SpaceCenterLaunchingRockets:
2018-12-07 16:41:08 +01:00
.string "The island's SPACE CENTER has been\n"
2017-11-10 02:21:31 +01:00
.string "launching huge rockets.$"
2021-07-20 21:18:31 +02:00
MossdeepCity_Text_MossdeepTargetedByMagma:
2017-11-10 02:21:31 +01:00
.string "I heard from a SAILOR buddy that\n"
.string "TEAM AQUA set up shop in LILYCOVE.\p"
.string "I also heard that someone came along\n"
.string "and wiped the floor with them!\p"
2018-12-07 16:41:08 +01:00
.string "But MOSSDEEP here's been targeted\n"
2017-11-10 02:21:31 +01:00
.string "by that TEAM MAGMA.\p"
2018-12-07 16:41:08 +01:00
.string "If you want to know what they're up to,\n"
2017-11-10 02:21:31 +01:00
.string "go visit the SPACE CENTER.$"
2021-07-20 21:18:31 +02:00
MossdeepCity_Text_FeelReliefOnLand:
2018-12-07 16:41:08 +01:00
.string "I'm a SAILOR, so the sea's obviously\n"
2017-11-10 02:21:31 +01:00
.string "more important to me.\p"
.string "But you know? When I get back on land\n"
.string "after a long voyage, I do feel relief!$"
2021-07-20 21:18:31 +02:00
MossdeepCity_Text_NiceIfWorldCoveredByFlowers:
2018-12-07 16:41:08 +01:00
.string "Wouldn't it be nice?\p"
2017-11-10 02:21:31 +01:00
.string "If the whole world was covered in\n"
.string "plants and flowers like this island?$"
2021-07-20 21:18:31 +02:00
MossdeepCity_Text_LifeNeedsSeaToLive:
2017-11-10 02:21:31 +01:00
.string "All life needs the sea to live, even\n"
.string "though it makes its home on the land.\p"
.string "Life, having run its course, becomes\n"
.string "soil and returns to the land.\p"
.string "And the sea is always connected to\n"
.string "the land.\p"
.string "Yes, like the very shoreline here.$"
2021-07-20 21:18:31 +02:00
MossdeepCity_Text_SurfExhilarating:
2017-11-10 02:21:31 +01:00
.string "A voyage on a ship is fine.\p"
.string "But crossing the sea with POKéMON\n"
.string "using SURF…\p"
2018-12-07 16:41:08 +01:00
.string "Now that's an exhilarating trip!\n"
.string "Wouldn't you agree, youngster?$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
MossdeepCity_Text_SpecialSpaceCenterRock:
2017-11-10 02:21:31 +01:00
.string "This rock has a special meaning to\n"
.string "the people at the SPACE CENTER.\p"
.string "They put it here as their wish for\n"
.string "their rockets to fly safely.\p"
.string "When you make a wish, what do you use?\n"
.string "Do you wish upon a star?\p"
.string "I use a wish tag to make it happen.\n"
2018-12-07 16:41:08 +01:00
.string "That's what I do.$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
MossdeepCity_Text_ItsAWhiteRock:
2018-12-07 16:41:08 +01:00
.string "It's a white rock.$"
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
MossdeepCity_Text_GymSign:
2017-11-10 02:21:31 +01:00
.string "MOSSDEEP CITY POKéMON GYM\n"
.string "LEADERS: LIZA & TATE\p"
.string "“The mystic combination!”$"
2021-07-20 21:18:31 +02:00
MossdeepCity_Text_CitySign:
2017-11-10 02:21:31 +01:00
.string "MOSSDEEP CITY\n"
.string "“Our slogan: Cherish POKéMON!”$"
2021-07-20 21:18:31 +02:00
MossdeepCity_Text_SpaceCenterSign:
2017-11-10 02:21:31 +01:00
.string "MOSSDEEP SPACE CENTER\n"
.string "“The closest place to space.”$"
2021-07-20 21:18:31 +02:00
MossdeepCity_Text_ScottSomethingWrongWithTown:
2017-11-10 02:21:31 +01:00
.string "SCOTT: {PLAYER}{KUN}, feeling good?\n"
2018-12-07 16:41:08 +01:00
.string "I'm doing great!\p"
.string "I'd heard MOSSDEEP's GYM LEADER is\n"
2017-11-10 02:21:31 +01:00
.string "pretty strong, so I decided to come\l"
.string "take a look-see for myself.\p"
2018-12-07 16:41:08 +01:00
.string "But there's something wrong about\n"
2017-11-10 02:21:31 +01:00
.string "this town.\p"
.string "People are going on about a warning\n"
.string "letter and the SPACE CENTER…\p"
2018-12-07 16:41:08 +01:00
.string "I don't think it concerns me in any\n"
2017-11-10 02:21:31 +01:00
.string "way, though.$"
2021-07-20 21:18:31 +02:00
MossdeepCity_Text_SootopolisNewGymLeader:
2017-11-10 02:21:31 +01:00
.string "Ahh… It feels great letting the waves\n"
.string "wash over my feet…\p"
.string "Speaking of the waves, you know that\n"
.string "island city SOOTOPOLIS?\p"
.string "I think the GYM there had a new\n"
.string "LEADER come in.\p"
.string "People tell me the new LEADER once\n"
.string "mentored WALLACE.$"