- 1
- Posts
- 5
- Years
- Seen Aug 10, 2021
I've been working on adding some custom abilities into my game, and after sorting out some syntax errors, I managed to get the game to come on again. The only problem is that when I pick a move in battle, or try to run and can't escape, I get the following message:
It'll then take my PP if I used a move, but nothing will happen, and the message pops up a second time, which I'm assuming is for when the enemy makes its move. When there's no PP left, that message appears normally, which makes the whole thing even more strange. I've not changed any of the lines in question, I've not even touched the Battler script that's shown in the first few errors. All I've done is tried adding a few variants of Pixilate, a special version of Pure Power and a kicking version of Iron Fist.
Does anyone know what's going on here? Any help would be hugely appreciated!
EDIT: After looking around I saw suggestions that 'pbDisplayUseMessage' had been deleted from PokeBattle_Move, but it's still there on line 1316.
EDIT 2: I copied the original PokeBattle_Move and added everything in again, but this time it works absolutely fine for some reason, so at least I've got it working again! :D
Code:
---------------------------
Pokemon Essentials
---------------------------
[Pokémon Essentials version 17.2]
Exception: NoMethodError
Message: undefined method `pbDisplayUseMessage' for #<PokeBattle_Move_156:0xe12d9c0>
PokeBattle_Battler:2999:in `pbUseMove'
PokeBattle_Battler:3363:in `pbProcessTurn'
PokeBattle_Battler:3362:in `logonerr'
PokeBattle_Battler:3362:in `pbProcessTurn'
PokeBattle_Battle:2829:in `pbAttackPhase'
PokeBattle_Battle:2826:in `each'
PokeBattle_Battle:2826:in `pbAttackPhase'
PokeBattle_Battle:2814:in `times'
PokeBattle_Battle:2814:in `pbAttackPhase'
PokeBattle_Battle:2532:in `pbStartBattleCore'
It'll then take my PP if I used a move, but nothing will happen, and the message pops up a second time, which I'm assuming is for when the enemy makes its move. When there's no PP left, that message appears normally, which makes the whole thing even more strange. I've not changed any of the lines in question, I've not even touched the Battler script that's shown in the first few errors. All I've done is tried adding a few variants of Pixilate, a special version of Pure Power and a kicking version of Iron Fist.
Does anyone know what's going on here? Any help would be hugely appreciated!
EDIT: After looking around I saw suggestions that 'pbDisplayUseMessage' had been deleted from PokeBattle_Move, but it's still there on line 1316.
EDIT 2: I copied the original PokeBattle_Move and added everything in again, but this time it works absolutely fine for some reason, so at least I've got it working again! :D
Last edited: