- 1
- Posts
- 5
- Years
- Seen Jul 15, 2020
Hello. So I want to create a held item that increases the user's defense by 20% whilst being held. However, it only boosts the defense if the opponent's attack is of electric, flying or bug type.
I'm having trouble with the last part, if anyone knows if its possible to program this and could help me out:
My script up 'till now:
if opponent.hasWorkingItem(:QUARTZCRYSTAL) && pbIsPhysical?(type)
defmult=(defmult*1.20).round
Thanks in advance!
I'm having trouble with the last part, if anyone knows if its possible to program this and could help me out:
My script up 'till now:
if opponent.hasWorkingItem(:QUARTZCRYSTAL) && pbIsPhysical?(type)
defmult=(defmult*1.20).round
Thanks in advance!