• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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
8
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