- 1
- Posts
- 8
- Years
- Seen Mar 20, 2016
I'm making my first gym leader, and gave him some items to use . . . or rather the pre-made ones for brock. nevertheless, when it comes time for him to use an item in battle this happens:
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'
PokeBattle_Battle:2700:in `each'
PokeBattle_Battle:2700:in `pbCommandPhase'
PokeBattle_Battle:2648:in `pbStartBattleCore'
PokeBattle_Battle:2647:in `logonerr'
PokeBattle_Battle:2647:in `pbStartBattleCore'
And he basically skips a turn. The data for him is here
#-------------------
LEADER_Lamber
Lamber
2,FULLRESTORE,FULLRESTORE
ROGGENROLA,12,,ROCKTOMB,HEADBUTT,HARDEN,ROCKPOLISH,0,M,,,,20
RHYHORN,14,SITRUSBERRY,ROCKTOMB,ROAR,DIG,ROCKTOMB,0,F,,,,20
I'd love some help!
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'
PokeBattle_Battle:2700:in `each'
PokeBattle_Battle:2700:in `pbCommandPhase'
PokeBattle_Battle:2648:in `pbStartBattleCore'
PokeBattle_Battle:2647:in `logonerr'
PokeBattle_Battle:2647:in `pbStartBattleCore'
And he basically skips a turn. The data for him is here
#-------------------
LEADER_Lamber
Lamber
2,FULLRESTORE,FULLRESTORE
ROGGENROLA,12,,ROCKTOMB,HEADBUTT,HARDEN,ROCKPOLISH,0,M,,,,20
RHYHORN,14,SITRUSBERRY,ROCKTOMB,ROAR,DIG,ROCKTOMB,0,F,,,,20
I'd love some help!