• 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] Error with Z-Moves when pokemon have certain abilities

  • 55
    Posts
    11
    Years
    • Seen Jul 8, 2023
    So I have Amethyst's Z-Move Addon installed and for the most part, it works great. However, issues pop up when the pokemon using the zmoves have certain abilities, such as reckless. No matter what move the pokemon uses, I get this error:

    Spoiler:


    I'm at a loss for how to fix this, I tried a few things but it only creates new errors. If it's not a pokemon with certain abilities using a z-move, everything works fine. All I know is that it has something to do with the pbCalcDamage section of the Z-Move script section.
     
    Code:
    isRecoilMove?
    is not defined in the Z-Move script itself. if you Ctrl + Shift + F for
    Code:
    def isRecoilMove?
    nothing will show up, and that is your error. locate the updated version of that and use Ctrl + H to replace isRecoilMove? with it's v17.2 counterpart and it should work
     
    That's one of the things I tried before as I know isRecoilMove? isn't defined in the z-move script for some reason, but when I do add that, I just get a new error:

    Spoiler:
     
    Back
    Top