- 172
- Posts
- 8
- Years
- Seen Sep 6, 2022
Would anyone be able to help me with scripting a new ability? it's basically intimidate but it lowers the enemy's attack and special attack by 2 stages. I've looked into how to make abilities on the wiki, I've also looked into intimidate itself in the scripts as well as other abilities/attacks that raise or lower stats, I'm just not sure how to format it and I recently had to back track a lot of my progress because of a scripting error and I just don't want to make anymore mistakes haha.
anyways I'd really appreciate the help!
Also I've been getting this error with the Steelworker ability that I haven't been able to fix...
all I did was add this script, not the first sentence obviously.
# In PokeBattle_Move, locate "def pbCalcDamage" and paste this somewhere in the list underneath it:
if attacker.hasWorkingAbility(:STEELWORKER) && isCont?(PBTypes,:STEEL)
damagemult=(damagemult*1.5).round
end
anyways I'd really appreciate the help!
Also I've been getting this error with the Steelworker ability that I haven't been able to fix...
Spoiler:
[Pok?mon Essentials version 17.2]
Exception: NoMethodError
Message: undefined method `isCont?' for #<PokeBattle_Move_01C:0xed39138>
PokeBattle_Move:594:in `pbCalcDamage'
PokeBattle_Move:1276:in `pbEffect'
PokeBattle_MoveEffects:818:in `pbEffect'
PokeBattle_Battler:2730:in `pbProcessMoveAgainstTarget'
PokeBattle_Battler:2686:in `each'
PokeBattle_Battler:2686:in `pbProcessMoveAgainstTarget'
PokeBattle_Battler:3162:in `pbUseMove'
PokeBattle_Battler:3142:in `loop'
PokeBattle_Battler:3165:in `pbUseMove'
PokeBattle_Battler:3363:in `pbProcessTurn'
Exception: NoMethodError
Message: undefined method `isCont?' for #<PokeBattle_Move_01C:0xed39138>
PokeBattle_Move:594:in `pbCalcDamage'
PokeBattle_Move:1276:in `pbEffect'
PokeBattle_MoveEffects:818:in `pbEffect'
PokeBattle_Battler:2730:in `pbProcessMoveAgainstTarget'
PokeBattle_Battler:2686:in `each'
PokeBattle_Battler:2686:in `pbProcessMoveAgainstTarget'
PokeBattle_Battler:3162:in `pbUseMove'
PokeBattle_Battler:3142:in `loop'
PokeBattle_Battler:3165:in `pbUseMove'
PokeBattle_Battler:3363:in `pbProcessTurn'
all I did was add this script, not the first sentence obviously.
# In PokeBattle_Move, locate "def pbCalcDamage" and paste this somewhere in the list underneath it:
if attacker.hasWorkingAbility(:STEELWORKER) && isCont?(PBTypes,:STEEL)
damagemult=(damagemult*1.5).round
end
Last edited: