• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Cyndy, May, Hero (Conquest), or Wes - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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

  • 55
    Posts
    9
    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?
     
    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