- 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:
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!
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!