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

Alternative Freeze Dry script

  • 29
    Posts
    7
    Years
    • Seen Feb 8, 2024
    Hey guys, I've been working on some original coding for moves and I was looking at Freeze Dry and realized it had the same function code as Flying Press which is not really accurate. I was thinking if there was any code to modify total damage done to Water types as 4x the base.

    So for example, regularly Ice type moves would do half damage to Water types, but if we could put in a special condition that multiplies the damage done to Water types by 4 we could in some way better accurately mimic the Freeze Dry effect.

    What do you think?
     
    I don't think the function code for Flying Press and Freeze Dry works by itself. I changed Flying Press funtion once, but the move performed the same. The other code behind the two moves looks like it's located in PokeBattle_Move.


    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

    I think that it is correct.
     
    Back
    Top