mewlover22
Pokemon Creator
- 457
- Posts
- 16
- Years
- South Carolina
- Seen Jul 18, 2024
I want the player to get an exact copy of a trainers pokemon when certain conditions are met but i can't get it to work right i want it to show it came from the trainer and have the same move set and item the trainers had. I read up on the wiki but im a bit confused as to how to do it i have and script with the pokemon given but the player owns it.
Here's the script.
p=PokeBattle_Pokemon.new(:BLAZIKEN,88,$Trainer)
p.item=PBItems::BLAZIKENITE
p.setGender(0) # Male
p.makeNotShiny
p.calcStats
pbAutoLearnMove(p,SLASH)
pbAutoLearnMove(p,:BRAVEBIRD)
pbAutoLearnMove(p,SKYUPPERCUT)
pbAutoLearnMove(p,:FLAREBLITZ)
Kernel.pbAddPokemon(p)
I know i need to use pbAddForeignPokemon but how do i make the above fit in with that script so it has all the same stuff as the trainers pokemon?
Here's the script.
p=PokeBattle_Pokemon.new(:BLAZIKEN,88,$Trainer)
p.item=PBItems::BLAZIKENITE
p.setGender(0) # Male
p.makeNotShiny
p.calcStats
pbAutoLearnMove(p,SLASH)
pbAutoLearnMove(p,:BRAVEBIRD)
pbAutoLearnMove(p,SKYUPPERCUT)
pbAutoLearnMove(p,:FLAREBLITZ)
Kernel.pbAddPokemon(p)
I know i need to use pbAddForeignPokemon but how do i make the above fit in with that script so it has all the same stuff as the trainers pokemon?