- 87
- Posts
- 5
- Years
- Italy
- Seen Oct 25, 2024
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
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