• 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] WORKS - For a new Ability effect

  • 12
    Posts
    7
    Years
    Hi, I would like to create a new Ability for a "new Pokémon" in my game (it's a legendary).
    The effect of this Ability is simple, Normal attacks keep their basic affinities, but are super effective against some types (Steel, Dragon, Water, and more).

    I tried to do it myself, I'll continue to try if no one know how to do.

    Thank you for your help.
     
    Last edited:
    I suggest you check out how Scrappy is implemented. It basically changes the type affinity for the Normal type. You can adapt its code to your ability.
     
    It's work now! Thank you very much StCooler.

    The code in the script "Move_UsageCalculation
    Spoiler:
     
    It's work now! Thank you very much StCooler.

    The code in the script "Move_UsageCalculation
    Spoiler:

    Do test it but from what I see, it looks good :)
     
    I tested it and it works. The Pokémon with this Ability sees its Normal type Attacks become super effective against the indicated types (like Grass), while keeping the other affinities. A Pokémon with Ghost and Grass types is insensitive. It's neutral against a Rock and Grass types.
    I had trouble placing the code without problems, I hope it won't cause problems with the Ability Scrappy or other codes here.
     
    Back
    Top