• 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.

Making more moves like Freeze-Dry

  • 58
    Posts
    8
    Years
    • Seen Oct 6, 2019
    I want to make a move for Poison Pokemon that is super effective against Steel types. I'm leaning towards the name "Corrosive Acid".

    Also, I'd like to give Fire Pokemon such a move against Rock types. "Moltenize" maybe?

    How would I code these?
     
  • 296
    Posts
    9
    Years
    That's simple. In PokémonBattle_Move script section, after this:

    Code:
        if @function==0x135 && !attacker.effects[PBEffects::Electrify] # Freeze-Dry
          mod1=4 if isConst?(otype1,PBTypes,:WATER)
          if isConst?(otype2,PBTypes,:WATER)
            mod2=(otype1==otype2) ? 2 : 4
          end
          if isConst?(otype3,PBTypes,:WATER)
            mod3=(otype1==otype3 || otype2==otype3) ? 2 : 4
          end
        end

    You have to paste this:

    Code:
        if isConst?(@id,PBMoves,:CORROSIVEACID) && !attacker.effects[PBEffects::Electrify] # Corrosive Acid
          mod1=4 if isConst?(otype1,PBTypes,:STEEL)
          if isConst?(otype2,PBTypes,:STEEL)
            mod2=(otype1==otype2) ? 2 : 4
          end
          if isConst?(otype3,PBTypes,:STEEL)
            mod3=(otype1==otype3 || otype2==otype3) ? 2 : 4
          end
        end
    
        if isConst?(@id,PBMoves,:MOLTENIZE) && !attacker.effects[PBEffects::Electrify] # Moltenize
          mod1=4 if isConst?(otype1,PBTypes,:ROCK)
          if isConst?(otype2,PBTypes,:ROCK)
            mod2=(otype1==otype2) ? 2 : 4
          end
          if isConst?(otype3,PBTypes,:ROCK)
            mod3=(otype1==otype3 || otype2==otype3) ? 2 : 4
          end
        end
     
    Back
    Top