Seen 5 Days Ago
Posted 1 Week Ago
3 posts
36 Days
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.

StCooler

Mayst thou thy peace discover.

Online now
Posted 2 Hours Ago
5,272 posts
2.1 Years
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.

Natu @ 5,161
Hatch @ 5,176
Xatu @ Level 100: 5,321
Shiny: No
Points: 70
Buneary @ 5,064
Offered Fully-Raised @ 5,064
2022 Easter Community Pair Challenge
Shiny: Yes
Points: 250
Exeggcute @ 5,064
Offered Fully-Raised @ 5,064
2022 Easter Community Pair Challenge
Shiny: Yes
Points: 0
Girafarig @ 4,983
Hatch @ 4,998
Level 100: 5,158
Shiny: No
Points: 70
Bronzor @ 4,873
Hatch @ 4,888
Bronzong @ Lv 100: 5,073
Shiny: No
Points: 100
Tag-team with Megan
Celebi @ 4,741
Hatch @ 4,756
Level 100 @ 4,981
Shiny: No
Points: 150

My work for Pokémon Essentials: ►Gen 8 move animations (looking for contributors)◄►Pokémon Legends: Arceus content

Seen 1 Day Ago
Posted 5 Days Ago
44 posts
137 Days
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.