• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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
16
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
     

    FL

    Pokémon Island Creator
    2,450
    Posts
    13
    Years
    • Seen yesterday
    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