• 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!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • 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