.set LOCALID_ARCHIE, 2 .set LOCALID_OLD_LADY, 3 .set LOCALID_GRUNT_1, 4 .set LOCALID_GRUNT_2, 5 .set LOCALID_GRUNT_3, 6 .set LOCALID_GRUNT_4, 7 .set LOCALID_MAXIE, 8 MtPyre_Summit_MapScripts:: map_script MAP_SCRIPT_ON_TRANSITION, MtPyre_Summit_OnTransition .byte 0 MtPyre_Summit_OnTransition: call_if_eq VAR_MT_PYRE_STATE, 2, MtPyre_Summit_EventScript_SetArchieMaxiePositions end MtPyre_Summit_EventScript_SetArchieMaxiePositions:: setobjectxyperm LOCALID_MAXIE, 23, 6 setobjectxyperm LOCALID_ARCHIE, 22, 6 end MtPyre_Summit_EventScript_TeamAquaTrigger0:: lockall setvar VAR_0x8008, 0 goto MtPyre_Summit_EventScript_TeamAquaExits end MtPyre_Summit_EventScript_TeamAquaTrigger1:: lockall setvar VAR_0x8008, 1 goto MtPyre_Summit_EventScript_TeamAquaExits end MtPyre_Summit_EventScript_TeamAquaTrigger2:: lockall setvar VAR_0x8008, 2 goto MtPyre_Summit_EventScript_TeamAquaExits end MtPyre_Summit_EventScript_TeamAquaExits:: playbgm MUS_ENCOUNTER_AQUA, FALSE applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_FaceUp waitmovement 0 applymovement LOCALID_ARCHIE, Common_Movement_WalkInPlaceFasterDown waitmovement 0 delay 50 call_if_eq VAR_0x8008, 0, MtPyre_Summit_EventScript_ArchieFacePlayer0 call_if_eq VAR_0x8008, 1, MtPyre_Summit_EventScript_ArchieFacePlayer1 call_if_eq VAR_0x8008, 2, MtPyre_Summit_EventScript_ArchieFacePlayer2 msgbox MtPyre_Summit_Text_ArchieWeGotTheOrbLetsGo, MSGBOX_DEFAULT closemessage fadescreen FADE_TO_BLACK removeobject LOCALID_ARCHIE removeobject LOCALID_GRUNT_1 removeobject LOCALID_GRUNT_2 removeobject LOCALID_GRUNT_3 removeobject LOCALID_GRUNT_4 setflag FLAG_HIDE_MT_PYRE_SUMMIT_ARCHIE setflag FLAG_HIDE_MT_PYRE_SUMMIT_TEAM_AQUA fadedefaultbgm fadescreen FADE_FROM_BLACK delay 20 setvar VAR_MT_PYRE_STATE, 1 call_if_eq VAR_0x8008, 0, MtPyre_Summit_EventScript_OldLadyApproachPlayer0 call_if_eq VAR_0x8008, 1, MtPyre_Summit_EventScript_OldLadyApproachPlayer1 call_if_eq VAR_0x8008, 2, MtPyre_Summit_EventScript_OldLadyApproachPlayer2 msgbox MtPyre_Summit_Text_BothOrbsTakenMagmaLeftThis, MSGBOX_DEFAULT giveitem ITEM_MAGMA_EMBLEM setflag FLAG_RECEIVED_RED_OR_BLUE_ORB setflag FLAG_HIDE_JAGGED_PASS_MAGMA_GUARD releaseall end MtPyre_Summit_EventScript_ArchieFacePlayer0:: applymovement LOCALID_ARCHIE, MtPyre_Summit_Movement_ArchieFacePlayer0 waitmovement 0 return @ Archie is already facing player MtPyre_Summit_EventScript_ArchieFacePlayer1:: return MtPyre_Summit_EventScript_ArchieFacePlayer2:: applymovement LOCALID_ARCHIE, MtPyre_Summit_Movement_ArchieFacePlayer2 waitmovement 0 return MtPyre_Summit_EventScript_OldLadyApproachPlayer0:: applymovement LOCALID_OLD_LADY, MtPyre_Summit_Movement_OldLadyApproachPlayer0 waitmovement 0 applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFasterRight waitmovement 0 return MtPyre_Summit_EventScript_OldLadyApproachPlayer1:: applymovement LOCALID_OLD_LADY, MtPyre_Summit_Movement_OldLadyApproachPlayer1 waitmovement 0 return MtPyre_Summit_EventScript_OldLadyApproachPlayer2:: applymovement LOCALID_OLD_LADY, MtPyre_Summit_Movement_OldLadyApproachPlayer2 waitmovement 0 applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFasterLeft waitmovement 0 return MtPyre_Summit_Movement_OldLadyApproachPlayer0: walk_down walk_down walk_in_place_faster_left step_end MtPyre_Summit_Movement_OldLadyApproachPlayer1: walk_down step_end MtPyre_Summit_Movement_OldLadyApproachPlayer2: walk_down walk_down walk_in_place_faster_right step_end MtPyre_Summit_Movement_ArchieFacePlayer0: walk_left walk_in_place_faster_down step_end MtPyre_Summit_Movement_ArchieFacePlayer2: walk_right walk_in_place_faster_down step_end MtPyre_Summit_EventScript_OldMan:: lock faceplayer goto_if_set FLAG_SOOTOPOLIS_ARCHIE_MAXIE_LEAVE, MtPyre_Summit_EventScript_OldManAfterRayquaza msgbox MtPyre_Summit_Text_WillYouHearOutMyTale, MSGBOX_YESNO call_if_eq VAR_RESULT, YES, MtPyre_Summit_EventScript_OldManTale call_if_eq VAR_RESULT, NO, MtPyre_Summit_EventScript_DeclineOldManTale release end MtPyre_Summit_EventScript_OldManAfterRayquaza:: msgbox MtPyre_Summit_Text_HearTheNewLegendOfHoenn, MSGBOX_YESNO call_if_eq VAR_RESULT, YES, MtPyre_Summit_EventScript_OldManNewTale call_if_eq VAR_RESULT, NO, MtPyre_Summit_EventScript_DeclineOldManTale release end MtPyre_Summit_EventScript_OldManTale:: msgbox MtPyre_Summit_Text_GroudonKyogreTale, MSGBOX_DEFAULT return MtPyre_Summit_EventScript_DeclineOldManTale:: msgbox MtPyre_Summit_Text_WellThatTooIsFine, MSGBOX_DEFAULT return MtPyre_Summit_EventScript_OldManNewTale:: msgbox MtPyre_Summit_Text_HoennTrioTale, MSGBOX_DEFAULT return MtPyre_Summit_EventScript_OldLady:: lock faceplayer goto_if_set FLAG_RETURNED_RED_OR_BLUE_ORB, MtPyre_Summit_EventScript_OldLadyAfterOrbsReturned call_if_ge VAR_MT_PYRE_STATE, 3, MtPyre_Summit_EventScript_OldLadyOrbsReturned goto_if_set FLAG_KYOGRE_ESCAPED_SEAFLOOR_CAVERN, MtPyre_Summit_EventScript_OldLadyLegendariesAwake msgbox MtPyre_Summit_Text_OrbsHaveBeenTaken, MSGBOX_DEFAULT release end MtPyre_Summit_EventScript_OldLadyOrbsReturned:: msgbox MtPyre_Summit_Text_ThoseTwoMenReturnedOrbs, MSGBOX_DEFAULT setflag FLAG_RETURNED_RED_OR_BLUE_ORB release end MtPyre_Summit_EventScript_OldLadyLegendariesAwake:: msgbox MtPyre_Summit_Text_GroudonKyogreAwakened, MSGBOX_DEFAULT release end MtPyre_Summit_EventScript_OldLadyAfterOrbsReturned:: msgbox MtPyre_Summit_Text_SuperAncientPokemonTaughtUs, MSGBOX_DEFAULT release end MtPyre_Summit_EventScript_ArchieMaxieTrigger0:: lockall setvar VAR_0x8008, 0 goto MtPyre_Summit_EventScript_ArchieMaxieReturnOrbs end MtPyre_Summit_EventScript_ArchieMaxieTrigger1:: lockall setvar VAR_0x8008, 1 goto MtPyre_Summit_EventScript_ArchieMaxieReturnOrbs end MtPyre_Summit_EventScript_ArchieMaxieTrigger2:: lockall setvar VAR_0x8008, 2 goto MtPyre_Summit_EventScript_ArchieMaxieReturnOrbs end MtPyre_Summit_EventScript_ArchieMaxieReturnOrbs:: applymovement OBJ_EVENT_ID_PLAYER, Common_Movement_WalkInPlaceFasterUp waitmovement 0 delay 60 call_if_eq VAR_0x8008, 0, MtPyre_Summit_EventScript_ArchieMaxieBeginExit0 call_if_eq VAR_0x8008, 1, MtPyre_Summit_EventScript_ArchieMaxieBeginExit1 call_if_eq VAR_0x8008, 2, MtPyre_Summit_EventScript_ArchieMaxieBeginExit2 playse SE_PIN applymovement LOCALID_MAXIE, Common_Movement_ExclamationMark waitmovement 0 applymovement LOCALID_MAXIE, Common_Movement_Delay48 waitmovement 0 delay 30 call_if_eq VAR_0x8008, 0, MtPyre_Summit_EventScript_MaxieApproachPlayer0 call_if_eq VAR_0x8008, 1, MtPyre_Summit_EventScript_MaxieApproachPlayer1 call_if_eq VAR_0x8008, 2, MtPyre_Summit_EventScript_MaxieApproachPlayer2 msgbox MtPyre_Summit_Text_MaxieSilence, MSGBOX_DEFAULT closemessage call_if_eq VAR_0x8008, 0, MtPyre_Summit_EventScript_MaxieApproachArchie0 call_if_eq VAR_0x8008, 1, MtPyre_Summit_EventScript_MaxieApproachArchie1 call_if_eq VAR_0x8008, 2, MtPyre_Summit_EventScript_MaxieApproachArchie2 delay 30 applymovement LOCALID_ARCHIE, MtPyre_Summit_Movement_ArchieExit applymovement LOCALID_MAXIE, MtPyre_Summit_Movement_MaxieExit waitmovement 0 removeobject LOCALID_ARCHIE removeobject LOCALID_MAXIE setvar VAR_MT_PYRE_STATE, 3 releaseall end MtPyre_Summit_EventScript_ArchieMaxieBeginExit0:: applymovement OBJ_EVENT_ID_PLAYER, MtPyre_Summit_Movement_PlayerWatchArchieMaxieExit0 applymovement LOCALID_ARCHIE, MtPyre_Summit_Movement_ArchieExit applymovement LOCALID_MAXIE, MtPyre_Summit_Movement_MaxieExit waitmovement 0 return MtPyre_Summit_EventScript_ArchieMaxieBeginExit1:: applymovement OBJ_EVENT_ID_PLAYER, MtPyre_Summit_Movement_PlayerWatchArchieMaxieExit1 applymovement LOCALID_ARCHIE, MtPyre_Summit_Movement_ArchieExit applymovement LOCALID_MAXIE, MtPyre_Summit_Movement_MaxieExit waitmovement 0 return MtPyre_Summit_EventScript_ArchieMaxieBeginExit2:: applymovement OBJ_EVENT_ID_PLAYER, MtPyre_Summit_Movement_PlayerWatchArchieMaxieExit2 applymovement LOCALID_ARCHIE, MtPyre_Summit_Movement_ArchieExit applymovement LOCALID_MAXIE, MtPyre_Summit_Movement_MaxieExit waitmovement 0 return MtPyre_Summit_EventScript_MaxieApproachPlayer0:: applymovement OBJ_EVENT_ID_PLAYER, MtPyre_Summit_Movement_PlayerFaceMaxie0 applymovement LOCALID_ARCHIE, MtPyre_Summit_Movement_ArchieWatchMaxie applymovement LOCALID_MAXIE, MtPyre_Summit_Movement_MaxieApproachPlayer0 waitmovement 0 return MtPyre_Summit_EventScript_MaxieApproachPlayer1:: applymovement OBJ_EVENT_ID_PLAYER, MtPyre_Summit_Movement_PlayerFaceMaxie applymovement LOCALID_ARCHIE, MtPyre_Summit_Movement_ArchieWatchMaxie applymovement LOCALID_MAXIE, MtPyre_Summit_Movement_MaxieApproachPlayer1 waitmovement 0 return MtPyre_Summit_EventScript_MaxieApproachPlayer2:: applymovement OBJ_EVENT_ID_PLAYER, MtPyre_Summit_Movement_PlayerFaceMaxie applymovement LOCALID_ARCHIE, MtPyre_Summit_Movement_ArchieWatchMaxie applymovement LOCALID_MAXIE, MtPyre_Summit_Movement_MaxieApproachPlayer2 waitmovement 0 return MtPyre_Summit_EventScript_MaxieApproachArchie0:: applymovement OBJ_EVENT_ID_PLAYER, MtPyre_Summit_Movement_PlayerWatchMaxie applymovement LOCALID_MAXIE, MtPyre_Summit_Movement_MaxieApproachArchie0 waitmovement 0 applymovement LOCALID_ARCHIE, Common_Movement_WalkInPlaceFasterRight waitmovement 0 return MtPyre_Summit_EventScript_MaxieApproachArchie1:: applymovement OBJ_EVENT_ID_PLAYER, MtPyre_Summit_Movement_PlayerWatchMaxie applymovement LOCALID_MAXIE, MtPyre_Summit_Movement_MaxieApproachArchie1 waitmovement 0 applymovement LOCALID_ARCHIE, Common_Movement_WalkInPlaceFasterRight waitmovement 0 return MtPyre_Summit_EventScript_MaxieApproachArchie2:: applymovement OBJ_EVENT_ID_PLAYER, MtPyre_Summit_Movement_PlayerWatchMaxie applymovement LOCALID_MAXIE, MtPyre_Summit_Movement_MaxieApproachArchie2 waitmovement 0 applymovement LOCALID_ARCHIE, Common_Movement_WalkInPlaceFasterRight waitmovement 0 return MtPyre_Summit_Movement_PlayerFaceMaxie0: delay_16 delay_16 walk_in_place_faster_right step_end MtPyre_Summit_Movement_PlayerFaceMaxie: delay_16 delay_16 walk_in_place_faster_left step_end MtPyre_Summit_Movement_ArchieExit: walk_down walk_down walk_down walk_down walk_down walk_down step_end MtPyre_Summit_Movement_MaxieExit: walk_down walk_down walk_down walk_down walk_down walk_down step_end MtPyre_Summit_Movement_PlayerWatchArchieMaxieExit0: delay_16 delay_8 walk_left walk_in_place_faster_right delay_16 walk_in_place_faster_down step_end MtPyre_Summit_Movement_PlayerWatchArchieMaxieExit1: delay_16 delay_8 walk_right walk_in_place_faster_left delay_16 walk_in_place_faster_down step_end MtPyre_Summit_Movement_PlayerWatchArchieMaxieExit2: delay_16 delay_8 walk_in_place_faster_left delay_16 walk_in_place_faster_down step_end MtPyre_Summit_Movement_MaxieApproachPlayer0: walk_up walk_up walk_up walk_left step_end MtPyre_Summit_Movement_MaxieApproachPlayer1: walk_up walk_up walk_up walk_in_place_faster_right step_end MtPyre_Summit_Movement_MaxieApproachPlayer2: walk_up walk_up walk_up walk_in_place_faster_right step_end MtPyre_Summit_Movement_ArchieWatchMaxie: delay_16 walk_in_place_faster_up step_end MtPyre_Summit_Movement_PlayerWatchMaxie: delay_16 walk_in_place_faster_down step_end MtPyre_Summit_Movement_MaxieApproachArchie0: walk_down walk_right walk_down walk_down walk_in_place_faster_left step_end MtPyre_Summit_Movement_MaxieApproachArchie1: walk_down walk_down walk_down walk_in_place_faster_left step_end MtPyre_Summit_Movement_MaxieApproachArchie2: walk_down walk_down walk_down walk_in_place_faster_left step_end MtPyre_Summit_EventScript_Grunt1:: trainerbattle_single TRAINER_GRUNT_MT_PYRE_1, MtPyre_Summit_Text_Grunt1Intro, MtPyre_Summit_Text_Grunt1Defeat msgbox MtPyre_Summit_Text_Grunt1PostBattle, MSGBOX_AUTOCLOSE end MtPyre_Summit_EventScript_Grunt2:: trainerbattle_single TRAINER_GRUNT_MT_PYRE_2, MtPyre_Summit_Text_Grunt2Intro, MtPyre_Summit_Text_Grunt2Defeat msgbox MtPyre_Summit_Text_Grunt2PostBattle, MSGBOX_AUTOCLOSE end MtPyre_Summit_EventScript_Grunt3:: trainerbattle_single TRAINER_GRUNT_MT_PYRE_3, MtPyre_Summit_Text_Grunt3Intro, MtPyre_Summit_Text_Grunt3Defeat msgbox MtPyre_Summit_Text_Grunt3PostBattle, MSGBOX_AUTOCLOSE end MtPyre_Summit_EventScript_Grunt4:: trainerbattle_single TRAINER_GRUNT_MT_PYRE_4, MtPyre_Summit_Text_Grunt4Intro, MtPyre_Summit_Text_Grunt4Defeat msgbox MtPyre_Summit_Text_Grunt4PostBattle, MSGBOX_AUTOCLOSE end MtPyre_Summit_Text_Grunt1Intro: .string "No! Those Team Magma goons got\n" .string "here ahead of us!\p" .string "We can't fall behind!$" MtPyre_Summit_Text_Grunt1Defeat: .string "I thought you were one of the Magmas\n" .string "who happened to come back…$" MtPyre_Summit_Text_Grunt1PostBattle: .string "Yeah, so you are strong…\n" .string "But there're a lot of us!$" MtPyre_Summit_Text_Grunt2Intro: .string "Hah!\n" .string "Too bad for you!\p" .string "If you came earlier, you only would've\n" .string "had to battle the wimpy Team Magma.\p" .string "But since you arrived now, you have\n" .string "to take on us toughies!$" MtPyre_Summit_Text_Grunt2Defeat: .string "Urgh… I should've let you take on\n" .string "Team Magma first…$" MtPyre_Summit_Text_Grunt2PostBattle: .string "You don't know anything!\n" .string "So why are you messing with us?$" MtPyre_Summit_Text_Grunt3Intro: .string "You…\n" .string "We saw you at Mt. Chimney.\p" .string "You don't belong to either Team,\n" .string "so why would you be here?$" MtPyre_Summit_Text_Grunt3Defeat: .string "If you're going to mess with anyone,\n" .string "let it be Team Magma…$" MtPyre_Summit_Text_Grunt3PostBattle: .string "Heh, it doesn't matter!\n" .string "We bought ourselves some time!\p" .string "The Boss should have snatched what\n" .string "he was after!$" MtPyre_Summit_Text_Grunt4Intro: .string "Oh, I know!\n" .string "You tried to join Team Magma,\l" .string "but they wouldn't have you!\p" .string "Well, don't think that we'll let you\n" .string "join our Team Aqua!$" MtPyre_Summit_Text_Grunt4Defeat: .string "If you want to join Team Aqua that\n" .string "badly, we can consider it…$" MtPyre_Summit_Text_Grunt4PostBattle: .string "We have a great combination going\n" .string "with us members and our leader.$" MtPyre_Summit_Text_ArchieWeGotTheOrbLetsGo: .string "Archie: Team Magma's Maxie got ahead\n" .string "of us, but we also got what we wanted.\p" .string "The Red Orb preserved at Mt. Pyre…\n" .string "I, Archie, now have it in my possession!\p" .string "Fufufu… Now we can bring our ultimate\n" .string "objective to fruition!\p" .string "Okay, Team!\n" .string "We're pulling out!$" MtPyre_Summit_Text_BothOrbsTakenMagmaLeftThis: .string "Oh, no…\n" .string "This cannot happen…\p" .string "Not only the Blue Orb, but even\n" .string "the Red Orb has been taken…\p" .string "The Blue Orb and Red Orb must never\n" .string "be separated. They belong together.\p" .string "What are those men trying to do with\n" .string "the two Orbs?\p" .string "… … … … … …\n" .string "… … … … … …\p" .string "Oh, yes. Was it Team Magma who came\n" .string "and took the Blue Orb first?\p" .string "Well, in their haste, they left this\n" .string "behind.\p" .string "I couldn't imagine what exactly it\n" .string "could be.\p" .string "I would like you to have it.\n" .string "Perhaps it will be useful in some way.$" MtPyre_Summit_Text_OrbsHaveBeenTaken: .string "The Blue Orb and Red Orb taken by\n" .string "those sinister men…\p" .string "They must never be apart…\n" .string "I fear something terrible will happen…$" MtPyre_Summit_Text_GroudonKyogreAwakened: .string "Oh, my goodness…\p" .string "You say that both Groudon and Kyogre\n" .string "have been awakened?\p" .string "It is said that the Blue Orb and\n" .string "the Red Orb quelled the rage of\l" .string "the two Pokémon…\p" .string "It is also said that the true owner\n" .string "of the Orbs still exists.\p" .string "However, no one knows who, or what\n" .string "exactly, the Orbs belong to.\p" .string "It could be a human, or perhaps\n" .string "a Pokémon, but no one knows.$" MtPyre_Summit_Text_ThoseTwoMenReturnedOrbs: .string "The two men who took the Orbs came\n" .string "back to return them on their own.\p" .string "Those men…\n" .string "Perhaps they are not so evil after all…$" MtPyre_Summit_Text_SuperAncientPokemonTaughtUs: .string "The embodiments of the land, sea,\n" .string "and the sky…\p" .string "That is said to be the identities of\n" .string "the super-ancient Pokémon…\p" .string "In the same way that we humans and\n" .string "Pokémon have life, our world, too,\l" .string "is alive…\p" .string "The super-ancient Pokémon have\n" .string "taught us that…$" MtPyre_Summit_Text_WillYouHearOutMyTale: .string "Mt. Pyre is where we calm the spirits\n" .string "of Pokémon that have passed on…\p" .string "This is a high place where one can\n" .string "see all of Hoenn…\p" .string "The disembodied spirits of Pokémon\n" .string "must find solace here…\p" .string "Is it coincidence that you are here…\p" .string "Will you hear out my tale? A tale long\n" .string "told in the Hoenn region?$" MtPyre_Summit_Text_GroudonKyogreTale: .string "It happened long, long ago…\p" .string "The world was wracked by a ferocious\n" .string "clash between the Pokémon of the land\l" .string "and the Pokémon of the sea…\p" .string "The Pokémon of the land raised\n" .string "mountains and created continents…\p" .string "The Pokémon of the sea raised huge\n" .string "waves and carved out oceans…\p" .string "Their fierce duel raged without end.\p" .string "The world was engulfed in massive\n" .string "infernos and vicious storms.\p" .string "The Blue Orb and the Red Orb brought\n" .string "an end to the calamity.\p" .string "Light poured from the two Orbs and\n" .string "becalmed the enraged adversaries.\p" .string "The pair, made docile, dove deep into\n" .string "the sea where eventually they\l" .string "disappeared…$" MtPyre_Summit_Text_WellThatTooIsFine: .string "I see…\n" .string "Well, that, too, is fine…$" MtPyre_Summit_Text_MaxieSilence: .string "Maxie: {PLAYER}…\p" .string "… … … … … …\n" .string "… … … … … …$" MtPyre_Summit_Text_HearTheNewLegendOfHoenn: .string "It is my role to pass on the legends\n" .string "of Hoenn to future generations.\p" .string "And the crisis that just ended in\n" .string "Sootopolis rewrote a legend…\p" .string "Have you the time to hear the new\n" .string "legend of Hoenn?$" MtPyre_Summit_Text_HoennTrioTale: .string "It happened long, long ago…\p" .string "The world was wracked by a ferocious\n" .string "clash between the Pokémon of the land\l" .string "and the Pokémon of the sea…\p" .string "The Pokémon of the land raised\n" .string "mountains and created continents…\p" .string "The Pokémon of the sea raised huge\n" .string "waves and carved out oceans…\p" .string "Their fierce duel raged without end.\p" .string "The world was engulfed in massive\n" .string "fires and vicious storms.\p" .string "It was then that the Pokémon of\n" .string "the sky descended from a storm.\p" .string "The Pokémon, shining a vivid green,\n" .string "becalmed the two enraged Pokémon.\p" .string "Then, its duty done, the green Pokémon\n" .string "flew off into the wild blue yonder…$"