the player first meets the team in the petalburg woods, where he or she rescues a worker from devon and recovers a package. upon arriving in fallarbor town, the player finds that professor cozmo, an astronomer, has been kidnapped by aqua or magma. they find cozmo in meteor falls, but they escape to mt. chimney, a volcano, with a meteorite. the player follows aqua/magma to mt. chimney where they are going to use the meteorite to make the volcano erupt. the player defeats the team's leader and returns the meteorite to professor cozmo. shortly after, aqua/magma again tries to change the region's weather by stealing a castform, a pokémon with the ability to change the weather, from the weather institute. after the player reaches mt. pyre, a large mountain and pokémon cemetery, aqua/magma steal an orb that can control a legendary pokémon (groudon in ruby, kyogre in sapphire). aqua/magma then steal a submarine from captain stern in slateport city; the player, however, breaks into the team's hideout, but is not able to stop the submarine. the team then travel with the orb to the seafloor cavern, where groudon or kyogre sleeps; the team then uses the orb to wake up the legendary pokémon. once awakened, the pokémon travels to the cave of origin and causes a drought (ruby) or rainstorms (sapphire). when the player beats or catches the pokémon, hoenn's weather returns to normal. the player can then collect the rest of the pokémon in the game.