• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • 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] Toxic Spikes Damaging Move Issues

  • 76
    Posts
    3
    Years
    • He/Him and They/Them
    • Canada
    • Seen Apr 1, 2025
    In my current project, I'm trying to make a signature move for a Water/Poison Type regional evolution of Croconaw, and my idea was a move that deals damage but also lays down a layer of Toxic Spikes, like the move of the same name. I tried copying the same battle effect that Toxic Spikes uses, but it looks like it doesn't allow for damage to be applied as well. When making a new battle effect for the new move, does anyone know what code I have to put in to make it deal damage?
     
    It looks like the function code for that would be DealDamageAddToxicSpikesToFoeSide, but I don't know whether the equivalent codes for other hazards are supported by base Essentials or require one of Lucidious09's plugins, or whether the effect you want is supported at all without having to copy and modify the scrips for one of the others.
     
    Back
    Top