Resource icon

Resource Following Pokemon

mej71

Novice
Member
Posts
16
#1
mej71 submitted a new resource:

Following Pokemon - Add Pokemon followers to your game (like in HGSS)

This script adds following pokemon to your game (you have to provide your own OW sprites). It is an updated version from the current script tutorial, but modified so that if all goes in one script section.
Fixes in this version:
# * Combined all into one script section for ease of installation
# * Added setting to allow/disallow cycling through pokemon in field
# * Added tone effect to following pokemon if statused (this is pretty neato. You can turn this off with a setting)
# *...
Read more about this resource...
 

kelsey

Trainer
Member
Posts
60
#2
Hey- I'm having an issue and have no idea what I've done wrong. So I followed your instructions and added the script/downloaded animations files/etc and then made the two events. When I go talk to the event with the PokemonFollow script, I get this error:

---------------------------
Pokemon Essentials
---------------------------
Exception: RuntimeError
Message: Script error within event 17, map 168 (Rozovy Town):
Exception: NoMethodError
Message: Section018:27:in `trigger'undefined method `trigger' for nil:NilClass
***Full script:
pbAddPokemonSilent(:BULBASAUR,5)
pbPokemonFollow(16)

Interpreter:243:in `pbExecuteScript'
Game_CommonEvent:58:in `refresh'
Game_CommonEvent:15:in `initialize'
PField_DependentEvents:158:in `new'
PField_DependentEvents:158:in `createEvent'
PField_DependentEvents:505:in `addEvent'
PField_DependentEvents:26:in `pbAddDependency2'
Follower:1219:in `pbPokemonFollow'
(eval):2:in `pbExecuteScript'
Interpreter:1606:in `eval'

Interpreter:276:in `pbExecuteScript'
Interpreter:1606:in `command_355'
Interpreter:494:in `execute_command'
Interpreter:193:in `update'
Interpreter:106:in `loop'
Interpreter:198:in `update'
Scene_Map:103:in `follow_update'
Scene_Map:101:in `loop'
Scene_Map:114:in `follow_update'
Follower:1550:in `update'

This exception was logged in
C:\Users\Kelsey\Saved Games/Pokemon Essentials/errorlog.txt.
Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------

I know I'm probably missing something obvious here... I usually am when I get stuck, but I'd really like to use your script, so if you could help, I'd appreciate it!

****Edit*****Found the solution on Youtube. Had to replace the follow script with this https://pastebin.com/utFZ9ypJ Not sure what the differences are as I didn't read through, but it works perfectly now! Awesome script, and thanks so much!************
 

kelsey

Trainer
Member
Posts
60
#3
Ok- I'm having another issue. After losing a battle, my follower is invisible (though I think still there because I can interact with it). I see that your script says "fixed blacking out issue" but I am unsure if I need to do something to implement this? Can you (or anyone who has resolved this issue) give me the "for Dummies" version of what exactly I need to do to correct the problem? I've been trying everything I can think of for a couple of hours and no luck :(


**Edit** I figured this out too. I was being silly!**
 
Last edited:
#4
Just wanted to say thanks for putting in the time to revising this script that so many people before you had created, and ultimately simplifying it to what it is now! It's so bizarre to see it be so simple when a few years back it was a pipe dream people were stitching together.
Great work as always Mej, keep up the great scripting!!
 

FloofyPanther

Doing it myself and it still isn't done right
Member
Posts
48
#5
I keep on getting this error before surfing:

Script 'Pokemon Follow' line 419 no method error occured
undefined method 'hp' for nil:NilClass



BTW, I'm using essentials BW if that helps you diagnose the problem
 

Marin

kinda done
Administrator
Posts
313
#6
I keep on getting this error before surfing:

Script 'Pokemon Follow' line 419 no method error occured
undefined method 'hp' for nil:NilClass



BTW, I'm using essentials BW if that helps you diagnose the problem
I don't think it's downwards compatible with older versions.
 

The_Don

Rookie
Member
Posts
5
#7
Whenever i go thruw a pond or on a bridge above water my pokemon walks on me or in front of me, how can i fix this?
 

Ryz

That one guy.
Member
Posts
10
#8
Could be wrong... but I don't think it functions with the new essentials...

I know it worked before... I really don't wanna go back to v16.2 as there were some problems with it.


That's the error I get.
 
Posts
4
#9
Hello all. I have a weird bug with following Pokemon. When I black out, either the Pokemon stops following me and I can't get it back, or I get this error. Any ideas on how to fix would be much appreciated. Thanks!


---------------------------
Pokemon Essentials
---------------------------
Exception: NoMethodError
Message: undefined method `-' for nil:NilClass
:739:in `talk_to_pokemon'
:1559:in `update'
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:in `mainFunction'
Main:59

This exception was logged in
C:\Users\Gavin\Saved Games/Pokemon Essentials/errorlog.txt.
Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------
 

Prince AEKO

Rookie
Member
Posts
1
#10
I keep getting this error

" Script ' ' line 1431: Name error occurred.
unidentified method 'pbSwitch' for class 'PokemonScreen' "

I dont know what to do. Help!
 

Nuxel

Rookie
Member
Posts
5
#13
Hey guys and other beings!

So I istalles the Script etc.etc. and everything is fine, besides the fact, that the following pokemon is invisible..

someone on here got any idea what's going wrong?
 

Sparta

Someone who does something.
Member
#14
Hey guys and other beings!

So I istalles the Script etc.etc. and everything is fine, besides the fact, that the following pokemon is invisible.
someone on here got any idea what's going wrong?
Do you have graphics for all the follower Pokemon?
 

Nuxel

Rookie
Member
Posts
5
#17
I think, even that is done.
See, when i "activate" the following by speaking to whatever it is activeted by, i get that pokeball animation, can toggle the pokemon in and out and interact with, but its just invisible.
 

Sparta

Someone who does something.
Member
#18
I think, even that is done.
See, when i "activate" the following by speaking to whatever it is activeted by, i get that pokeball animation, can toggle the pokemon in and out and interact with, but its just invisible.
Then that means it can't find the sprites you have for the followers. They might have not have a name for the script to read. Mine are listed by their PokeDex number, IE Bulbasaur is 001, Ivysaur is 002, and so on.
 
Top