• 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!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking 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.

[Scripting Question] Can someone help me with my custom ability?

  • 6
    Posts
    3
    Years
    • Seen Apr 24, 2023
    Hello everyone, I am currently developing my fangame after a long break.

    I designed a Pokémon, whose concept revolves around a martial adept who trained his mind and body alike to perfection. I want this Pokémon to check both of the enemy's defenses. If its physical defense is greater than its special defense, all of this Pokémon's moves become special category. All of them. Close combat? Special move. The same vice versa. More special defense? Flamethrower becomes physical.

    Looking through the code, I realized that there is no handler for this type of ability, as it needs to check defenses every time a Pokemon enters battle AND a Pokemon increases or decreases a stat.

    Does anyone have an idea on how to deal with this?

    Thanks in advance.
     
    Back
    Top