• 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] Activating an ability right before the user is hit by a move

  • 90
    Posts
    7
    Years
    • Seen Nov 24, 2023
    I'm trying to change Color Change so that it switches the user's type to the move it was attacked with BEFORE the user is hit instead of after (similarly to how damage-reducing berries and gems activate), but I don't know how. I don't see any other abilities in the script that activate before a hit lands. In the older version of Essentials, I managed this by putting the script for Color Change above other power-boosting abilities like Technician or Sand Force, but that's not working for v20 due to how each ability is coded. Can anyone help me out on this?
     
    Back
    Top