• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Would it be possible to not end a Multi Battle until you are the only trainer left standing?

I want to try to make a new type of battle called "Free-For-All" that would be a Multi Battle - Double Battle with two humans vs. two humans - where everyone is against each other. This could be accomplished easiest by making it so that in Double Battles, you don't win until your partner faints, too. But I'm not seeing where the code that checks for the opponent being fainted is so I can add conditions involving the "ally" being fainted as well.

I found something that may be what I'm looking for, but it involves checking "party1" and "party2", which seem to be combined parties for each visual side of the battle.

I have everything else working - ignoring your "partner" when it comes to checking for partner abilities, enabling the "partner" AI to consider hitting you instead of opponents, even adding in different-colored battle data boxes for battler #2 for the three cases (both Pokemon in the Double Battle belong to you, Battler #2 belongs to your ally, and Battler #2 is a foe just like Battlers #1 and #3.) to help the player distinguish between a Multi Battle and a Free-For-All. I just need to figure out how to make the game not consider you to have won until Battler #2 has no more Pokemon.
 
Back
Top