• 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!
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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] Custom Ability boosts damage of next pokemon's attack

  • 79
    Posts
    9
    Years
    • Seen Jan 12, 2024
    Hello, I'm attempting to script an ability with two different effects:

    In double battles, if both allies go for a damaging attack the same turn, it increases damage by 30% (for both pokemon).

    In single battles, it increases the power of pivot moves (Volt Switch and U-Turn) and also the first move used by the pokemon it pivots into by 30%. It wouldn't boost damage if you directly switched into the next pokemon, only if you use a pivot move.

    So far in Pokebattle_Move, I have:
    Code:
        if attacker.hasWorkingAbility(:PACKHUNTER) && @function==0x0EE
           damagemult=(damagemult*1.3).round
        end

    I'm not really sure where to go from here. I'm guessing it would use turncount==1, but I don't know how I'd link it to the previous pokemon having Pack Hunter and using a pivot move. Any help would be greatly appreciated!
     
    Back
    Top