• 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.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • 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] Problem with pokemon move in battle wild pokemon or trainer battle.

  • 3
    Posts
    3
    Years
    • Seen May 30, 2022
    Hi all, I'm trying to make a new pokemon game, but in some battle with others trainer or with some wild pokemon it's happening to crush due some move onece it's happen with pursuit used from an opponent Tauros and the second time with natural power from my Lombre. how can I fix this?

    Exception `NoMethodError' at 166:Move_Effects_080-0FF:493 - undefined method `id' for nil:NilClass

    anyone can help me?
    Thanks in advance.
     
    Last edited:
    I've solved partially the problem, I've find out is NATURE GIFT the move crash the game. so i've set from the script this move fail all the time.
     
    I've solved partially the problem, I've find out is NATURE GIFT the move crash the game. so i've set from the script this move fail all the time.

    This is a weird error, can you post the code of the move?
    Have you modified the code somewhere? If not, it's probably a bug in Essentials v19.1.
     
    Natural Gift is improperly coded in v19.1. It crashes if the user has no berry (and npcs love to click it MORE often when they dont have one for some reason). Its fixed in Gen 8 project, so you can download that and look at what they did (I don't feel comfortable posting someone elses code.)

    If you don't want to use Gen 8 project in your game, you can create a seperate game and just copy over the code for the move.
     
    Back
    Top