pokeemerald/data/maps/MeteorFalls_1F_1R/scripts.inc

316 lines
8.9 KiB
PHP
Raw Normal View History

.set LOCALID_MAGMA_GRUNT_1, 5
.set LOCALID_MAGMA_GRUNT_2, 6
.set LOCALID_ARCHIE, 7
.set LOCALID_AQUA_GRUNT_1, 8
.set LOCALID_AQUA_GRUNT_2, 9
2021-07-20 21:18:31 +02:00
MeteorFalls_1F_1R_MapScripts::
2019-11-07 02:38:53 +01:00
map_script MAP_SCRIPT_ON_LOAD, MeteorFalls_1F_1R_OnLoad
2017-11-10 02:21:31 +01:00
.byte 0
2021-07-20 21:18:31 +02:00
MeteorFalls_1F_1R_OnLoad:
2019-11-07 02:38:53 +01:00
call_if_set FLAG_SYS_GAME_CLEAR, MeteorFalls_1F_1R_EventScript_OpenStevensCave
2017-11-10 02:21:31 +01:00
end
2021-07-20 21:18:31 +02:00
MeteorFalls_1F_1R_EventScript_OpenStevensCave::
setmetatile 4, 1, METATILE_MeteorFalls_CaveEntrance_Top, 1
setmetatile 3, 2, METATILE_MeteorFalls_CaveEntrance_Left, 1
setmetatile 4, 2, METATILE_MeteorFalls_CaveEntrance_Bottom, 0
setmetatile 5, 2, METATILE_MeteorFalls_CaveEntrance_Right, 1
2017-11-10 02:21:31 +01:00
return
2021-07-20 21:18:31 +02:00
MeteorFalls_1F_1R_EventScript_MagmaStealsMeteoriteScene::
2017-11-10 02:21:31 +01:00
lockall
2021-05-21 22:08:00 +02:00
playbgm MUS_ENCOUNTER_MAGMA, FALSE
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_FaceDown
2017-11-10 02:21:31 +01:00
waitmovement 0
delay 30
applymovement LOCALID_MAGMA_GRUNT_1, Common_Movement_WalkInPlaceDown
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-07 02:38:53 +01:00
msgbox MeteorFalls_1F_1R_Text_WithThisMeteorite, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
applymovement LOCALID_MAGMA_GRUNT_1, Common_Movement_WalkInPlaceFastestUp
applymovement LOCALID_MAGMA_GRUNT_2, Common_Movement_WalkInPlaceFastestUp
2017-11-10 02:21:31 +01:00
waitmovement 0
playse SE_PIN
applymovement LOCALID_MAGMA_GRUNT_1, Common_Movement_ExclamationMark
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement LOCALID_MAGMA_GRUNT_1, Common_Movement_Delay48
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-07 02:38:53 +01:00
msgbox MeteorFalls_1F_1R_Text_DontExpectMercyFromMagma, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
applymovement LOCALID_MAGMA_GRUNT_1, MeteorFalls_1F_1R_Movement_MagmaGruntApproachPlayer
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-07 02:38:53 +01:00
msgbox MeteorFalls_1F_1R_Text_HoldItRightThereMagma, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFastestLeft
applymovement LOCALID_MAGMA_GRUNT_1, Common_Movement_WalkInPlaceFastestLeft
applymovement LOCALID_MAGMA_GRUNT_2, Common_Movement_WalkInPlaceFastestLeft
2017-11-10 02:21:31 +01:00
waitmovement 0
addobject LOCALID_ARCHIE
addobject LOCALID_AQUA_GRUNT_1
addobject LOCALID_AQUA_GRUNT_2
2021-05-21 22:08:00 +02:00
playbgm MUS_ENCOUNTER_AQUA, FALSE
applymovement LOCALID_ARCHIE, MeteorFalls_1F_1R_Movement_ArchieArrive
applymovement LOCALID_AQUA_GRUNT_1, MeteorFalls_1F_1R_Movement_AquaGrunt1Arrive
applymovement LOCALID_AQUA_GRUNT_2, MeteorFalls_1F_1R_Movement_AquaGrunt2Arrive
2017-11-10 02:21:31 +01:00
waitmovement 0
applymovement LOCALID_MAGMA_GRUNT_1, Common_Movement_WalkInPlaceFastestLeft
applymovement LOCALID_MAGMA_GRUNT_2, Common_Movement_WalkInPlaceFastestLeft
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-07 02:38:53 +01:00
msgbox MeteorFalls_1F_1R_Text_BeSeeingYouTeamAqua, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
applymovement OBJ_EVENT_ID_PLAYER, MeteorFalls_1F_1R_Movement_PushPlayerOutOfWay
applymovement LOCALID_MAGMA_GRUNT_1, MeteorFalls_1F_1R_Movement_MagmaGrunt1Exit
applymovement LOCALID_MAGMA_GRUNT_2, MeteorFalls_1F_1R_Movement_MagmaGrunt2Exit
2017-11-10 02:21:31 +01:00
waitmovement 0
removeobject LOCALID_MAGMA_GRUNT_1
removeobject LOCALID_MAGMA_GRUNT_2
applymovement LOCALID_ARCHIE, MeteorFalls_1F_1R_Movement_ArchieApproachPlayer
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-07 02:38:53 +01:00
msgbox MeteorFalls_1F_1R_Text_ArchieSeenYouBefore, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
applymovement LOCALID_AQUA_GRUNT_1, MeteorFalls_1F_1R_Movement_AquaGrunt1ApproachArchie
applymovement LOCALID_AQUA_GRUNT_2, MeteorFalls_1F_1R_Movement_AquaGrunt2ApproachArchie
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-07 02:38:53 +01:00
msgbox MeteorFalls_1F_1R_Text_BossWeShouldChaseMagma, MSGBOX_DEFAULT
applymovement LOCALID_ARCHIE, Common_Movement_WalkInPlaceFastestDown
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-07 02:38:53 +01:00
msgbox MeteorFalls_1F_1R_Text_ArchieYesNoTellingWhatMagmaWillDo, MSGBOX_DEFAULT
applymovement LOCALID_ARCHIE, Common_Movement_WalkInPlaceFastestLeft
2017-11-10 02:21:31 +01:00
waitmovement 0
2019-11-07 02:38:53 +01:00
msgbox MeteorFalls_1F_1R_Text_ArchieFarewell, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
closemessage
applymovement LOCALID_ARCHIE, MeteorFalls_1F_1R_Movement_ArchieExit
applymovement LOCALID_AQUA_GRUNT_1, MeteorFalls_1F_1R_Movement_AquaGrunt1Exit
applymovement LOCALID_AQUA_GRUNT_2, MeteorFalls_1F_1R_Movement_AquaGrunt2Exit
2017-11-10 02:21:31 +01:00
waitmovement 0
fadedefaultbgm
removeobject LOCALID_ARCHIE
removeobject LOCALID_AQUA_GRUNT_1
removeobject LOCALID_AQUA_GRUNT_2
2018-10-19 19:04:47 +02:00
setflag FLAG_HIDE_ROUTE_112_TEAM_MAGMA
2019-01-02 22:12:43 +01:00
setflag FLAG_MET_ARCHIE_METEOR_FALLS
2019-11-07 02:38:53 +01:00
setflag FLAG_HIDE_FALLARBOR_TOWN_BATTLE_TENT_SCOTT
2019-02-22 10:18:43 +01:00
setvar VAR_METEOR_FALLS_STATE, 1
2017-11-10 02:21:31 +01:00
releaseall
end
2021-07-20 21:18:31 +02:00
MeteorFalls_1F_1R_Movement_MagmaGruntApproachPlayer:
walk_right
walk_right
walk_in_place_fastest_up
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
MeteorFalls_1F_1R_Movement_MagmaGrunt1Exit:
walk_fast_up
walk_fast_up
walk_fast_right
walk_fast_right
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
MeteorFalls_1F_1R_Movement_MagmaGrunt2Exit:
walk_fast_up
walk_fast_up
walk_fast_up
walk_fast_right
walk_fast_right
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
MeteorFalls_1F_1R_Movement_ArchieArrive:
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
MeteorFalls_1F_1R_Movement_AquaGrunt1Arrive:
delay_16
delay_16
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
MeteorFalls_1F_1R_Movement_AquaGrunt2Arrive:
delay_16
delay_16
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
MeteorFalls_1F_1R_Movement_ArchieExit:
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
MeteorFalls_1F_1R_Movement_ArchieApproachPlayer:
walk_right
walk_right
walk_up
walk_up
walk_in_place_fastest_left
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
MeteorFalls_1F_1R_Movement_AquaGrunt1Exit:
walk_up
walk_up
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
MeteorFalls_1F_1R_Movement_AquaGrunt1ApproachArchie:
walk_right
walk_right
walk_right
walk_in_place_fastest_up
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
MeteorFalls_1F_1R_Movement_AquaGrunt2Exit:
walk_up
walk_up
walk_up
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
MeteorFalls_1F_1R_Movement_AquaGrunt2ApproachArchie:
walk_right
walk_right
walk_right
walk_in_place_fastest_up
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
MeteorFalls_1F_1R_Movement_PushPlayerOutOfWay:
walk_in_place_fastest_down
delay_4
walk_in_place_fastest_right
lock_facing_direction
walk_left
unlock_facing_direction
face_right
2017-11-10 02:21:31 +01:00
step_end
2021-07-20 21:18:31 +02:00
MeteorFalls_1F_1R_EventScript_ProfCozmo::
2017-11-10 02:21:31 +01:00
lock
faceplayer
2019-11-07 02:38:53 +01:00
goto_if_set FLAG_MET_PROF_COZMO, MeteorFalls_1F_1R_EventScript_MetCozmo
setflag FLAG_MET_PROF_COZMO
msgbox MeteorFalls_1F_1R_Text_MeetProfCozmo, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
MeteorFalls_1F_1R_EventScript_MetCozmo::
2019-11-07 02:38:53 +01:00
msgbox MeteorFalls_1F_1R_Text_WhatsTeamMagmaDoingAtMtChimney, MSGBOX_DEFAULT
2017-11-10 02:21:31 +01:00
release
end
2021-07-20 21:18:31 +02:00
MeteorFalls_1F_1R_Text_WithThisMeteorite:
2017-11-10 02:21:31 +01:00
.string "Hehehe!\p"
.string "With this METEORITE, that thing in\n"
.string "MT. CHIMNEY will…$"
2021-07-20 21:18:31 +02:00
MeteorFalls_1F_1R_Text_DontExpectMercyFromMagma:
2017-11-10 02:21:31 +01:00
.string "Heh?\p"
2018-12-07 16:41:08 +01:00
.string "I don't know who you are, but if you get\n"
.string "in the way of TEAM MAGMA, don't\l"
2017-11-10 02:21:31 +01:00
.string "expect any mercy!$"
2021-07-20 21:18:31 +02:00
MeteorFalls_1F_1R_Text_HoldItRightThereMagma:
2017-11-10 02:21:31 +01:00
.string "Hold it right there, TEAM MAGMA!\p"
2018-12-07 16:41:08 +01:00
.string "You're badly mistaken if you think you\n"
2017-11-10 02:21:31 +01:00
.string "can have your way with the world!$"
2021-07-20 21:18:31 +02:00
MeteorFalls_1F_1R_Text_BeSeeingYouTeamAqua:
2017-11-10 02:21:31 +01:00
.string "Hehehe!\n"
.string "Even TEAM AQUA joins us!\p"
2018-12-07 16:41:08 +01:00
.string "But it's too much trouble to deal with\n"
2017-11-10 02:21:31 +01:00
.string "you all…\p"
2018-12-07 16:41:08 +01:00
.string "Heh, it doesn't matter!\p"
.string "We've got the METEORITE, so off to\n"
2017-11-10 02:21:31 +01:00
.string "MT. CHIMNEY we go!\p"
.string "Hehehe! Be seeing you, you TEAM\n"
.string "AQUA dingbats!$"
2021-07-20 21:18:31 +02:00
MeteorFalls_1F_1R_Text_ArchieSeenYouBefore:
2018-12-07 16:41:08 +01:00
.string "ARCHIE: Didn't I see you before?\n"
.string "At SLATEPORT's MUSEUM?\p"
2017-11-10 02:21:31 +01:00
.string "Ah, so your name is {PLAYER}.\p"
.string "At the time, I thought you were one\n"
2018-12-07 16:41:08 +01:00
.string "of TEAM MAGMA's goons.\p"
2017-11-10 02:21:31 +01:00
.string "Humph…\n"
2018-12-07 16:41:08 +01:00
.string "You're one odd kid.\p"
2017-11-10 02:21:31 +01:00
.string "TEAM MAGMA is a dangerous group of\n"
.string "total fanatics.\p"
.string "They engage in destruction, claiming\n"
.string "to expand the land mass.\p"
.string "They are the rivals to us,\n"
.string "the sea-loving TEAM AQUA!$"
2021-07-20 21:18:31 +02:00
MeteorFalls_1F_1R_Text_BossWeShouldChaseMagma:
2017-11-10 02:21:31 +01:00
.string "BOSS, we should give chase to\n"
.string "TEAM MAGMA…$"
2021-07-20 21:18:31 +02:00
MeteorFalls_1F_1R_Text_ArchieYesNoTellingWhatMagmaWillDo:
2017-11-10 02:21:31 +01:00
.string "ARCHIE: Yes, yes, we must!\n"
2018-12-07 16:41:08 +01:00
.string "We've got to hurry.\p"
.string "There's no telling what TEAM MAGMA\n"
2017-11-10 02:21:31 +01:00
.string "will do at MT. CHIMNEY!$"
2021-07-20 21:18:31 +02:00
MeteorFalls_1F_1R_Text_ArchieFarewell:
2017-11-10 02:21:31 +01:00
.string "ARCHIE: {PLAYER}, you should keep\n"
.string "an eye out for TEAM MAGMA, too.\p"
.string "Farewell!$"
2021-07-20 21:18:31 +02:00
MeteorFalls_1F_1R_Text_MeetProfCozmo:
2018-12-07 16:41:08 +01:00
.string "I… I'm COZMO…\n"
.string "I'm a PROFESSOR…\p"
2017-11-10 02:21:31 +01:00
.string "TEAM MAGMA asked me to guide them\n"
.string "to METEOR FALLS…\p"
.string "But they tricked me.\n"
.string "They even took my METEORITE away…\p"
.string "And then another similar bunch,\n"
.string "TEAM AQUA showed up.\p"
.string "After that…\n"
2018-12-07 16:41:08 +01:00
.string "I don't understand any of it.\p"
2017-11-10 02:21:31 +01:00
.string "But that TEAM MAGMA…\p"
.string "What are they going to do with that\n"
.string "METEORITE at MT. CHIMNEY?$"
2021-07-20 21:18:31 +02:00
MeteorFalls_1F_1R_Text_WhatsTeamMagmaDoingAtMtChimney:
2017-11-10 02:21:31 +01:00
.string "PROF. COZMO: But that TEAM MAGMA…\p"
.string "What are they going to do with that\n"
.string "METEORITE at MT. CHIMNEY?$"