• 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.
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • 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] Evolve at certain level while holding item

  • 46
    Posts
    8
    Years
    I'm trying to make a custom script in Pokemon_Evolutions page and my aim was to make Pokemon that normal evolve through trade level up to evolve instead. Eg: Electabuzz evolves at level 40 while holding the electirizer. Problem is that no matter what I do I can't seem to get this to work and I'm wondering if I got get some help please.
     
    Have you tried looking at ItemX - ItemMale, ItemFemale, ItemDay, ItemNight scripts? Copying them and then changing the copy to ItemLevel?
     
    I've made a custom evolution form that I think is the one. The Pokémon evolves after leveling up while holding the set item at the defined level.

    when PBEvolution::Custom1
    return poke if isConst?(pokemon.item,PBItems,:XXX) && pokemon.level>=level

    XXX is the name of the item that the Pokémon must hold. All that's left to do is to set the level to evolve for that one Pokémon.
    But there's one thing I haven't figured yet. How to make the item disappear after the evolution
     
    I've made a custom evolution form that I think is the one. The Pokémon evolves after leveling up while holding the set item at the defined level.


    XXX is the name of the item that the Pokémon must hold. All that's left to do is to set the level to evolve for that one Pokémon.
    But there's one thing I haven't figured yet. How to make the item disappear after the evolution

    Thanks. I did something similar but I had the level code from item day not level up normally.
     
    Back
    Top