FANDOM


Evolution stone that activates trade evolution
This tutorial was written by -FL-. Please give credit.

This tutorial is related to the following pages:

Click here for more tutorials!


This tutorial explains how to add a item that activate trade evolutions like stones evolutions, even with the hold item ones, so to evolve a pokémon like Onix you need to hold the hold item (Metal Coat) and use this stone. Like any item, you need to add in the "items.txt" and in the script. I using the name LINKSTONE, but you can use any name instead, but if you do, remeber to change every LINKSTONE used.

Adding in the items.txt

You can also change the internal number:

526,LINKSTONE,Link Stone,Link Stones,1,2100,"A peculiar stone that makes certain species of Pokémon evolve. It has a link cable pattern.",1,0,0

Adding in the script

In the script section PItem_ItemEffects, around line 286, insert the following highlighted code:

ItemHandlers::UseOnPokemon.add(:FIRESTONE,proc{|item,pokemon,scene|
   if (pokemon.isShadow? rescue false)
     scene.pbDisplay(_INTL("It won't have any effect."))
     next false
   end
   if item!=(PBItems::LINKSTONE)
     newspecies=pbCheckEvolution(pokemon,item)
   else
     newspecies=pbTradeCheckEvolution(pokemon,item)
   end
   if newspecies<=0
     scene.pbDisplay(_INTL("It won't have any effect."))
     next false
   else
     pbFadeOutInWithMusic(99999){
        evo=PokemonEvolutionScene.new
        evo.pbStartScreen(pokemon,newspecies)
        evo.pbEvolution(false)
       evo.pbEndScreen
        scene.pbRefresh
     }
     next true
   end
})

ItemHandlers::UseOnPokemon.copy(:FIRESTONE,
    :THUNDERSTONE,:WATERSTONE,:LEAFSTONE,:MOONSTONE,
    :SUNSTONE,:DUSKSTONE,:DAWNSTONE,:SHINYSTONE,:LINKSTONE)

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.