• 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.

Battle Frontier Mechanics

nuzamaki90

Knight of The Volt
  • 97
    Posts
    17
    Years
    Hi peeps, I was wondering if there was a script on essentials that asked the player to pick 3 PkMn out of their current team to battle like in the Battle Frontier, Battle Tent, Battle Subway, ect.

    I need to know because I'm trying to add this 3v3 thing in my game but I don't know whether or not if there is a script that does this.

    Edit: I would also like to know if another mechanic, where when the player loses, instead of sending them to the Pokemon Center or whatever, the game continues with the Battle Escort..err person telling you that you lost and you're disqualified and takes you out, back into the lobby.

    Thanks as always -Nuza
     
    I done something similar, I know that this isn't the best way and is a little bizarre. Create in some place:

    Code:
    def sampleRules3Pokemon
      ret=PokemonChallengeRules.new
      ret.setLevelAdjustment( OpenLevelAdjustment.new(PBExperience::MAXLEVEL))
      ret.setNumber(3)
      return ret
    end
    
    def useThreePokemon
      pbBattleChallenge.set("sampleRules3Pokemon",7,sampleRules3Pokemon)
      pbEntryScreen(8,100)
      oldParty=$Trainer.party
      newParty=pbBattleChallenge.getParty
      pbBattleChallenge.pbCancel
      $Trainer.party=newParty
      ret=yield
      $Trainer.party=oldParty
      return ret
    end

    So, instead of calling something like: 'pbTrainerBattle(PBTrainers::TRAINER,"Dave",_I("No!!!"))', calls 'useThreePokemon{pbTrainerBattle(PBTrainers::TRAINER,"Dave",_I("No!!!"))}'. Untested.
     
    Back
    Top