• 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.

NoMethodError when AI tries to use an item?

  • 8
    Posts
    9
    Years
    • Seen Apr 14, 2018
    When I battle the first gym leader, when he tries to use a Potion I get this error message:

    "---------------------------
    Pokemon Essentials
    ---------------------------
    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'

    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'"

    The item is defined and I haven't put them in incorrectly, so I'm almost certain this is a bug. What can I do? I've updated Essentials and that hasn't fixed it.
     
    Back
    Top