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

Pokemon Rental

Zeak6464

Zeak #3205 - Discord
1,101
Posts
11
Years
  • Age 31
  • USA
  • Seen Oct 9, 2023
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:
3
Posts
8
Years
  • Age 34
  • Seen Jul 5, 2018
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