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

Following Pokemon EX

This script is an update of Mega Mewthree's Achievements System to work in v17, as well as simplifying and streamlining installation.

The Achievement Procs section has to be the one right above main, as it aliases a number of methods just to ensure that it will call the Achievement progress update in the right spot at the right time. The effect of these methods is not changed, it just passes the message along.

Please read "README.txt" for instructions.

Credits:
Mega Mewthree for the original Script
(broken link removed)

Vendily for updating

Get it Here!

You need to actually have a Following Pokemon with you for it to work.


A singular dependent event will not cause a drop in FPS. What will cause a drop in FPS is things like Parallel Processes. Keep those at a minimum and you should be golden.

do parallel processes affect only the map to which they are inserted or all maps?
 
i did have a following pokemon.
Try talking to your Pokemon about 6-8 minutes after starting your game. If your Pokemon gives you an item, that means pbPokemonFound is working.

do parallel processes affect only the map to which they are inserted or all maps?
The map in which it is present.
 
Some issues in your script:

1. Wrong type
2. When you have partner and you set rule is "noPartner", then, you lose a battle, the issue appears.

I suggest method for fix:

1. Here:
Code:
if defined?(footsteps_initialize)
  alias follow_inito footsteps_initialize
end
Change follow_inito into follow_init

2. Instead of you added 'def pbRemoveDependenciesExceptFollower' and rewrite 'def pbStartOver(gameover=false)', you can do something like this:
In class DependentEvents, change
Code:
  def removeAllEvents
    events=$PokemonGlobal.dependentEvents
    events.clear
    @realEvents.clear
    @lastUpdate+=1
  end
into
Code:
  def removeAllEvents
    events=$PokemonGlobal.dependentEvents
    follow = false
    events.each { |i| follow = true if i && i[8]=="FollowerPkmn"}
    if follow
      for i in 0...events.length
        if events[i] && events[i][8] != "FollowerPkmn"
          events[i]=nil
          @realEvents[i]=nil
          @lastUpdate+=1
        end
        events.compact!
        @realEvents.compact!
      end
    else
      events.clear
      @realEvents.clear
      @lastUpdate+=1
    end
  end

Thanks for reading.
 
Some issues in your script:

1. Wrong type
2. When you have partner and you set rule is "noPartner", then, you lose a battle, the issue appears.

I suggest method for fix:

1. Here:
Code:
if defined?(footsteps_initialize)
  alias follow_inito footsteps_initialize
end
Change follow_inito into follow_init

2. Instead of you added 'def pbRemoveDependenciesExceptFollower' and rewrite 'def pbStartOver(gameover=false)', you can do something like this:
In class DependentEvents, change
Code:
  def removeAllEvents
    events=$PokemonGlobal.dependentEvents
    events.clear
    @realEvents.clear
    @lastUpdate+=1
  end
into
Code:
  def removeAllEvents
    events=$PokemonGlobal.dependentEvents
    follow = false
    events.each { |i| follow = true if i && i[8]=="FollowerPkmn"}
    if follow
      for i in 0...events.length
        if events[i] && events[i][8] != "FollowerPkmn"
          events[i]=nil
          @realEvents[i]=nil
          @lastUpdate+=1
        end
        events.compact!
        @realEvents.compact!
      end
    else
      events.clear
      @realEvents.clear
      @lastUpdate+=1
    end
  end

Thanks for reading.

after I make these changes, it looks like the game recognizes a dependent, so I can't use movements like fly / surf.
 
after I make these changes, it looks like the game recognizes a dependent, so I can't use movements like fly / surf.

Nope! It still works normally.
Try it in PE raw.
If you can't use move like Fly or Surf, you changed something, I don't know it.
 
This belonged to the ancient script of the follower Pokémon. Can anyone convert to the Pokémon Follower EX?

Spoiler:


Please, thanks!
 
In your script, there are the issues when Pokemon who give player hold item. This isn't item in list.

Fix for it:
Change
Code:
next true if pbPokemonFound(rand(items.length),2,"{1} is holding a round object...")
into
Code:
next true if pbPokemonFound(items[rand(items.length)],2,"{1} is holding a round object...")
Change
Code:
next true if pbPokemonFound(rand(items.length))
into
Code:
next true if pbPokemonFound(items[rand(items.length)])
 
I have players in my game, I used the script in v17. Now in v18 I brought bugs when transferring the save, how do I fix it? it is very urgent, I need to release a new version now.

The game recognizes the Pokémon that followed the old script in v17! how do I do something, maybe even by event, to correct it?
 
I have players in my game, I used the script in v17. Now in v18 I brought bugs when transferring the save, how do I fix it? it is very urgent, I need to release a new version now.

The game recognizes the Pokémon that followed the old script in v17! how do I do something, maybe even by event, to correct it?

If you've followed the install instructions correctly, you can use the script command pbRemoveDependenciesExceptFollower and it'll work.

