• 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.

Pixilate Ability Script

  • 19
    Posts
    4
    Years
    • Seen Oct 27, 2023
    Normal-type moves become Fairy type and deal 20% more damage.

    Paste this first in PokeBattle_Move under Normalize:


    def pbType(type,attacker,opponent)
    if isConst?(type,PBTypes,:NORMAL) && attacker.hasWorkingAbility(:PIXILATE)
    type=getConst(PBTypes,:FAIRY) || 0
    end
    return type
    end


    Then paste this in PokeBattle_Move under Flashfire which increases the damage:


    if attacker.hasWorkingAbility(:PIXILATE) &&
    isConst?(type,PBTypes,:FAIRY)
    atkmult=(atkmult*1.2).round
    end


    And at last paste this in PokeBattle_AI under flashfire which also increases the damage:


    #Pixilate
    if skill>=PBTrainerAI.highSkill
    if attacker.hasWorkingAbility(:PIXILATE) &&
    isConst?(type,PBTypes,:FAIRY)
    atk=(atk*1.2).round
    end
    end
     
    I'm pretty sure Pixilate is already coded into Essentials 17 by default.

    Also, you could probably just throw all your custom abilities into a single thread instead of making a new one for each individual ability, if you plan on posting more in the future. Less cluttered that way.

    Or you could just post them in my existing thread that has basically become a "post your custom ability" thread.
     
    Back
    Top