• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • There is an important update regarding account security and 2FA. Please click here for more information.
  • 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.
  • Imgur has blocked certain regions from viewing any images uploaded to their site. If you use Imgur, please consider replacing any image links/embeds you may have on PokéCommunity so everyone can see your images. Click here to learn more.

[Scripting Question] Fusion evolution question

Hi, I was implementing this script under here but I have no idea how markings and "smart value" can work in this script. So I can't use this method.
Can you help me?
p.s.: I'm using the 17.2

Originally posted by: Eboxiv


first i created new evolution methods for slowpoke to evolve and changed them in the pokemon pbs:

Evolutions=SLOWKING,Custom6,KINGSROCK,SLOWBRO,Custom7,

1,1,1,1,1,2,0 # Custom 1-7

# Add code for custom evolution type 5
when PBEvolution::Custom6
return poke if pokemon.smart==255 && pokemon.markings==8 && pokemon.item==level
when PBEvolution::Custom7
return poke if pokemon.smart==255 && pokemon.markings==8

after that i made CLAMP selectable from the party screen:

# Check for hidden moves and add any that were found
if !pkmn.egg? && (
isConst?(move.id,PBMoves,:MILKDRINK) ||
isConst?(move.id,PBMoves,:SOFTBOILED) ||
isConst?(move.id,PBMoves,:CLAMP) ||
HiddenMoveHandlers.hasHandler(move.id)

and then set its effect below the milk drink script:

elsif isConst?(pkmn.moves.id,PBMoves,:CLAMP)
@scene.pbSetHelpText(_INTL("Use on which Pokémon?"))
oldpkmnid=pkmnid
loop do
@scene.pbPreSelect(pkmnid)
[email protected](true)
break if pkmnid<0
newpkmn=@party[pkmnid]
oldlvl=newpkmn.level
oldsmart=newpkmn.smart
oldmark=newpkmn.markings
if newpkmn.species==PBSpecies::SLOWPOKE
if newpkmn.item==PBItems::KINGSROCK || newpkmn.level>=37
newpkmn.smart=255
newpkmn.markings=8
newspecies=pbCheckEvolution(newpkmn)
if newspecies>0
pbFadeOutInWithMusic(99999){
evo=PokemonEvolutionScene.new
evo.pbStartScreen(newpkmn,newspecies)
evo.pbEvolution
evo.pbEndScreen
}
end
newpkmn.level=oldlvl
newpkmn.smart=oldsmart
newpkmn.markings=oldmark
pbDisplay(_INTL("SHELLDER fused with SLOWPOKE."))
@party[oldpkmnid]=nil
@party.compact!
pbHardRefresh
pbRefresh
break
else
pbDisplay(_INTL("it won't work"))
end
else
pbDisplay(_INTL("Why would you do that?"))
end
end
break
 
Back
Top