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

[Scripting Question] How to make Special Fighting moves Super Effective on Ghosts, while making Physical moves x0 on them?

  • 428
    Posts
    5
    Years
    In my Types.PBS, Ghost is Immune to fighting.

    But as I've seen in the code for how Odor Sleuth and the held item Iron Ball work, this can be bypassed.

    So how do I make Physical Fighting moves deal x0 to Ghosts, and Special Fighting moves deal Super Effective damage to Ghosts?

    def pbCalcTypeMod(moveType,user,target)
    ret = Effectiveness::SUPER_EFFECTIVE_ONE if defType == :GHOST && specialMove? moveType == :FIGHTING
    end
    end
     
    Last edited:
    Back
    Top