• 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] [v18] Ability Help

HeroesFightingFear

"The Champion of Alon"
  • 99
    Posts
    5
    Years
    I want to recreate an ability for the Lucario/Mewtwo/Alakazam fusion I was trying to work in.
    Here is the name and description to tell you how it works, as well as an example of how its use would go:

    Special Ability: Eunoia
    "All Psychic-type attacks deal super-effective damage. Amps special-attacking moves in a pinch."
    Ex: "Lucario (Lukewra Forme) used Psychic on Absol! It's super-effective!"
     
    Last edited:
    For Psychic-type attacks dealing super-effective damage, you could find the function "def pbCalcTypeMod(moveType, user, target)" inside Move_Usage_Calculations, then paste this line below the line with Iron Ball:
    Code:
    return (PBTypeEffectiveness::NORMAL_EFFECTIVE * 2) if isConst?(moveType,PBTypes,:PSYCHIC) && user.hasActiveAbility?(:EUNOIA)

    For amping special-attacking moves in a pinch, you can just copy the Overgrow ability handler, and instead of checking if it's a Grass move with "isConst?(type,PBTypes,:GRASS)", check if it's a special move with
    "PBTypes.isSpecialType?(type)".
     
    Back
    Top