• 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.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • 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?

  • 825
    Posts
    9
    Years
    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