• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
  • Eevee Expo's webhost has been having technical issues since Nov. 20th and you might be unable to connect to our site. Staff are also facing issues connecting, so please send a DM to Cat on-site or through Discord directly for faster service!
IKazart's NPC Trade Evolution

IKazart's NPC Trade Evolution 1.1

Pokémon Essentials Version
v19.1 ➖

NPC TRADE EVOLUTION​



Hi everyone! IKazart here!

You know those pokemons which evolve only by trading? Such as Kadabra, Haunter, Magmar, Gurdurr, etc.
Well, if you are making a Single Player Pokemon Game, you must watchout for that.
Luckly, you already found the solution! The NPC Trade Evolution Script!

This script creates a function called TradeEvolution(). When you call this function it you ask for a Pokemon to be evolved. If that Pokemon has the correct item to evolve, it will.
This lets you create a NPC that evolves your Pokemon! No need to trade!




INSTALLATION:
  1. Open the Script Editor on your RPG Maker
  2. Create another script class above Main (just to keep it organized, you don't have to)
  3. Copy the script that follows
  4. Paste it on the new class you've created (or in Main)



USAGE:
Just call the TradeEvolution() function on the Script when creating an event.




COMPATIBILITY:
Pokemon Essentials v19.1




SCRIPT:
Ruby:
Expand Collapse Copy
# =============================================================================
# IKazart's NPC Trade Evolution
# Version 1.0 - Compatibility: Pokemon Essentials v19.1
# Contact: Send me a message on Discord: IKazart#6758
# =============================================================================
if !PluginManager.installed?("NPC Trade Evolution")
    PluginManager.register({                                     
      :name    => "NPC Trade Evolution",                            
      :version => "1.0",                                         
      :link    => "https://reliccastle.com/resources/845/", 
      :credits => "IKazart"
    })
end
def TradeEvolution()
    if $Trainer.pokemon_count == 0
        pbMessage(_INTL("There is no Pokémon."))
        return 0
    end
    annot = []
    for pkmn in $Trainer.party
        elig = pkmn.check_evolution_on_trade(self)
        annot.push((elig) ? _INTL("ABLE") : _INTL("NOT ABLE"))
    end
    pbFadeOutIn {
        scene = PokemonParty_Scene.new
        screen = PokemonPartyScreen.new(scene,$Trainer.party)
        screen.pbStartScene(_INTL("Select a Pokemon."),false,annot)
        loop do
            chosen = screen.pbChoosePokemon
            if chosen<0
                screen.pbEndScene
                break
            end
            pkmn = $Trainer.party[chosen]
            newspecies = pkmn.check_evolution_on_trade(self)
            if newspecies
                screen.pbEndScene
                pbFadeOutInWithMusic {
                  evo = PokemonEvolutionScene.new
                  evo.pbStartScreen(pkmn,newspecies)
                  evo.pbEvolution(false)
                  evo.pbEndScreen
                }
                break
            else
                pbMessage(_INTL("I can't evolve this Pokemon."))
            end
        end
    }
end
Credits
IKazart
Author
IKazart
Views
2,346
First release
Last update

Ratings

5.00 star(s) 1 ratings

More resources from IKazart

  • Weather HMs
    v19 Weather HMs
    A script that allows you to chance the overworld weather with Pokemon moves!
Back
Top