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

BW Bag script error

  • 2
    Posts
    6
    Years
    • Seen Jun 11, 2022
    I think I might have broke the grass in the game I am making. When ever I encounter a wild pokemon, the game freezes at the moment of encounter, and this pops up:[PokeCommunity.com] BW Bag script error
    What did I break and how do I fix it?
     
    Ok so I had set some metadata and only the first two lines appear before an encounter:

    Script 'BW_Bag' line 1276: NoMethodError occurred.
    undefined method 'length' for nil:Nil Class

    What do I do to fix it?
     
    Back
    Top