Following Pokemon

I'm not the only one who got in error method when applying this. Every time I've tried to add this to one of my games its caused an error. I actually got one of those games to play, but the pokemon simply weren't following me and it would crash when I tried to speak to the second event again. Even better, it would crash right after playing the lead (supposed to be following) pokemon's cry. Very creepypasta, I loved it. But it's not supposed to do that, I need the game to be useable.

I put the script into an unmodified version of V18, started a new game, and got the same error. here it is:
---------------------------
Pokemon Essentials
---------------------------
[Pokémon Essentials version 18.1]

Exception: NoMethodError

Message: undefined method -' for nil:NilClass

Backtrace:

Following:656:in talk_to_pokemon'

Following:1562:in update'

Scene_Map:229:in main'

Scene_Map:226:in loop'

Scene_Map:231:in main'

Main:45:in mainFunctionDebug'

Main:24:in mainFunction'

Main:24:in pbCriticalCode'

Main:24:in mainFunction'

Main:55
I think this is a great script as well. But I'm having the same problem as ingo3112. I have found however that this problem occurs whenever a parallel process event is present on a map, but I need those events to be running in my game for everything to work the way I want it to.
This script is awesome! I thank you for this . Unfortunately, I only have a few problems, and the chasers often spin sprites on some maps, because it looks like the sprites are pushing you from behind, like pushing you. But that's not always the case, I have sections where everything works perfectly and some where they push or push again, and when I turn the sprite is no longer behind me but next to, below or above me. Does anyone have a solution for me at the start? I would be deeply connected to you if someone had a plan to get that fixed.
Finally! An update to the Following Script after soooo long!

*insert "It's been 4000 years" meme here*
Essential for Pokemon Essentials :D Works great.

I added a small feature to my game; a global flag to temporarily stop the Pokeball animations from appearing, I didn't like them playing when transfering to a new map. Consider this a formal feature request. :)
It works perfectly, i tried it about 3 months ago and i couldn't get it to work i just tried it again and it worked perfectly thank you!
My pokemon is invisible and i get this error after talking to it... Exception: NoMethodError
Message: undefined method '-' for nil:NilClass
Scene_Map:68:in 'main'
Scene_Map:65:in 'loop'
Scene_Map:72:in 'main'
Main:49:in 'mainFunctionDebug'
Main:27:in 'mainFunction'
Main:27:in 'pbCriticalCode'
Main:27: 'mainFunction'
Main:59

Any help would be appreciated, thank you.
Works great, and once you get it started you can easily customize it and make it a great staple of your game! A great feature, and a marvel of Scripting!
while it can be a bit of work to get going, i cant see myself going without my Pokemon following me after having it.
I get this error when i try to use it does any one know why? https://pastebin.com/HiwRaUJ8
mej71
This was a slight mistake, I had just used a random number for the common event since it's required but not used. Re-added it to the settings, pick an unused common event number that is initialized
Really awesome script! It made my game look even more awesome.