Whichever Pokemon comes out last will be the one to set the weather. For example, Groudon is sent out first by you and Drought activates, your opponent sends out Kyogre last thus activating Drizzle, which will be the weather that will be in battle bevause it was sent out last. Hope this helps.