• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Akari, Selene, Mint, Solana - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Error when a trainer tries to use an item

  • 1
    Posts
    9
    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!
     
    Isn't your fault. This is a bug that Maruno has already noted and will be corrected in the next version of Essentials Pokémon.
     
    Back
    Top