Script error in event 3 (coords 4,4), map 27 (Lerucean Town)
Exception: NoMethodError
Message: undefined method `pbCheckAble' for #<Interpreter @event_id: 3>
***Full script:
!pbCheckAble(pbGet(1))
Backtrace:
(eval):1:in `execute_script'
033:Interpreter:143:in `eval'
033:Interpreter:143:in `execute_script'
034:Interpreter_Commands:426:in `command_111'
034:Interpreter_Commands:29:in `execute_command'
033:Interpreter:133:in `block in update'
033:Interpreter:90:in `loop'
033:Interpreter:90:in `update'
032:Scene_Map:163:in `block in update'
032:Scene_Map:162:in `loop'
It's your plugin's problem since you are using a 19.1 plugin.i Seem to be getting the following error for some reason
Exception `NameError' at Section402:37 - undefined method `pbInitEffects' for class `PokeBattle_Battler'
Section402:37:in `<class:PokeBattle_Battler>': undefined method `pbInitEffects' for class `PokeBattle_Battler' (NameError)
from Section402:36:in `<main>'
I have tried searching for a reason/fix but im not sure what to do.
Ok, so ignore this. I figured it out and fixed it.I'm currently just trying to get the battle tower to work, but I can't get past the npc walking up before the game crashes with this:
-----------------------
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.9]
Script error in event 1 (coords 1,5), map 56 (Battle Tower)
Exception: NoMethodError
Message: undefined method `[]' for nil:NilClass
***Full script:
pbBattleChallengeBattle
Backtrace:
Challenge_ChooseFoes:46:in `pbGenerateBattleTrainer'
Challenge_BattleChallenge:97:in `pbBattle'
Challenge_Data:10:in `pbBattleChallengeBattle'
(eval):1:in `execute_script'
Interpreter:138:in `eval'
Interpreter:138:in `execute_script'
Interpreter_Commands:434:in `command_111'
Interpreter_Commands:29:in `execute_command'
Interpreter:130:in `block in update'
Interpreter:86:in `loop'
---------------------
If someone could please help me figure out how to get the battle tower to work, I'd be eternally grateful.
#===============================================================================
# Trapping move. Traps for 5 or 6 rounds. Trapped Pokémon lose 1/16 of max HP
# at end of each round.
#===============================================================================
# Set trapping effect duration and info
if user.hasActiveItem?(:GRIPCLAW)
target.effects[PBEffects::Trapping] = (Settings::MECHANICS_GENERATION >= 5) ? 8 : 6
else
target.effects[PBEffects::Trapping] = 5 + @battle.pbRandom(2)
end
A long body or vines are used to wrap and squeeze the target for four to five turns.
Generation V
The accuracy of Wrap changed from 85% to 90%, and lasts four to five turns. If the user is holding a Binding Band, the end turn damage of Wrap will increase from 1/16 to 1/8 of the target's maximum HP. If the user of Wrap is holding a Grip Claw, the duration will be 7 turns.
Generation VI onwards
The end turn damage of Wrap is increased from 1/16 to 1/8 of the target's maximum HP. If the user is holding a Binding Band, the end turn damage of Wrap will increase to 1/6 of the target's maximum HP.
hpLoss = (Settings::MECHANICS_GENERATION >= 6) ? battler.totalhp / 8 : battler.totalhp / 16
if @battlers[battler.effects[PBEffects::TrappingUser]].hasActiveItem?(:BINDINGBAND)
hpLoss = (Settings::MECHANICS_GENERATION >= 6) ? battler.totalhp / 6 : battler.totalhp / 8
end