Scripts, Tutorials & Tools This forum is for scripts and code, as well as all kinds of tutorials, software, tools and so forth. Remember to give credit!
The thread revival limit does not apply here.

Reply
 
Thread Tools
  #1    
Old November 26th, 2016 (1:49 PM).
Crystal Noel's Avatar
Crystal Noel Crystal Noel is offline
RPG Maker VX Ace Scripter
     
    Join Date: Dec 2012
    Location: United States
    Gender: Male
    Nature: Quirky
    Posts: 222
    This script allows for the player to assign moves to be learned upon evolution as there is in Pokémon Sun and Moon.

    To use, simply place this script above Main and below everything else.

    Code:
    ################################################################################
    # Evolution Moves                                                              #
    #                                                                              #
    # By Crystal Noel                                                              #
    #                                                                              #
    # Current Version: 1.00                                                        #
    ################################################################################
    # The 7th generation of Pokémon introduced the feature of evolution moves, a   #
    # feature where a Pokémon would learn a move upon evolving reguardless of what #
    # level it evolved at. The game defines these as being learned at level 0,     #
    # which is not possible with the compiler, so they are defined here and upon   #
    # evolving a species will check the list and learn the move. Do note that      #
    # moves are not automatically added to the learn list, thus can't be relearned #
    # through the move relearner, unless the move is also part of the Pokémon's    #
    # learnset.                                                                    #
    ################################################################################
    # To use                                                                       #
    # 1.) Place in a new script section below "PSystem_Utilities" but above "Main" #                                                     #
    # 2.) Define which species get evolution moves                                 #
    ################################################################################
    
    ################################################################################
    # Define Evolution Moves Here                                                  #
    ################################################################################
    EVOLUTIONMOVES = {
      # Gen I
      :VENUSAUR   => [:PETALDANCE],
      :CHARIZARD  => [:WINGATTACK],
      :METAPOD    => [:HARDEN],
      :BUTTERFREE => [:GUST],
      :KAKUNA     => [:HARDEN],
      :BEEDRILL   => [:TWINEEDLE],
      :RATICATE   => [:SCARYFACE],
      :ARBOK      => [:CRUNCH],
      :VENOMOTH   => [:GUST],
      :DUGTRIO    => [:SANDTOMB],
      :PERSIAN    => [:SWIFT],
      :PRIMEAPE   => [:RAGE],
      :POLIWRATH  => [:SUBMISSION],
      :KADABRA    => [:KINESIS],
      :ALAKAZAM   => [:ALAKAZAM],
      :MACHAMP    => [:STRENGTH],
      :VICTREEBEL => [:LEAFTORNADO],
      :RAPIDASH   => [:FURYATTACK],
      :SLOWBROW   => [:WIDTHDRAW],
      :MAGNETON   => [:TRIATTACK],
      :DODRIO     => [:TRIATTACK],
      :DEWGONG    => [:SHEERCOLD],
      :MUK        => [:VENOMDRENCH],
      :HAUNTER    => [:SHADOWPUNCH],
      :GENGAR     => [:SHADOWPUNCH],
      :HYPNO      => [:STOMP],
      :HITMONLEE  => [:DOUBLEKICK],
      :HITMONCHAN => [:COMETPUNCH],
      :WEEZING    => [:DOUBLEHIT],
      :RHYDON     => [:HAMMERARM],
      :GYARADOS   => [:BITE],
      :VAPOREON   => [:WATERGUN],
      :JOLTEON    => [:THUNDERSHOCK],
      :FLAREON    => [:EMBER],
      :OMASTAR    => [:SPIKECANNON],
      :KABUTOPS   => [:SLASH],
      :DRAGONITE  => [:WINGATTACK],
      
      # Gen II
      :MEGANIUM   => [:PETALDANCE],
      :FURRET     => [:AGILITY],
      :LEDIAN     => [:SWORDSDANCE],
      :ARIADOS    => [:STOCKPILE, :SWALLOW, :SPITUP],
      :CROBAT     => [:CROSSPOISON],
      :XATU       => [:AIRSLASH],
      :AMPHAROS   => [:THUNDERPUNCH],
      :BELLOSSOM  => [:MAGICALLEAF],
      :SUDOWOODO  => [:SLAM],
      :ESPEON     => [:CONFUSION],
      :UMBREON    => [:PURSUIT],
      :FORRETRESS => [:MIRRORSHOT, :AUTOTOMIZE],
      :MAGCARGO   => [:SHELLSMASH],
      :PILOSWINE  => [:FURYATTACK],
      :OCTILLERY  => [:OCTOZOOKA],
      :HITMONTOP  => [:ROLLINGKICK],
      
      # Gen III
      :GROVYLE   => [:FURYCUTTER],
      :SCEPTILE  => [:DUALCHOP],
      :COMBUSKEN => [:DOUBLEKICK],
      :BLAZIKEN  => [:BLAZEKICK],
      :MARSHTOMP => [:MUDSHOT],
      :MIGHTYENA => [:SNARL],
      :SILCOON   => [:HARDEN],
      :BEAUTIFLY => [:GUST],
      :CASCOON   => [:HARDEN],
      :DUSTOX    => [:GUST],
      :LOMBRE    => [:RAZORLEAF],
      :PELIPPER  => [:PROECT],
      :SLACKING  => [:SWAGGER],
      :NINJASK   => [:DOUBLETEAM, :SCREECH, :FURYCUTTER],
      :LOUDRED   => [:BITE],
      :EXPLOUD   => [:CRUNCH],
      :SWALOT    => [:BODYSLAM],
      :SHARPEDO  => [:SLASH],
      :CAMERUPT  => [:ROCKSLIDE],
      :GRUMPIG   => [:TEETERDANCE],
      :VIBRAVA   => [:DRAGONBREATH],
      :FLYGON    => [:DRAGONCLAW],
      :CACTURNE  => [:SPIKYSHIELD],
      :ALTARIA   => [:DRAGONBREATH],
      :WHISCASH  => [:THRASH],
      :CRAWDAUNT => [:SWIFT],
      :CLAYDOL   => [:HYPERBEAM],
      :MILOTIC   => [:WATERPULSE],
      :DUSCLOPS  => [:SHADOWPUNCH],
      :GLALIE    => [:FREEZEDRY],
      :SEALEO    => [:SWAGGER],
      :WALREIN   => [:ICEFANG],
      :SHELLGON  => [:PROTECT],
      :SALAMENCE => [:FLY],
      :METANG    => [:CONFUSION, :METALCLAW],
      :METAGROSS => [:HAMMERARM],
      
      # Gen IV
      :TORTERRA   => [:EARTHQUAKE],
      :MONFERNO   => [:MACHPUNCH],
      :INFERNAPE  => [:CLOSECOMBAT],
      :PRINPLUP   => [:METALCLAW],
      :EMPOLEON   => [:AQUAJET],
      :STARAPTOR  => [:CLOSECOMBAT],
      :BIBAREL    => [:WATERGUN],
      :KRICKETUNE => [:FURYCUTTER],
      :RAMPARDOS  => [:ENDEAVOR],
      :BASTIODON  => [:BLOCK],
      :WORMADAM   => [:QUIVERDANCE],
      :MOTHIM     => [:QUIVERDANCE],
      :VESPIQUEN  => [:SLASH],
      :CHERRIM    => [:PETALDANCE],
      :LOPUNNY    => [:RETURN],
      :PURUGLY    => [:SWAGGER],
      :SKUNTANK   => [:FLAMETHROWER],
      :BRONZONG   => [:BLOCK],
      :GABITE     => [:DUALCHOP],
      :GARCHOMP   => [:CRUNCH],
      :LUCARIO    => [:AURASPHERE],
      :MAGNEZONE  => [:TRIATTACK],
      :LEAFEON    => [:RAZORLEAF],
      :GLACEON    => [:ICYWIND],
      :GALLADE    => [:SLASH],
      :FROSLASS   => [:OMINOUSWIND],
      
      # Gen V
      :PIGNITE    => [:ARMTHRUST],
      :SAMUROTT   => [:SLASH],
      :WATCHOG    => [:CONFUSERAY],
      :GIGALITH   => [:POWERGEM],
      :EXCADRILL  => [:HORNDRILL],
      :SEISMITOAD => [:ACID],
      :SWADLOON   => [:PROTECT],
      :LEAVANY    => [:SLASH],
      :WHIRLIPEDE => [:IRONDEFENSE],
      :SCOLIPEDE  => [:BATONPASS],
      :DARMANITAN => [:HAMMERARM],
      :COHAGRIGUS => [:SCARYFACE],
      :ZOROARK    => [:NIGHTSLASH],
      :REUNICLUS  => [:DIZZYPUNCH],
      :SAWSBUCK   => [:HORNLEECH],
      :GALVANTULA => [:STICKYWEB],
      :FERROTHORN => [:POWERWHIP],
      :KINKLANG   => [:MAGNETICFLUX],
      :ELEKTROSS  => [:CRUNCH],
      :BEARTIC    => [:ICICLECRASH],
      :GOLURK     => [:HEAVYSLAM],
      :BRAVIARY   => [:SUPERPOWER],
      :MANDIBUZZ  => [:BONERUSH],
      :VOLCARONA  => [:QUIVERDANCE],
      
      # Gen VI
      :QULLADIN    => [:HEEDLEARM],
      :CHESNAUGHT  => [:SPIKYSHIELD],
      :DELPHOX     => [:MYSTICALFIRE],
      :GRENINJA    => [:WATERSHURKIN],
      :FLETCHINDER => [:EMBER],
      :SPEWPA      => [:PROTECT],
      :VIVILLON    => [:GUST],
      :GOGOAT      => [:AERIALACE],
      :PANGORO     => [:BULLETPUNCH],
      :DRAGALGE    => [:TWISTER],
      :CLAWITZER   => [:AURASPHERE],
      :TYRANTRUM   => [:ROCKSLIDE],
      :AURORUS     => [:FREEEDRY],
      :SYLVEON     => [:FAIRYWIND],
      :GOODRA      => [:AQUATAIL],
      :TREVENANT   => [:SHADOWCLAW],
      :AVALUGG     => [:BODYSLAM],
      
      # Gen VII
      :DECIDUEYE   => [:SPIRITSHACKLE],
      :INCINEROAR   => [:DARKESTLARIAT],
      :PRIMERINA    => [:SPARKLINGARIA],
      :TOUCANNON    => [:BEAKBLAST],
      :CHARJABUG    => [:CHARGE],
      :VIKAVOLT     => [:THUNDERBOLT],
      :CRABOMINABLE => [:ICEPUNCH],
      :RIBOMBEE     => [:POLLENPUFF],
      :LYCANROC     => [:ACCELEROCK],
      :TOXAPEX      => [:BANEFULBUNKER],
      :LURANTIS     => [:PETALBLIZZARD],
      :SALAZZLE     => [:CAPTIVATE],
      :BEWEAR       => [:BIND],
      :STEENEE      => [:DOUBLESLAP],
      :TSAREENA     => [:TROPKICK],
      :GOLISOPOD    => [:FIRSTIMPRESSION],
      :SILVALLY     => [:MULTIATTACK],
      :HAKAMOO      => [:SKYUPPERCUT],
      :KOMMOO       => [:CLANGINGSCALES],
      :COSMOEM      => [:COSMICPOWER],
      :SOLGALEO     => [:SUNSTEELSTRIKE],
      :LUNALA       => [:MOONGEISTBEAM],
    }
    
    # This class stores data on each Pokemon.  Refer to $Trainer.party for an array
    # of each Pokemon in the Trainer's current party.
    class PokeBattle_Pokemon
      
      attr_accessor(:evolving)       # Current Total HP
      
      alias initializeEvolutionMoves initialize
      def initialize(species,level,player=nil,withMoves=true)
        initializeEvolutionMoves(species,level,player,withMoves)
        @evolving=false
      end
      
    ################################################################################
    # Moves                                                                        #
    ################################################################################
    
    # Returns if the Pokémon is evolving.
      def evolving
        return @evolving
      end
    
    # Returns a list of moves learned upon evolving, with the current level as the
    # learn level
      def getEvolutionMoves
        name=getConstantName(PBSpecies,@species).to_sym
        if EVOLUTIONMOVES[name] && @evolving
          movelist = []
          EVOLUTIONMOVES[name].each do |move|
            movelist.push([level,getID(PBMoves,move)])
          end
          return movelist
        else
          return []
        end
      end
    
    # Returns the list of moves this Pokémon can learn by levelling up.
      alias getMoveListEvolutionMoves getMoveList
      def getMoveList
        return getEvolutionMoves + getMoveListEvolutionMoves
      end
      
    end
    
    class PokemonEvolutionScene
    
    # Opens the evolution screen
      alias pbEvolutionEvolutionMoves pbEvolution
      def pbEvolution(cancancel=true)
        @pokemon.evolving = true
        pbEvolutionEvolutionMoves(cancancel)
        @pokemon.evolving = false
      end
      
    end
    __________________

    Reply With Quote
      #2    
    Old November 26th, 2016 (2:41 PM).
    Rot8er_ConeX's Avatar
    Rot8er_ConeX Rot8er_ConeX is offline
       
      Join Date: May 2015
      Location: The Dissa Region
      Gender: Male
      Posts: 822
      For people using this script, might want to double-check the Pokemon names. The Gen V mummy Pokemon gets part of its name censored, and it causes a syntax error.

      EDIT: This is fixed by clicking "show printable version" in thread tools to the upper right
      __________________
      Features of Pokemon Entropy

      The black circular "doodles" in the lower right corner of my avatar are actually my username written in Gallifreyan. Yes I'm a Whovian.
      Reply With Quote
        #3    
      Old February 25th, 2017 (7:51 AM).
      rigbycwts's Avatar
      rigbycwts rigbycwts is offline
      Hmm, hmm.
         
        Join Date: Mar 2013
        Gender: Male
        Nature: Timid
        Posts: 98
        There are some Pokemon who have a different move learned upon evolving if its form is an alternate form (e.g. Lycanroc). Perhaps this should be incorporated in some way.
        __________________
        Coming soon: Pokemon Collective and Mercantile Versions.

        My college-life-advice blog.
        Reply With Quote
          #4    
        Old August 27th, 2017 (11:23 AM). Edited August 27th, 2017 by zerokid.
        zerokid's Avatar
        zerokid zerokid is offline
           
          Join Date: Jul 2017
          Location: England
          Gender: Female
          Nature: Calm
          Posts: 75
          Sorry to necropost, but hopefully this will be useful to people who got here through Google.

          I wanted the same features as rigbycwts and so I've made some edits to the original script, as well as corrected various errors that I found.

          I added every move found here serebii.net/sunmoon/evolutionmoves.shtml, but I notice they made quite a few mistakes. There may be more than this, so let me know if you find any:
          • Kantonian Sandslash learns Crush Claw
          • Nuzleaf, not Lombre, learns Razor Leaf
          • Probopass learns Tri-Attack
          • Boldore, not Gigalith, learns Power Gem
          • Eelektrik, not Eelektross, learns Crunch
          Alolan forms are considered to be form 1 here.

          Note: as Rot8er_ConeX suggests, a certain Pokemon name is censored. This is fixed by clicking "show printable version" in thread tools to the upper right.

          Code:
          ################################################################################
          # Evolution Moves                                                              #
          #                                                                              #
          # By Crystal Noel with edits by Zerokid                                        #
          #                                                                              #
          # Current Version: 1.00                                                        #
          ################################################################################
          # The 7th generation of Pokémon introduced the feature of evolution moves, a  #
          # feature where a Pokémon would learn a move upon evolving reguardless of what #
          # level it evolved at. The game defines these as being learned at level 0,    #
          # which is not possible with the compiler, so they are defined here and upon  #
          # evolving a species will check the list and learn the move. Do note that      #
          # moves are not automatically added to the learn list, thus can't be relearned #
          # through the move relearner, unless the move is also part of the Pokémon's    #
          # learnset.                                                                    #
          ################################################################################
          # To use                                                                      #
          # 1.) Place in a new script section below "PSystem_Utilities" but above "Main" #                                                    #
          # 2.) Define which species get evolution moves                                #
          ################################################################################
          
          ################################################################################
          # Define Evolution Moves Here                                                  #
          ################################################################################
          EVOLUTIONMOVES = {
            # Gen I
            [:VENUSAUR, 0]   => [:PETALDANCE],
            [:CHARIZARD, 0]  => [:WINGATTACK],
            [:METAPOD, 0]    => [:HARDEN],
            [:BUTTERFREE, 0] => [:GUST],
            [:KAKUNA, 0]     => [:HARDEN],
            [:BEEDRILL, 0]   => [:TWINEEDLE],
            [:RATICATE, 0]   => [:SCARYFACE],
            [:RATICATE, 1]   => [:SCARYFACE],
            [:ARBOK, 0]      => [:CRUNCH],
            [:RAICHU, 1]     => [:PSYCHIC],
            [:SANDSLASH, 0]  => [:CRUSHCLAW],
            [:SANDSLASH, 1]  => [:ICICLESPEAR],
            [:NINETALES, 1]  => [:DAZZLINGGLEAM],
            [:VENOMOTH, 0]   => [:GUST],
            [:DUGTRIO, 0]    => [:SANDTOMB],
            [:DUGTRIO, 1]    => [:SANDTOMB],
            [:PERSIAN, 0]    => [:SWIFT],
            [:PERSIAN, 1]    => [:SWIFT],
            [:PRIMEAPE, 0]   => [:RAGE],
            [:POLIWRATH, 0]  => [:SUBMISSION],
            [:KADABRA, 0]    => [:KINESIS],
            [:ALAKAZAM, 0]   => [:KINESIS],
            [:MACHAMP, 0]    => [:STRENGTH],
            [:VICTREEBEL, 0] => [:LEAFTORNADO],
            [:RAPIDASH, 0]   => [:FURYATTACK],
            [:SLOWBRO, 0]    => [:WITHDRAW],
            [:MAGNETON, 0]   => [:TRIATTACK],
            [:DODRIO, 0]     => [:TRIATTACK],
            [:DEWGONG, 0]    => [:SHEERCOLD],
            [:MUK, 0]        => [:VENOMDRENCH],
            [:MUK, 1]        => [:VENOMDRENCH],
            [:HAUNTER, 0]    => [:SHADOWPUNCH],
            [:GENGAR, 0]     => [:SHADOWPUNCH],
            [:EXEGGUTOR, 0]  => [:STOMP],
            [:EXEGGUTOR, 1]  => [:DRAGONHAMMER],
            [:HITMONLEE, 0]  => [:DOUBLEKICK],
            [:HITMONCHAN, 0] => [:COMETPUNCH],
            [:WEEZING, 0]    => [:DOUBLEHIT],
            [:RHYDON, 0]     => [:HAMMERARM],
            [:GYARADOS, 0]   => [:BITE],
            [:VAPOREON, 0]   => [:WATERGUN],
            [:JOLTEON, 0]    => [:THUNDERSHOCK],
            [:FLAREON, 0]    => [:EMBER],
            [:OMASTAR, 0]    => [:SPIKECANNON],
            [:KABUTOPS, 0]   => [:SLASH],
            [:DRAGONITE, 0]  => [:WINGATTACK],
          
            # Gen II
            [:MEGANIUM, 0]   => [:PETALDANCE],
            [:FURRET, 0]     => [:AGILITY],
            [:ARIADOS, 0]    => [:SWORDSDANCE],
            [:CROBAT, 0]     => [:CROSSPOISON],
            [:LANTURN, 0]    => [:STOCKPILE, :SWALLOW, :SPITUP],
            [:XATU, 0]       => [:AIRSLASH],
            [:AMPHAROS, 0]   => [:THUNDERPUNCH],
            [:BELLOSSOM, 0]  => [:MAGICALLEAF],
            [:SUDOWOODO, 0]  => [:SLAM],
            [:ESPEON, 0]     => [:CONFUSION],
            [:UMBREON, 0]    => [:PURSUIT],
            [:FORRETRESS, 0] => [:MIRRORSHOT, :AUTOTOMIZE],
            [:MAGCARGO, 0]   => [:SHELLSMASH],
            [:PILOSWINE, 0]  => [:FURYATTACK],
            [:OCTILLERY, 0]  => [:OCTOZOOKA],
            [:DONPHAN, 0]    => [:FURYATTACK],
            [:HITMONTOP, 0]  => [:ROLLINGKICK],
          
            # Gen III
            [:GROVYLE, 0]   => [:FURYCUTTER],
            [:SCEPTILE, 0]  => [:DUALCHOP],
            [:COMBUSKEN, 0] => [:DOUBLEKICK],
            [:BLAZIKEN, 0]  => [:BLAZEKICK],
            [:MARSHTOMP, 0] => [:MUDSHOT],
            [:MIGHTYENA, 0] => [:SNARL],
            [:SILCOON, 0]   => [:HARDEN],
            [:BEAUTIFLY, 0] => [:GUST],
            [:CASCOON, 0]   => [:HARDEN],
            [:DUSTOX, 0]    => [:GUST],
            [:NUZLEAF, 0]   => [:RAZORLEAF],
            [:PELIPPER, 0]  => [:PROTECT],
            [:BRELOOM, 0]   => [:MACHPUNCH],
            [:SLAKING, 0]   => [:SWAGGER],
            [:NINJASK, 0]   => [:DOUBLETEAM, :SCREECH, :FURYCUTTER],
            [:LOUDRED, 0]   => [:BITE],
            [:EXPLOUD, 0]   => [:CRUNCH],
            [:SWALOT, 0]    => [:BODYSLAM],
            [:SHARPEDO, 0]  => [:SLASH],
            [:CAMERUPT, 0]  => [:ROCKSLIDE],
            [:GRUMPIG, 0]   => [:TEETERDANCE],
            [:VIBRAVA, 0]   => [:DRAGONBREATH],
            [:FLYGON, 0]    => [:DRAGONCLAW],
            [:CACTURNE, 0]  => [:SPIKYSHIELD],
            [:ALTARIA, 0]   => [:DRAGONBREATH],
            [:WHISCASH, 0]  => [:THRASH],
            [:CRAWDAUNT, 0] => [:SWIFT],
            [:CLAYDOL, 0]   => [:HYPERBEAM],
            [:MILOTIC, 0]   => [:WATERPULSE],
            [:DUSCLOPS, 0]  => [:SHADOWPUNCH],
            [:GLALIE, 0]    => [:FREEZEDRY],
            [:SEALEO, 0]    => [:SWAGGER],
            [:WALREIN, 0]   => [:ICEFANG],
            [:SHELGON, 0]   => [:PROTECT],
            [:SALAMENCE, 0] => [:FLY],
            [:METANG, 0]    => [:CONFUSION, :METALCLAW],
            [:METAGROSS, 0] => [:HAMMERARM],
          
            # Gen IV
            [:TORTERRA, 0]   => [:EARTHQUAKE],
            [:MONFERNO, 0]   => [:MACHPUNCH],
            [:INFERNAPE, 0]  => [:CLOSECOMBAT],
            [:PRINPLUP, 0]   => [:METALCLAW],
            [:EMPOLEON, 0]   => [:AQUAJET],
            [:STARAPTOR, 0]  => [:CLOSECOMBAT],
            [:BIBAREL, 0]    => [:WATERGUN],
            [:KRICKETUNE, 0] => [:FURYCUTTER],
            [:RAMPARDOS, 0]  => [:ENDEAVOR],
            [:BASTIODON, 0]  => [:BLOCK],
            [:WORMADAM, 0]   => [:QUIVERDANCE],
            [:WORMADAM, 1]   => [:QUIVERDANCE],
            [:WORMADAM, 2]   => [:QUIVERDANCE],
            [:MOTHIM, 0]     => [:QUIVERDANCE],
            [:VESPIQUEN, 0]  => [:SLASH],
            [:CHERRIM, 0]    => [:PETALDANCE],
            [:LOPUNNY, 0]    => [:RETURN],
            [:PURUGLY, 0]    => [:SWAGGER],
            [:SKUNTANK, 0]   => [:FLAMETHROWER],
            [:BRONZONG, 0]   => [:BLOCK],
            [:GABITE, 0]     => [:DUALCHOP],
            [:GARCHOMP, 0]   => [:CRUNCH],
            [:LUCARIO, 0]    => [:AURASPHERE],
            [:MAGNEZONE, 0]  => [:TRIATTACK],
            [:LEAFEON, 0]    => [:RAZORLEAF],
            [:GLACEON, 0]    => [:ICYWIND],
            [:GALLADE, 0]    => [:SLASH],
            [:PROBOPASS, 0]  => [:TRIATTACK],
            [:FROSLASS, 0]   => [:OMINOUSWIND],
          
            # Gen V
            [:PIGNITE, 0]    => [:ARMTHRUST],
            [:SAMUROTT, 0]   => [:SLASH],
            [:WATCHOG, 0]    => [:CONFUSERAY],
            [:BOLDORE, 0]    => [:POWERGEM],
            [:EXCADRILL, 0]  => [:HORNDRILL],
            [:SEISMITOAD, 0] => [:ACID],
            [:SWADLOON, 0]   => [:PROTECT],
            [:LEAVANNY, 0]   => [:SLASH],
            [:WHIRLIPEDE, 0] => [:IRONDEFENSE],
            [:SCOLIPEDE, 0]  => [:BATONPASS],
            [:DARMANITAN, 0] => [:HAMMERARM],
            [:COHAGRIGUS, 0] => [:SCARYFACE],
            [:ZOROARK, 0]    => [:NIGHTSLASH],
            [:REUNICLUS, 0]  => [:DIZZYPUNCH],
            [:SAWSBUCK, 0]   => [:HORNLEECH],
            [:SAWSBUCK, 1]   => [:HORNLEECH],
            [:SAWSBUCK, 2]   => [:HORNLEECH],
            [:SAWSBUCK, 3]   => [:HORNLEECH],
            [:GALVANTULA, 0] => [:STICKYWEB],
            [:FERROTHORN, 0] => [:POWERWHIP],
            [:KLINKLANG, 0]  => [:MAGNETICFLUX],
            [:EELEKTRIK, 0]  => [:CRUNCH],
            [:BEARTIC, 0]    => [:ICICLECRASH],
            [:GOLURK, 0]     => [:HEAVYSLAM],
            [:BRAVIARY, 0]   => [:SUPERPOWER],
            [:MANDIBUZZ, 0]  => [:BONERUSH],
            [:VOLCARONA, 0]  => [:QUIVERDANCE],
          
            # Gen VI
            [:QUILLADIN, 0]   => [:NEEDLEARM],
            [:CHESNAUGHT, 0]  => [:SPIKYSHIELD],
            [:DELPHOX, 0]     => [:MYSTICALFIRE],
            [:GRENINJA, 0]    => [:WATERSHURIKEN],
            [:FLETCHINDER, 0] => [:EMBER],
            [:SPEWPA, 0]      => [:PROTECT],
            [:SPEWPA, 1]      => [:PROTECT],
            [:SPEWPA, 2]      => [:PROTECT],
            [:SPEWPA, 3]      => [:PROTECT],
            [:SPEWPA, 4]      => [:PROTECT],
            [:SPEWPA, 5]      => [:PROTECT],
            [:SPEWPA, 6]      => [:PROTECT],
            [:SPEWPA, 7]      => [:PROTECT],
            [:SPEWPA, 8]      => [:PROTECT],
            [:SPEWPA, 9]      => [:PROTECT],
            [:SPEWPA, 10]     => [:PROTECT],
            [:SPEWPA, 11]     => [:PROTECT],
            [:SPEWPA, 12]     => [:PROTECT],
            [:SPEWPA, 13]     => [:PROTECT],
            [:SPEWPA, 14]     => [:PROTECT],
            [:SPEWPA, 15]     => [:PROTECT],
            [:SPEWPA, 16]     => [:PROTECT],
            [:SPEWPA, 17]     => [:PROTECT],
            [:SPEWPA, 18]     => [:PROTECT],
            [:SPEWPA, 19]     => [:PROTECT],
            [:VIVILLON, 0]    => [:GUST],
            [:VIVILLON, 1]    => [:GUST],
            [:VIVILLON, 2]    => [:GUST],
            [:VIVILLON, 3]    => [:GUST],
            [:VIVILLON, 4]    => [:GUST],
            [:VIVILLON, 5]    => [:GUST],
            [:VIVILLON, 6]    => [:GUST],
            [:VIVILLON, 7]    => [:GUST],
            [:VIVILLON, 8]    => [:GUST],
            [:VIVILLON, 9]    => [:GUST],
            [:VIVILLON, 10]   => [:GUST],
            [:VIVILLON, 11]   => [:GUST],
            [:VIVILLON, 12]   => [:GUST],
            [:VIVILLON, 13]   => [:GUST],
            [:VIVILLON, 14]   => [:GUST],
            [:VIVILLON, 15]   => [:GUST],
            [:VIVILLON, 16]   => [:GUST],
            [:VIVILLON, 17]   => [:GUST],
            [:VIVILLON, 18]   => [:GUST],
            [:VIVILLON, 19]   => [:GUST],
            [:GOGOAT, 0]      => [:AERIALACE],
            [:PANGORO, 0]     => [:BULLETPUNCH],
            [:DRAGALGE, 0]    => [:TWISTER],
            [:CLAWITZER, 0]   => [:AURASPHERE],
            [:TYRANTRUM, 0]   => [:ROCKSLIDE],
            [:AURORUS, 0]     => [:FREEZEDRY],
            [:SYLVEON, 0]     => [:FAIRYWIND],
            [:GOODRA, 0]      => [:AQUATAIL],
            [:TREVENANT, 0]   => [:SHADOWCLAW],
            [:AVALUGG, 0]     => [:BODYSLAM],
          
            # Gen VII
            [:DECIDUEYE, 0]    => [:SPIRITSHACKLE],
            [:INCINEROAR, 0]   => [:DARKESTLARIAT],
            [:PRIMARINA, 0]    => [:SPARKLINGARIA],
            [:TOUCANNON, 0]    => [:BEAKBLAST],
            [:CHARJABUG, 0]    => [:CHARGE],
            [:VIKAVOLT, 0]     => [:THUNDERBOLT],
            [:CRABOMINABLE, 0] => [:ICEPUNCH],
            [:RIBOMBEE, 0]     => [:POLLENPUFF],
            [:LYCANROC, 0]     => [:ACCELEROCK],
            [:LYCANROC, 1]     => [:COUNTER],
            [:TOXAPEX, 0]      => [:BANEFULBUNKER],
            [:LURANTIS, 0]     => [:PETALBLIZZARD],
            [:SALAZZLE, 0]     => [:CAPTIVATE],
            [:BEWEAR, 0]       => [:BIND],
            [:STEENEE, 0]      => [:DOUBLESLAP],
            [:TSAREENA, 0]     => [:TROPKICK],
            [:GOLISOPOD, 0]    => [:FIRSTIMPRESSION],
            [:SILVALLY, 0]     => [:MULTIATTACK],
            [:HAKAMOO, 0]      => [:SKYUPPERCUT],
            [:KOMMOO, 0]       => [:CLANGINGSCALES],
            [:COSMOEM, 0]      => [:COSMICPOWER],
            [:SOLGALEO, 0]     => [:SUNSTEELSTRIKE],
            [:LUNALA, 0]       => [:MOONGEISTBEAM],
          }
          
          # This class stores data on each Pokemon.  Refer to $Trainer.party for an array
          # of each Pokemon in the Trainer's current party.
          class PokeBattle_Pokemon
          
            attr_accessor(:evolving)      # Is evolving
          
            alias initializeEvolutionMoves initialize
            def initialize(species,level,player=nil,withMoves=true)
              initializeEvolutionMoves(species,level,player,withMoves)
              @evolving=false
            end
          
          ################################################################################
          # Moves                                                                        #
          ################################################################################
          
          # Returns if the Pokémon is evolving.
            def evolving
              return @evolving
            end
          
          # Returns a list of moves learned upon evolving, with the current level as the
          # learn level
            def getEvolutionMoves
              name=getConstantName(PBSpecies,@species).to_sym
              key=[name, form]
              if EVOLUTIONMOVES[key] && @evolving
                movelist = []
                EVOLUTIONMOVES[key].each do |move|
                  movelist.push([level,getID(PBMoves,move)])
                end
                return movelist
              else
                return []
              end
            end
          
          # Returns the list of moves this Pokémon can learn by levelling up.
            alias getMoveListEvolutionMoves getMoveList
            def getMoveList
              return getEvolutionMoves + getMoveListEvolutionMoves
            end
          
          end
          
          class PokemonEvolutionScene
          
          # Opens the evolution screen
            alias pbEvolutionEvolutionMoves pbEvolution
            def pbEvolution(cancancel=true)
              @pokemon.evolving = true
              pbEvolutionEvolutionMoves(cancancel)
              @pokemon.evolving = false
            end
          
          end
          Reply With Quote
          Reply

          Quick Reply

          Join the conversation!

          Create an account to post a reply in this thread, participate in other discussions, and more!

          Create a PokéCommunity Account
          Thread Tools

          Posting Rules
          You may not post new threads
          You may not post replies
          You may not post attachments
          You may not edit your posts

          BB code is On
          Smilies are On
          [IMG] code is On
          HTML code is Off

          Forum Jump


          All times are GMT -8. The time now is 1:45 AM.