• 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!
  • Cyndy, May, Hero (Conquest), or Wes - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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.

Pokemon Rental

Zeak6464

Zeak #3205 - Discord
  • 1,099
    Posts
    12
    Years
    This is a simple Rental Script , due to "rental" script in essentials doesn't work.
    Script still needs to be added on with "Swapping" & "Choose 3/4 to battle with".

    To call the script use "pbRentalsingle" , "pbRentaldouble", or "pbRentalBF"

    *For the time being "pbRentalsingle" will let you choose 3 pokemon from a list
    *For the time being "pbRentaldouble" will let you choose 4 pokemon from a list
    *For the time being "pbRentalBF" will give you 6 Random Pokemon to use

    Code:
    #Rental Pokemon for Single 
    def pbRentalsingle
       $game_variables[99]= $Trainer.party
       $Trainer.party = []
         while $Trainer.party.length<3
         species=pbChooseSpeciesOrdered(1)
         level=100
         pbAddPokemon(species,level)
       end
     end
    
    #Rental Pokemon for Double  
     def pbRentaldouble
       $game_variables[99]= $Trainer.party
       $Trainer.party = []
         while $Trainer.party.length<4
         species=pbChooseSpeciesOrdered(1)
         level=100
         pbAddPokemon(species,level)
       end
     end
     
    
    #Returns Party that was stored in variable
     def pbRentReturn
     $Trainer.party = $game_variables[99]
     Kernel.pbMessage(_INTL("Gave back rental pokemon."))
    end
    
    
    #Rental Pokemon for Battle Factory
    def pbRentalBF
       $game_variables[99]= $Trainer.party
       $Trainer.party = []
         while $Trainer.party.length<6
         species=rand(PBSpecies.maxValue)+1
         level=100
         pbAddPokemon(species,level)
       end
     end
     
    Last edited:
    def pbRentalsingle
    $game_variables[99]= $Trainer.party
    $Trainer.party = []
    while $Trainer.party.length<3
    species=pbChooseSpeciesOrdered(1)
    level=100
    pbAddPokemon(species,level)
    end
    end

    Would it be possible to change species so that you can only choose between a certain list of Pokemon? Say, #030~60, for example?

    Thank you so much, this is really great!
     
    Back
    Top