• 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.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • 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.

[Error] Eevee's Form-Changing ability should work but doesn't. Why?

  • 428
    Posts
    5
    Years
    This code is in Battler_UseMove. It is inspired by the code Aegislash's ability Stance Change uses to change his form.

    Code:
        if isSpecies?(:EEVEE) && self.ability == :EEVEELUTION
              move.calcType = move.pbCalcType(self)
            if move.calcType == :WATER
            pbChangeForm(1, _INTL("{1} Eevolved into Vaporeon!", pbThis))
                    elsif move.calcType = :ELECTRIC
            pbChangeForm(2, _INTL("{1} Eevolved into Jolteon!", pbThis))
                            elsif move.calcType = :FIRE
            pbChangeForm(3, _INTL("{1} Eevolved into Flareon!", pbThis))
    end
    end

    I have copypasted Vaporeon, Jolteon, and Flareon into the Pokemon_Forms PBS under their respective numbers. This script looks okay to me but it does nothing ingame. I ensured EEVEELUTION is the only ability Eevee can have, and I ensured it is the ability the Eevee in my party has when playtesting. Everything looks like it should work.
     
    The only bugs I can see is the single = in the elsif statements—they need to be ==.
     
    I fixed that but it's still not working. When my Eevee uses Flamethrower, Surf, or Thunder, nothing happens.

    Code:
     isSpecies?(:EEVEE) && self.ability == :EEVEELUTION
              move.calcType = move.pbCalcType(self)
            if move.calcType == :WATER
            pbChangeForm(1, _INTL("{1} Eevolved into Vaporeon!", pbThis))
                    elsif move.calcType == :ELECTRIC
            pbChangeForm(2, _INTL("{1} Eevolved into Jolteon!", pbThis))
                            elsif move.calcType == :FIRE
            pbChangeForm(3, _INTL("{1} Eevolved into Flareon!", pbThis))
    end
    end
     
    Back
    Top