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

[Eventing Question] Giving a specific form

mybusiness

Guest
0
Posts
How do you give the player a Blue-Striped Basculin, provided that this Blue-Striped is form 1 in pokemonforms.txt?
 
233
Posts
5
Years
  • Age 33
  • Seen Oct 9, 2023
Since you cannot define the form directly in pbAddPokemon, you'll need to first create it and set the form before adding it, like so:
Spoiler:
 

WolfPP

Spriter/ Pixel Artist
1,309
Posts
5
Years
more example:

Code:
p=PokeBattle_Pokemon.new(:NECROZMA,70,$Trainer)
$Trainer.badges[0]=true
$Trainer.badges[1]=true
$Trainer.badges[2]=true
$Trainer.badges[3]=true
$Trainer.badges[4]=true
$Trainer.badges[5]=true
$Trainer.badges[6]=true
$Trainer.badges[7]=true
p.setItem(:ULTRANECROZIUMZ2)
p.form=1
p.setNature(:ADAMANT)
#p.setAbility(2)   #Hidden Ability always will be (2)
p.iv=[31,31,31,31,31,31]
p.pbLearnMove(:PHOTONGEYSER)
p.pbLearnMove(:SUNSTEELSTRIKE)
p.ballused=26 # Beast Ball
p.calcStats
Kernel.pbAddPokemon(p)
 
Back
Top