- 87
- Posts
- 8
- Years
- The Elato Region
- Seen Mar 23, 2024
Hi!
When I was trying to playtest my game, I came across two issues:
1. When I changed the setting in the settings menu to allow you to gain exp when you catch a wild Pokémon, this error appears:
2.When your opponent tries to use items in battle, this error appears:
Is there any way that I can fix these issues?
Thanks for the help!
When I was trying to playtest my game, I came across two issues:
1. When I changed the setting in the settings menu to allow you to gain exp when you catch a wild Pokémon, this error appears:
Code:
Exception: NameError
Message: undefined local variable or method `pbGainExp' for #<PokeBattle_Battle:0xdae6238>
PokeBattle_Battle:229:in `pbThrowPokeBall_ebs'
EliteBattle_Battle:365:in `pbThrowPokeBall'
PItem_ItemEffects:1677
PItem_ItemEffects:1676:in `call'
Event:150:in `trigger'
PItem_Items:256:in `triggerUseInBattle'
PokeBattle_Battle:1583:in `pbRegisterItem'
PokeBattle_Battle:2756:in `pbCommandPhase_ebs'
PokeBattle_Battle:2711:in `loop'
PokeBattle_Battle:2801:in `pbCommandPhase_ebs'
2.When your opponent tries to use items in battle, this error appears:
Code:
Exception: NoMethodError
Message: undefined method `>=' for nil:NilClass
PokeBattle_Battle:1576:in `pbRegisterItem'
PokeBattle_AI:3767:in `pbEnemyShouldUseItem?'
PokeBattle_AI:4056:in `pbDefaultChooseEnemyCommand'
PokeBattle_Scene:2747:in `pbChooseEnemyCommand'
PokeBattle_Battle:2705:in `pbCommandPhase_ebs'
PokeBattle_Battle:2700:in `each'
PokeBattle_Battle:2700:in `pbCommandPhase_ebs'
EliteBattle_Battle:292:in `pbCommandPhase'
EliteBattle_Battle:222:in `pbStartBattleCore'
EliteBattle_Battle:221:in `logonerr'
Thanks for the help!