• 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!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll 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.

[Custom Feature Question] Help with Abilities that change Physical moves to Special

  • 79
    Posts
    9
    Years
    • Seen Jan 12, 2024
    Anyone know how to do this?

    I want to create two new abilities, one that changes physical attacks to special, and another that changes punching moves specifically to special, and boosts them by 33%

    Any help is appreciated :]
     
    I guess a good place to start is looking at how Iron Fist is able to boost punching moves' damage, and how moves like Psyshock and Secret Sword are able to be special but deal physical damage (obviously you want the reverse, but at least it should give you some pointers).
     
    I guess a good place to start is looking at how Iron Fist is able to boost punching moves' damage, and how moves like Psyshock and Secret Sword are able to be special but deal physical damage (obviously you want the reverse, but at least it should give you some pointers).

    I looked for psyshock's script but it just says that it's handled in superclass def pbCalcDamage
     
    Okay, so look there? Find the part of pbCalcDamage that chooses whether the move should be physical or special, and check for abilities at that point in the code?
     
    You can check def pbIsPhysical?(type) and def pbIsSpecial?(type)
     
    Okay, so look there? Find the part of pbCalcDamage that chooses whether the move should be physical or special, and check for abilities at that point in the code?

    I know it's been almost a month haha, but I haven't been having any luck with this. The closest thing that's already existing is psychock, but it doesn't actually change the special move to physical, it just uses the opponent's defense. I don't know how I would make it so physical moves use the Pokemon's Special Attack stat.
     
    Hm. (broken link removed) apparently has a one-line implementation of an ability that makes all moves special (it's the second block of code).
     
    Last edited:
    Back
    Top