• 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.
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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!
  • 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.

[Scripting Question] Double battle 2v1?

  • 3
    Posts
    6
    Years
    • Seen Sep 20, 2019
    Hi guys i'm trying to make a double battle were you and an ally face off against 1 powerful Pokemon but im having trouble altering the scripts (the game doesn't allow for doubles battles if the opponent has 1 Pokemon)

    I was wondering if anyone had successfully implemented this, or perhaps had some advice?
     
    Work hard to do that. I was thinkin to do SOS Battle Script. Maybe you just need to copy how every doublebattle script works and edit to a new type battle (like bossbattle).
     
    Last edited:
    I actually seem to have it working, I found a script from an earlier thread (Sorry can't link it, forum rules), but it was outdated so i had to alter it a little.

    Heres what i used, that part i changed starts is highlighted in red.

    Spoiler:


    I think i changed something else somewhere too, but im tired and i can't remember. This seems to work fine, but i'll admit im not familiar with Ruby at all so if anyone has a more elegant solution i would be love to see it.
     
    Last edited:
    Hmm, i mean, you need to script a new code for this new battle scene. Like:
    Spoiler:


    It is script for double battle, in 'PField_Battles'. When you fight against a double battle in field area, the game always will call that script before fight begins.
    So, edit that script to 2v1 and search all code than have that 'pbDoubleWildBattle' inside them.
     
    Yeh good catch. I was looking at some of the other double battle scripts but i really just needed the code for one battle against a trainer, seemed a little unfair to bully wild pokemon by forcing 2v1s. Appreciate the help though.
     
    Back
    Top