This belonged to the ancient script of the follower Pokémon. Can anyone convert to the Pokémon Follower EX?
Nope, it doesn't make sense with how the Followers are set up in this game.

2. When you have partner and you set rule is "noPartner", then, you lose a battle, the issue appears.

Would you mind describing "the issue".
 
Last edited:
If you've followed the install instructions correctly, you can use the script command pbRemoveDependenciesExceptFollower and it'll work.


Nope, it doesn't make sense with how the Followers are set up in this game.



Would you mind describing "the issue".

I followed all the steps, yes, but gave this error when using this command in the current v18 version of Essentials:

---------------------------
Error
---------------------------
Script '[Interpreter]' line 246: RuntimeError occurred.

Script error within event 29 (coords 7,6), map 43 (Laboratório Professor Carvalho):

Exception: NoMethodError

Message: [Follower_Main]:86:in `pbRemoveDependenciesExceptFollower'undefined method `[]=' for nil:NilClass



***Full script:

pbRemoveDependenciesExceptFollower




Backtrace:

Interpreter:197:in `pbExecuteScript'

[Follower_Main]:83:in `each'

[Follower_Main]:83:in `pbRemoveDependenciesExceptFollower'

(eval):1:in `pbExecuteScript'

Interpreter:1458:in `eval'

Interpreter:197:in `pbExecuteScript'

Interpreter:1458:in `command_355'

Interpreter:359:in `execute_command'

Interpreter:155:in `update'

Interpreter:102:in `loop'


---------------------------
OK
---------------------------
 
Spoiler:


If you want to add a command for the trainer to change Pokémon in the open world. Making the job easier of not having to use the Menu, below:
TOGGLEFOLLOWERKEY =: CTRL
add:
ALLOWFIELDSWITCHING = true TOGGLEFIELDSWITCHINGKEY =: R
Now, in [Follower Main] below:
if Input.trigger? (getConst (Input, TOGGLEFOLLOWERKEY)) &&! $ PokemonGlobal.bicycle && ALLOWTOGGLEFOLLOW pbToggleFollowingPokemon end
Add:
if Input.trigger? (getConst (Input, TOGGLEFIELDSWITCHINGKEY)) &&! $ PokemonGlobal.bicycle && $ Trainer.party.size> 1 && ALLOWFIELDSWITCHING $ Trainer.party.push ($ Trainer.party.delete_at (0)) $ PokemonTemp.dependentEvents.come_back (true) end
 
If you've followed the install instructions correctly, you can use the script command pbRemoveDependenciesExceptFollower and it'll work.


Nope, it doesn't make sense with how the Followers are set up in this game.



Would you mind describing "the issue".

This is the error I am facing when transferring a save from v17 to v18. the problem is that my game has a lot of players, it would be very frustrating to lose a save for that.
Help-me please!
https://imgur.com/2HNO812
 
This is the error I am facing when transferring a save from v17 to v18. the problem is that my game has a lot of players, it would be very frustrating to lose a save for that.
Help-me please!
https://imgur.com/2HNO812

Corrected, I used the Essentials command itself:
pbRemoveDependencies ()
Corrected, I used the Essentials command itself:
pbRemoveDependencies ()
and started a new follower with the script
pbPokemonFollow (event_id)
 
Iam new from this community
My English is not good
My Pokemon are still coming after me while I am surfing but my Pokemons are not water type and not flying type Pokemons.
 
How I correct:

---------------------------
Error
---------------------------
Script '[Interpreter]' line 246: RuntimeError occurred.

Script error within event 6 (coords 9,7), map 127 ():

Exception: NoMethodError

Message: [Follower_Main]:86:in `pbRemoveDependenciesExceptFollower'undefined method `[]=' for nil:NilClass



***Full script:

pbRemoveDependenciesExceptFollower




Backtrace:

Interpreter:197:in `pbExecuteScript'

[Follower_Main]:83:in `each'

[Follower_Main]:83:in `pbRemoveDependenciesExceptFollower'

(eval):1:in `pbExecuteScript'

Interpreter:1458:in `eval'

Interpreter:197:in `pbExecuteScript'

Interpreter:1458:in `command_355'

Interpreter:359:in `execute_command'

Interpreter:155:in `update'

Interpreter:102:in `loop'


---------------------------
OK
---------------------------
 
The script has been updated to v1.3.

Many gamebreaking crashes and a few tiny inconsistencies have been fixed.

Instructions have been updated.

Please do not add any code which hasn't been marked by me as a bugfix or an addition of any sort. I will not support or provide any fixes for errors caused by code not added by me, to your game.
 
The script has been updated to v1.3.

Many gamebreaking crashes and a few tiny inconsistencies have been fixed.

Instructions have been updated.

Please do not add any code which hasn't been marked by me as a bugfix or an addition of any sort. I will not support or provide any fixes for errors caused by code not added by me, to your game.

Might I suggest adding a changelog section to the original post or a txt file that comes with a list of changes in the latest download?
 
Back
Top