I'm trying to wrap my head around how I can create a poison point ability but instead of normal poison it causes toxic poison.
This is the script for Poison Point:
Ive tried changing around some stuff but I just run into errors. Like adding @toxic=1 and things like that. I dunno how this script works. My scripting knowledge is fairly basic as Im mostly just able to edit things that are... rather basic. xD Any help would be appreciated.
This is the script for Poison Point:
Code:
BattleHandlers::TargetAbilityOnHit.add(:POISONPOINT,
proc { |ability,user,target,move,battle|
next if !move.pbContactMove?(user)
next if user.poisoned? || battle.pbRandom(100)>=30
battle.pbShowAbilitySplash(target)
if user.pbCanPoison?(target,PokeBattle_SceneConstants::USE_ABILITY_SPLASH) &&
user.affectedByContactEffect?(PokeBattle_SceneConstants::USE_ABILITY_SPLASH)
msg = nil
if !PokeBattle_SceneConstants::USE_ABILITY_SPLASH
msg = _INTL("{1}'s {2} poisoned {3}!",target.pbThis,target.abilityName,user.pbThis(true))
end
user.pbPoison(target,msg)
end
battle.pbHideAbilitySplash(target)
}
)
Ive tried changing around some stuff but I just run into errors. Like adding @toxic=1 and things like that. I dunno how this script works. My scripting knowledge is fairly basic as Im mostly just able to edit things that are... rather basic. xD Any help would be appreciated.