• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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?

429
Posts
4
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.
     
    188
    Posts
    9
    Years
    • Seen Jan 21, 2024
    The only bugs I can see is the single = in the elsif statements—they need to be ==.
     
    429
    Posts
    4
    Years
  • 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