pokeemerald/data/maps/SeafloorCavern_Room9/scripts.inc

327 lines
9.9 KiB
PHP
Raw Normal View History

.set LOCALID_KYOGRE, 1
.set LOCALID_ARCHIE, 2
.set LOCALID_MAXIE, 3
.set LOCALID_GRUNT_1, 4
.set LOCALID_GRUNT_2, 5
.set LOCALID_KYOGRE_SLEEPING, 7
2021-07-20 21:18:31 +02:00
SeafloorCavern_Room9_MapScripts::
2017-11-10 02:21:31 +01:00
.byte 0
2021-07-20 21:18:31 +02:00
SeafloorCavern_Room9_EventScript_ArchieAwakenKyogre::
2017-11-10 02:21:31 +01:00
lockall
setvar VAR_0x8004, LOCALID_ARCHIE
setvar VAR_0x8005, LOCALID_MAXIE
setvar VAR_0x8006, LOCALID_GRUNT_1
setvar VAR_0x8007, LOCALID_GRUNT_2
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement OBJ_EVENT_ID_PLAYER, SeafloorCavern_Room9_Movement_Delay32
2017-11-10 02:21:31 +01:00
waitmovement 0
2021-05-21 22:08:00 +02:00
playbgm MUS_ENCOUNTER_AQUA, FALSE
2019-11-01 08:41:55 +01:00
msgbox SeafloorCavern_Room9_Text_ArchieHoldItRightThere, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
addobject VAR_0x8004
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-01 08:41:55 +01:00
applymovement VAR_0x8004, SeafloorCavern_Room9_Movement_ArchieApproachPlayer
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-01 08:41:55 +01:00
msgbox SeafloorCavern_Room9_Text_ArchieSoItWasYou, MSGBOX_DEFAULT
2019-10-06 19:55:30 +02:00
applymovement VAR_0x8004, Common_Movement_WalkInPlaceFastestUp
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-01 08:41:55 +01:00
msgbox SeafloorCavern_Room9_Text_ArchieBeholdKyogre, MSGBOX_DEFAULT
applymovement VAR_0x8004, Common_Movement_FacePlayer
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-01 08:41:55 +01:00
msgbox SeafloorCavern_Room9_Text_ArchieYouMustDisappear, MSGBOX_DEFAULT
trainerbattle_no_intro TRAINER_ARCHIE, SeafloorCavern_Room9_Text_ArchieDefeat
msgbox SeafloorCavern_Room9_Text_ArchieWithThisRedOrb, MSGBOX_DEFAULT
2018-12-24 22:23:58 +01:00
setweather WEATHER_NONE
2017-11-10 02:21:31 +01:00
doweather
2019-10-07 02:04:30 +02:00
special Script_FadeOutMapMusic
2017-11-10 02:21:31 +01:00
waitstate
2019-11-01 08:41:55 +01:00
msgbox SeafloorCavern_Room9_Text_RedOrbShinesByItself, MSGBOX_DEFAULT
special WaitWeather
2017-11-10 02:21:31 +01:00
waitstate
setvar VAR_RESULT, 1
2020-08-21 00:02:00 +02:00
playse SE_M_DETECT
dofieldeffectsparkle 16, 42, 0
waitfieldeffect FLDEFF_SPARKLE
2017-11-10 02:21:31 +01:00
closemessage
setvar VAR_RESULT, 0
2020-08-21 00:02:00 +02:00
playfanfare MUS_AWAKEN_LEGEND
playse SE_ORB
2019-11-01 08:41:55 +01:00
special DoOrbEffect
2019-10-06 19:55:30 +02:00
applymovement VAR_0x8004, Common_Movement_WalkInPlaceFastestUp
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestUp
2017-11-10 02:21:31 +01:00
waitmovement 0
delay 150
removeobject LOCALID_KYOGRE_SLEEPING
addobject LOCALID_KYOGRE
2017-11-10 02:21:31 +01:00
waitstate
delay 60
applymovement LOCALID_KYOGRE, SeafloorCavern_Room9_Movement_KyogreApproach
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-01 08:41:55 +01:00
special FadeOutOrbEffect
2017-11-10 02:21:31 +01:00
waitstate
2019-09-30 07:42:52 +02:00
setvar VAR_0x8004, 1 @ vertical pan
setvar VAR_0x8005, 1 @ horizontal pan
setvar VAR_0x8006, 8 @ num shakes
setvar VAR_0x8007, 5 @ shake delay
special ShakeCamera
2017-11-10 02:21:31 +01:00
waitstate
applymovement LOCALID_KYOGRE, SeafloorCavern_Room9_Movement_KyogreExit
2017-11-10 02:21:31 +01:00
waitmovement 0
removeobject LOCALID_KYOGRE
2017-11-10 02:21:31 +01:00
delay 4
2019-09-30 07:42:52 +02:00
setvar VAR_0x8004, 2 @ vertical pan
setvar VAR_0x8005, 2 @ horizontal pan
setvar VAR_0x8006, 8 @ num shakes
setvar VAR_0x8007, 5 @ shake delay
special ShakeCamera
2017-11-10 02:21:31 +01:00
waitstate
delay 30
setvar VAR_0x8004, LOCALID_ARCHIE
setvar VAR_0x8005, LOCALID_MAXIE
setvar VAR_0x8006, LOCALID_GRUNT_1
setvar VAR_0x8007, LOCALID_GRUNT_2
2019-11-01 08:41:55 +01:00
msgbox SeafloorCavern_Room9_Text_ArchieWhereDidKyogreGo, MSGBOX_DEFAULT
2017-12-22 08:46:19 +01:00
playse SE_PC_LOGIN
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-01 08:41:55 +01:00
msgbox SeafloorCavern_Room9_Text_ArchieAMessageFromOutside, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
2019-11-01 08:41:55 +01:00
applymovement VAR_0x8004, SeafloorCavern_Room9_Movement_ArchieListenMessage
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-01 08:41:55 +01:00
msgbox SeafloorCavern_Room9_Text_ArchieWhatRainingTooHard, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
playse SE_PC_OFF
delay 20
2019-10-06 19:55:30 +02:00
applymovement VAR_0x8004, Common_Movement_WalkInPlaceFastestDown
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-01 08:41:55 +01:00
msgbox SeafloorCavern_Room9_Text_ArchieWhyDidKyogreDisappear, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
addobject VAR_0x8005
addobject VAR_0x8006
addobject VAR_0x8007
2019-11-01 08:41:55 +01:00
applymovement VAR_0x8007, SeafloorCavern_Room9_Movement_MagmaGruntArrive
applymovement VAR_0x8006, SeafloorCavern_Room9_Movement_MagmaGruntArrive
applymovement VAR_0x8005, SeafloorCavern_Room9_Movement_MaxieArrive
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-10-06 19:55:30 +02:00
applymovement VAR_0x8004, Common_Movement_WalkInPlaceFastestLeft
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-01 08:41:55 +01:00
msgbox SeafloorCavern_Room9_Text_MaxieWhatHaveYouWrought, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
playse SE_PIN
applymovement VAR_0x8004, Common_Movement_ExclamationMark
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement VAR_0x8004, Common_Movement_Delay48
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-01 08:41:55 +01:00
msgbox SeafloorCavern_Room9_Text_ArchieDontGetAllHighAndMighty, MSGBOX_DEFAULT
msgbox SeafloorCavern_Room9_Text_MaxieWeDontHaveTimeToArgue, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
2019-11-01 08:41:55 +01:00
applymovement VAR_0x8005, SeafloorCavern_Room9_Movement_MaxieExit
applymovement VAR_0x8004, SeafloorCavern_Room9_Movement_ArchieExit
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-01 08:41:55 +01:00
msgbox SeafloorCavern_Room9_Text_MaxieComeOnPlayer, MSGBOX_DEFAULT
setvar VAR_ROUTE128_STATE, 1
2019-08-05 17:23:45 +02:00
setvar VAR_SOOTOPOLIS_CITY_STATE, 1
2018-10-19 03:32:21 +02:00
clearflag FLAG_HIDE_SOOTOPOLIS_CITY_STEVEN
clearflag FLAG_HIDE_SOOTOPOLIS_CITY_ARCHIE
clearflag FLAG_HIDE_SOOTOPOLIS_CITY_MAXIE
clearflag FLAG_HIDE_SOOTOPOLIS_CITY_RESIDENTS
clearflag FLAG_HIDE_SOOTOPOLIS_CITY_GROUDON
clearflag FLAG_HIDE_SOOTOPOLIS_CITY_KYOGRE
setflag FLAG_HIDE_SOOTOPOLIS_CITY_MAN_1
2017-11-20 16:40:02 +01:00
setflag FLAG_LEGENDARIES_IN_SOOTOPOLIS
2018-10-19 19:04:47 +02:00
clearflag FLAG_HIDE_ROUTE_128_ARCHIE
clearflag FLAG_HIDE_ROUTE_128_MAXIE
2017-11-10 02:21:31 +01:00
setflag FLAG_SYS_WEATHER_CTRL
2019-01-02 22:12:43 +01:00
setflag FLAG_KYOGRE_ESCAPED_SEAFLOOR_CAVERN
2018-10-18 21:28:59 +02:00
setflag FLAG_HIDE_MOSSDEEP_CITY_STEVENS_HOUSE_STEVEN
2019-02-22 10:18:43 +01:00
setvar VAR_STEVENS_HOUSE_STATE, 2
setvar VAR_SEAFLOOR_CAVERN_STATE, 1
2018-10-18 21:28:59 +02:00
setflag FLAG_HIDE_SEAFLOOR_CAVERN_ROOM_9_ARCHIE
setflag FLAG_HIDE_SEAFLOOR_CAVERN_ROOM_9_MAXIE
setflag FLAG_HIDE_SEAFLOOR_CAVERN_ROOM_9_MAGMA_GRUNTS
setflag FLAG_HIDE_SEAFLOOR_CAVERN_ROOM_9_KYOGRE
2018-10-18 21:28:59 +02:00
setflag FLAG_HIDE_SEAFLOOR_CAVERN_AQUA_GRUNTS
2019-03-10 13:10:59 +01:00
setflag FLAG_HIDE_MAP_NAME_POPUP
warp MAP_ROUTE128, 255, 38, 22
2017-11-10 02:21:31 +01:00
waitstate
releaseall
end
2021-07-20 21:18:31 +02:00
SeafloorCavern_Room9_Movement_ArchieApproachPlayer:
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
SeafloorCavern_Room9_Movement_Unused1:
walk_left
walk_left
step_end
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
SeafloorCavern_Room9_Movement_ArchieListenMessage:
walk_left
delay_16
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
SeafloorCavern_Room9_Movement_Unused2:
walk_right
step_end
2017-11-10 02:21:31 +01:00
2021-07-20 21:18:31 +02:00
SeafloorCavern_Room9_Movement_ArchieExit:
face_up
lock_facing_direction
walk_down
unlock_facing_direction
walk_in_place_fastest_right
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
SeafloorCavern_Room9_Movement_KyogreApproach:
delay_16
delay_16
walk_slow_down
delay_16
delay_16
delay_16
walk_slow_down
delay_16
delay_16
delay_16
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
SeafloorCavern_Room9_Movement_KyogreExit:
slide_up
slide_up
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
SeafloorCavern_Room9_Movement_MaxieArrive:
walk_fast_right
walk_fast_right
walk_fast_right
walk_fast_right
walk_fast_right
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
SeafloorCavern_Room9_Movement_MaxieExit:
walk_right
walk_right
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
SeafloorCavern_Room9_Movement_MagmaGruntArrive:
walk_fast_right
walk_fast_right
walk_fast_right
walk_fast_right
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
SeafloorCavern_Room9_Movement_Delay32:
delay_16
delay_16
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
SeafloorCavern_Room9_Text_ArchieHoldItRightThere:
2017-11-10 02:21:31 +01:00
.string "ARCHIE: Hold it right there.$"
2021-07-20 21:18:31 +02:00
SeafloorCavern_Room9_Text_ArchieSoItWasYou:
2017-11-10 02:21:31 +01:00
.string "ARCHIE: Fufufu…\n"
.string "So it was you, after all.$"
2021-07-20 21:18:31 +02:00
SeafloorCavern_Room9_Text_ArchieBeholdKyogre:
2017-11-10 02:21:31 +01:00
.string "ARCHIE: Behold!\p"
.string "See how beautiful it is, the sleeping\n"
.string "form of the ancient POKéMON KYOGRE!\p"
.string "I have waited so long for this day to\n"
.string "come…$"
2021-07-20 21:18:31 +02:00
SeafloorCavern_Room9_Text_ArchieYouMustDisappear:
2018-12-07 16:41:08 +01:00
.string "ARCHIE: It surprises me, how you've\n"
2017-11-10 02:21:31 +01:00
.string "managed to chase me here.\p"
2018-12-07 16:41:08 +01:00
.string "But that's all over now.\p"
2017-11-10 02:21:31 +01:00
.string "For the realization of my dream,\n"
.string "you must disappear now!$"
2021-07-20 21:18:31 +02:00
SeafloorCavern_Room9_Text_ArchieDefeat:
2017-11-10 02:21:31 +01:00
.string "What?!\n"
.string "I lost to a mere child like you?!$"
2021-07-20 21:18:31 +02:00
SeafloorCavern_Room9_Text_ArchieWithThisRedOrb:
2017-11-10 02:21:31 +01:00
.string "ARCHIE: Fufufu…\p"
.string "I commend you. I must recognize that\n"
.string "you are truly gifted.\p"
.string "But!\n"
.string "I have this in my possession!\p"
.string "With this RED ORB, I can make KYOGRE…$"
2021-07-20 21:18:31 +02:00
SeafloorCavern_Room9_Text_RedOrbShinesByItself:
2017-11-10 02:21:31 +01:00
.string "The RED ORB suddenly began shining\n"
.string "by itself!$"
2021-07-20 21:18:31 +02:00
SeafloorCavern_Room9_Text_ArchieWhereDidKyogreGo:
2017-11-10 02:21:31 +01:00
.string "ARCHIE: What?!\p"
2018-12-07 16:41:08 +01:00
.string "I didn't do anything.\n"
2017-11-10 02:21:31 +01:00
.string "Why did the RED ORB…\p"
.string "Where did KYOGRE go?$"
2021-07-20 21:18:31 +02:00
SeafloorCavern_Room9_Text_ArchieAMessageFromOutside:
2018-12-07 16:41:08 +01:00
.string "ARCHIE: Hm? It's a message from our\n"
2017-11-10 02:21:31 +01:00
.string "members outside…$"
2021-07-20 21:18:31 +02:00
SeafloorCavern_Room9_Text_ArchieWhatRainingTooHard:
2017-11-10 02:21:31 +01:00
.string "ARCHIE: Yes, what is it?\p"
.string "Hm…\n"
2018-12-07 16:41:08 +01:00
.string "It's raining heavily?\p"
2017-11-10 02:21:31 +01:00
.string "Good… That should have happened.\n"
.string "That is why we awakened KYOGRE,\l"
2018-12-07 16:41:08 +01:00
.string "to realize TEAM AQUA's vision of\l"
2017-11-10 02:21:31 +01:00
.string "expanding the sea.\p"
.string "What?!\p"
2018-12-07 16:41:08 +01:00
.string "It's raining far harder than we\n"
.string "envisioned? You're in danger?\p"
.string "That can't be…\n"
.string "That's just not possible…\p"
2017-11-10 02:21:31 +01:00
.string "Hold your position and monitor\n"
.string "the situation!$"
2021-07-20 21:18:31 +02:00
SeafloorCavern_Room9_Text_ArchieWhyDidKyogreDisappear:
2018-12-07 16:41:08 +01:00
.string "ARCHIE: There's something wrong…\p"
2017-11-10 02:21:31 +01:00
.string "The RED ORB is supposed to awaken\n"
.string "and control KYOGRE…\p"
.string "But… Why?\n"
.string "Why did KYOGRE disappear?\p"
.string "Why?!$"
2021-07-20 21:18:31 +02:00
SeafloorCavern_Room9_Text_MaxieWhatHaveYouWrought:
2017-11-10 02:21:31 +01:00
.string "MAXIE: What have you wrought?\p"
2018-12-07 16:41:08 +01:00
.string "ARCHIE… You've finally awoken KYOGRE,\n"
.string "haven't you?\p"
2017-11-10 02:21:31 +01:00
.string "What will happen to the world if this\n"
.string "downpour continues for all eternity?\p"
2018-12-07 16:41:08 +01:00
.string "The world's landmass will drown in\n"
2017-11-10 02:21:31 +01:00
.string "the deepening sea…$"
2021-07-20 21:18:31 +02:00
SeafloorCavern_Room9_Text_ArchieDontGetAllHighAndMighty:
2017-11-10 02:21:31 +01:00
.string "ARCHIE: W-what?!\n"
2018-12-07 16:41:08 +01:00
.string "Don't get all high and mighty with me!\p"
.string "Wasn't it you, TEAM MAGMA, that\n"
2017-11-10 02:21:31 +01:00
.string "infuriated GROUDON?\p"
.string "So long as I have this RED ORB,\n"
.string "I should be able to control KYOGRE…\p"
.string "I should be able to control it…$"
2021-07-20 21:18:31 +02:00
SeafloorCavern_Room9_Text_MaxieWeDontHaveTimeToArgue:
2018-12-07 16:41:08 +01:00
.string "MAXIE: We don't have the time to\n"
2017-11-10 02:21:31 +01:00
.string "argue about it here!\p"
.string "Get outside and see for yourself!\p"
2018-12-07 16:41:08 +01:00
.string "See if what you've wrought is the\n"
2017-11-10 02:21:31 +01:00
.string "world that we desired!$"
2021-07-20 21:18:31 +02:00
SeafloorCavern_Room9_Text_MaxieComeOnPlayer:
2017-11-10 02:21:31 +01:00
.string "MAXIE: {PLAYER}, come on, you have\n"
.string "to get out of here, too!$"