• 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.

Even More Fixes and Additions to Help-14's Following Pokemon Script

Hm, maybe try this?

pbAddPokemon(PBSpecies::DEINO,5)
pbPokemonFollow(1)

Still doesn't work, I get the same error message but with a slightly different script (which is the one you told me to write). Also, that "1" shouldn't be the ID of the dependent event?
 
Still doesn't work, I get the same error message but with a slightly different script (which is the one you told me to write). Also, that "1" shouldn't be the ID of the dependent event?

Well, I just tried it out and it worked for me. Can you take a screenshot of your event and then the error as it appears in game?
 
Here they are!

[PokeCommunity.com] Even More Fixes and Additions to Help-14's Following Pokemon Script

[PokeCommunity.com] Even More Fixes and Additions to Help-14's Following Pokemon Script

Hm, I have a suggestion. Instead of using an Poké Ball, why not try to actually have Deino's overworld placed there? I don't know what the actual event entails, but the reason mine worked is perhaps due to the fact that the Pokémon are already there. Here is what my event looks like. Here, the player has encountered the grass starter and has the option of choosing it. Maybe give that a shot?

[PokeCommunity.com] Even More Fixes and Additions to Help-14's Following Pokemon Script
 
Last edited:
And is the id of your event for the starter called dependent or it doesn't matter?
 
Last edited:
Hm, I have a suggestion. Instead of using an Poké Ball, why not try to actually have Deino's overworld placed there? I don't know what the actual event entails, but the reason mine worked is perhaps due to the fact that the Pokémon are already there. Here is what my event looks like. Here, the player has encountered the grass starter and has the option of choosing it. Maybe give that a shot?

I tried that and it showed the same error message. I changed the "1" from the second script and changed it to the Starter's event id and it showed this error message (I don't remember if it's the same as the other):

Spoiler:


Can you explain how your event for the starter works?
 
I tried that and it showed the same error message. I changed the "1" from the second script and changed it to the Starter's event id and it showed this error message (I don't remember if it's the same as the other):

Spoiler:


Can you explain how your event for the starter works?

I have a video up on my channel explaining how to add this script to pokemon essentials
https://www.youtube.com/watch?v=hcDs6rXZ1C8
 
I have a video up on my channel explaining how to add this script to pokemon essentials
https://www.youtube.com/watch?v=hcDs6rXZ1C8

In the video' description, you mentioned you forgot to explain I had to replace this:

# Closes the evolution screen.
def pbEndScreen
Kernel.pbDisposeMessageWindow(@sprites["msgwindow"])
pbFadeOutAndHide(@sprites)
pbDisposeSpriteHash(@sprites)
@viewport.dispose
end

with this:

# Closes the evolution screen.
def pbEndScreen
Kernel.pbDisposeMessageWindow(@sprites["msgwindow"])
pbFadeOutAndHide(@sprites)
pbDisposeSpriteHash(@sprites)
@viewport.dispose
$PokemonTemp.dependentEvents.refresh_sprite
end

Though I didn't find the "def pbEndScene". What Script Editor page is it on? And btw, how do you get that search box? I need to search as you do on the video so my dumb brain can understand.
 
In the video' description, you mentioned you forgot to explain I had to replace this:

# Closes the evolution screen.
def pbEndScreen
Kernel.pbDisposeMessageWindow(@sprites["msgwindow"])
pbFadeOutAndHide(@sprites)
pbDisposeSpriteHash(@sprites)
@viewport.dispose
end

with this:

# Closes the evolution screen.
def pbEndScreen
Kernel.pbDisposeMessageWindow(@sprites["msgwindow"])
pbFadeOutAndHide(@sprites)
pbDisposeSpriteHash(@sprites)
@viewport.dispose
$PokemonTemp.dependentEvents.refresh_sprite
end

Though I didn't find the "def pbEndScene". What Script Editor page is it on? And btw, how do you get that search box? I need to search as you do on the video so my dumb brain can understand.

lol, the script section is "PokemonEvolution" to get the search box just either right click in the script sections part and click find or press : ctrl+shift+f.
what this does is change the following sprite after the pokemon has evolved, for some reason its not mentioned on the first page tutorial
 
lol, the script section is "PokemonEvolution" to get the search box just either right click in the script sections part and click find or press : ctrl+shift+f.
what this does is change the following sprite after the pokemon has evolved, for some reason its not mentioned on the first page tutorial

Now the game doesn't even load! It shows this:

Script 'FollowingPokemon' line 187: SyntaxError occurred.

I compared script of that line to the video's, the main thread's, venom12' post's but it looks the same (I think):

if events && events[8]=="Dependent"

WHAT AM I DOING WRONG? AM I UGLY? AM I FAT? I DUNNO WHAT TO DO!!!
Can you help?
 
Now the game doesn't even load! It shows this:

Script 'FollowingPokemon' line 187: SyntaxError occurred.

I compared script of that line to the video's, the main thread's, venom12' post's but it looks the same (I think):

if events && events[8]=="Dependent"

WHAT AM I DOING WRONG? AM I UGLY? AM I FAT? I DUNNO WHAT TO DO!!!
Can you help?


lol, did you make sure to chose show printable version, because if not the formatting breaks the code
 
Kcgcrazy, when you change anything in the script editor, does that affect the 'Scripts' file that comes with essentials? And if yes, how can I reset the scripts back to the default?
yes it does, and to re set it back to before just re download v14 or whatever version you are using and just copy and replace the scripts file in your current folder with the original one, remember always make a backup of your sscript file whenever changing anything in case you cant remember what you changed or if you want to go back to an older version of the scripts u had
 
"Script 'Game_Player_' line 496: NoMethodError occurred
undefined method `dependentEvents' for nil:NilClass"


Help?
 
Hey can you please help me? In "Following Pokemon" there is apparently a syntax error in line 187: "if events && events[8]=="Dependent"". Do you know what I did wrong? Please help.
 
Hey can you please help me? In "Following Pokemon" there is apparently a syntax error in line 187: "if events && events[8]=="Dependent"". Do you know what I did wrong? Please help.


make sure to select "show printable" version of the page because the way the site formats things breaks the scripts
 
Back
Top