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