• 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] Edit Ability?

  • 4
    Posts
    3
    Years
    • Seen Dec 11, 2021
    Can someone show me how to modify Slakings truant ability so that it can use healing moves on the turns that it loafs around in Pokemon Essentials?
     
    So, making the assumption that you're on v19. Your edit needs to be in def pbTryUseMove since that's where Truant makes its blocking effect as well.
    Find if !@effects[PBEffects::Truant] and make it if !@effects[PBEffects::Truant] && !move.healingMove?

    This method bypasses the truant turn (so you could technically alternate between attacking and healing without getting blocked). If you didn't want the truant turn to swap when a healing move is used (so that a truant turn would get pushed to the next turn), that should just be a matter of making the same change to the if hasActiveAbility?(:TRUANT) just above it instead. (did not test)
     
    In v17, we can do the first version of the ability edit (where you can alternate healing and attacking turns and not get blocked).

    In def pbTryUseMove (yep, same method), find if self.hasWorkingAbility(:TRUANT) && @effects[PBEffects::Truant] and make it if self.hasWorkingAbility(:TRUANT) && @effects[PBEffects::Truant] && !thismove.isHealingMove?
    and that should be good.
     
    Last edited:
    Back
    Top