• 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.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • 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.

[Scripting Question] Fusion evolution question

  • 87
    Posts
    5
    Years
    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
     
    I don't understand your question. I assume that smart is the contest stat (now called clever, apparently), and the markings are those arbitrary things you can put on any of your Pokémon from the PC menu?
     
    I think so, but I can't change them

    I solved that: I had installed Pokemon Birthsign, so it was enough for me to edit the move line in overworld.

    Sorry for the waste of time
     
    Last edited:
    Back
    Top