- 19
- Posts
- 9
- Years
- Seen Aug 23, 2015
I wanted to try making an ability that added a chance, for select moves, to poison (or any other status problem) the target. I'm no good at scripting, but this is what I thought would be on the right track.
Wanted it to be select moves so both contact and non contact moves could add the chance to poison. Also, because I thought adding a chance for additional status problems on a move that already added one would mess the game up. Am I on the right train of thought or completely off with this?
EDIT: Tried testing it and I couldn't attack.
Code:
if isConst?(attacker.ability,PBAbilities,:POISONSKIN)
if @id == 25 or @id == 56 or @id == 93 or @id == 548 && #Move IDs
self.pbRandom(10)<3 && user.pbCanPoison?(false)
user.pbPoison(target)
pbDisplay(_INTL("{1}'s {2} poisoned {3}!",target.pbThis,
PBAbilities.getName(target.ability),user.pbThis(true)))
end
end
Wanted it to be select moves so both contact and non contact moves could add the chance to poison. Also, because I thought adding a chance for additional status problems on a move that already added one would mess the game up. Am I on the right train of thought or completely off with this?
EDIT: Tried testing it and I couldn't attack.
Last edited: