Notices
For all updates, view the main page.

Scripts & Tutorials This forum is for scripts and code, as well as all kinds of tutorials, software, tools and so forth. Remember to give credit!
The thread revival limit does not apply here.

Reply
 
Thread Tools
  #1    
Old December 22nd, 2015 (6:56 PM). Edited December 23rd, 2015 by Zeak6464.
Zeak6464's Avatar
Zeak6464 Zeak6464 is online now
The Cold Guy
 
Join Date: Mar 2013
Location: USA
Gender: Male
Nature: Calm
Posts: 571
Send a message via Skype™ to Zeak6464
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
__________________


Reply With Quote

Relevant Advertising!

  #2    
Old May 3rd, 2016 (1:51 PM).
Tigerfang98's Avatar
Tigerfang98 Tigerfang98 is offline
Elite 4
 
Join Date: May 2013
Posts: 39
Where do I put this?
Reply With Quote
  #3    
Old May 3rd, 2016 (4:09 PM).
Zeak6464's Avatar
Zeak6464 Zeak6464 is online now
The Cold Guy
 
Join Date: Mar 2013
Location: USA
Gender: Male
Nature: Calm
Posts: 571
Send a message via Skype™ to Zeak6464
Quote:
Originally Posted by Tigerfang98 View Post
Where do I put this?
you can inset a new script and paste the code into it
__________________


Reply With Quote
  #4    
Old May 5th, 2016 (4:31 AM).
mewlover22's Avatar
mewlover22 mewlover22 is offline
Pokemon Creator
 
Join Date: Oct 2008
Location: South Carolina
Gender: Male
Nature: Quiet
Posts: 301
Would this work to set up a battle factory like in emerald?
__________________
Reply With Quote
  #5    
Old May 11th, 2016 (6:00 PM).
Tigerfang98's Avatar
Tigerfang98 Tigerfang98 is offline
Elite 4
 
Join Date: May 2013
Posts: 39
How do I make this work with the Battle Factory
Reply With Quote
  #6    
Old June 19th, 2016 (9:46 PM).
skeletonfriend's Avatar
skeletonfriend skeletonfriend is offline
 
Join Date: Jan 2016
Gender: Male
Posts: 6
Quote:
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!
Reply With Quote
  #7    
Old June 24th, 2016 (7:53 PM).
Tigerfang98's Avatar
Tigerfang98 Tigerfang98 is offline
Elite 4
 
Join Date: May 2013
Posts: 39
How do you get back the original party?
Reply With Quote
  #8    
Old June 24th, 2016 (7:56 PM).
Zeak6464's Avatar
Zeak6464 Zeak6464 is online now
The Cold Guy
 
Join Date: Mar 2013
Location: USA
Gender: Male
Nature: Calm
Posts: 571
Send a message via Skype™ to Zeak6464
Quote:
Originally Posted by Tigerfang98 View Post
How do you get back the original party?

#Returns Party that was stored in variable

Call Script : pbRentReturn
__________________


Reply With Quote
Reply
Quick Reply

Sponsored Links
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 9:17 PM.