• The Eevee Expo Game Jam #10 has concluded, congratulations to all participants! Now it's time for the judges to play through the games, and you can play along to vote who deserves the community choice spotlight.
    You can check out the submitted games here!
    Play through the games and provide some feedback to the devs while you're at it!
  • Hi, Guest!
    Some images might be missing as we move away from using embedded images, sorry for the mess!
    From now on, you'll be required to use a third party to host images. You can learn how to add images here, and if your thread is missing images you can request them here.
    Do not use Discord to host any images you post, these links expire quickly!
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,326
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