- 1,224
- Posts
- 11
- Years
- Omnipresence
- Seen Aug 8, 2023
Just a handy little script I made for testing purposes, I will also show you how to add it to your debug options in the party scene.
Main script
To add it into your pokemon's options, go to pbPokemonDebug in PokemonParty and add this red part into the commands
Right below that replace the 21 here with 22
And inside the case statement (after "when 20") add
Note that this doesn't have support for choosing options when you have pokemon with multiple evolutions (i.e. Eevee), so it will choose the last one listed in pokemon.txt .
Edit: Via AlexTCGPro's request, methods to de-evolve pokemon, both by one stage and by all stages.
One stage
All stages
Main script
Code:
def pbForceEvo(pokemon)
for form in pbGetEvolvedFormData(pokemon.species)
newspecies=form[2]
end
return if !newspecies
if newspecies>0
evo=PokemonEvolutionScene.new
evo.pbStartScreen(pokemon,newspecies)
evo.pbEvolution
evo.pbEndScreen
end
end
To add it into your pokemon's options, go to pbPokemonDebug in PokemonParty and add this red part into the commands
Code:
[email protected](_INTL("Do what with {1}?",pkmn.name),[
_INTL("HP/Status"),
_INTL("Level"),
_INTL("Species"),
_INTL("Moves"),
_INTL("Gender"),
_INTL("Ability"),
_INTL("Nature"),
_INTL("Shininess"),
_INTL("Form"),
_INTL("Happiness"),
_INTL("EV/IV/pID"),
_INTL("Pokérus"),
_INTL("Ownership"),
_INTL("Nickname"),
_INTL("Poké Ball"),
_INTL("Ribbons"),
_INTL("Egg"),
_INTL("Shadow Pokémon"),
_INTL("Make Mystery Gift"),
_INTL("Duplicate"),
_INTL("Delete"),
[COLOR="Red"]_INTL("Force Evo"),[/COLOR]
_INTL("Cancel")
],command)
Right below that replace the 21 here with 22
Code:
case command
### Cancel ###
when -1, 21
Code:
## Force Evolution##
when 21
pbForceEvo(pkmn)
pbHardRefresh
Note that this doesn't have support for choosing options when you have pokemon with multiple evolutions (i.e. Eevee), so it will choose the last one listed in pokemon.txt .
Edit: Via AlexTCGPro's request, methods to de-evolve pokemon, both by one stage and by all stages.
One stage
Code:
def pbForceDeEvo(pokemon)
newspecies=pbGetPreviousForm(pokemon.species)
return if !newspecies
return if newspecies==pokemon.species
if newspecies>0
evo=PokemonEvolutionScene.new
evo.pbStartScreen(pokemon,newspecies)
evo.pbEvolution
evo.pbEndScreen
end
end
Code:
def pbForceBabyEvo(pokemon)
newspecies=pbGetBabySpecies(pokemon.species)
return if !newspecies
return if newspecies==pokemon.species
if newspecies>0
evo=PokemonEvolutionScene.new
evo.pbStartScreen(pokemon,newspecies)
evo.pbEvolution
evo.pbEndScreen
end
end
Last edited: