• 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!
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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] Damage + Disable Effect

  • 29
    Posts
    7
    Years
    • Seen Feb 8, 2024
    Hey guys, I'm having a little trouble scripting a move that does damage as well as disables the last move used. I've played around with it for a while, but it seems like even without the extra code if I put a base attack damage for Disable in moves.txt it just turns into a regular damaging move and doesn't add the Disable effect.

    Is there any way around this? I don't believe I had this issue when I tried coding this move for another fan game in the past.
     
    IIRC some effects only work as non-damaging by default. It's a pretty easy fix in the code though, try comparing disable to an effect that does work for both damaging and non-damaging moves (I think it's an extra function that's the difference).
     
    Back
    Top