• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
  • Reminder: AI-generated content is not allowed on the forums per the Rules and Regulations. Please contact us if you have any questions!
Following Pokemon EX

Resource Following Pokemon EX 2.4.1

Golisopod User updated Following Pokemon EX with a new update entry:

Bug fixes

# Following Pokemon EX - Changelog
## Bug Fixes
### Follower Desync After Battle
- Fixed: Follower Pokemon now correctly teleports to player position after battle
### Single Pokemon Surfing Sprite Issue
- Fixed: When player has only one Pokemon, it now properly displays swimming sprite while surfing

Read the rest of this update entry...
 
I came to report an issue that my Follower Pokemon appear on my character after battles but then I see that, for some reason, this is intentional? Why is this? Could it be changed so that the Follower Pokemon appear behind you instead of on top of you? It looks so bad getting out of a battle and having my Pokemon displayed on top of my character's sprite lol.
 
Following Pokemon sprite is still strange while surfing. When player's first able pokemon is using surfing, the follower sprite is still not hidden properly until opening and closing pause menu.
 
I've noticed an issue where if a Pokemon is holding a Mega Stone. The following pokemon doesn't show up for that mon. Any fixes for that?
 
Wait what? So I can't have a Pokemon hold a Mega Stone if I want it to follow behind me? Why would that be the case? How does that make sense?
Pokémon only undergo mega evolution during battle, and not randomly and permanently in the world. No one is stopping you from rewriting the code so that it works the way you want it to.
 
Wait what? So I can't have a Pokemon hold a Mega Stone if I want it to follow behind me? Why would that be the case? How does that make sense?
I mean, you're not supposed to use a battle-exclusive gimmick outside of battle. Just like you can't Terastallize or Dynamax your Pokémon outside of battle. Does that make things clear for you?
 
I mean, you're not supposed to use a battle-exclusive gimmick outside of battle. Just like you can't Terastallize or Dynamax your Pokémon outside of battle. Does that make things clear for you?
No and it has nothing at all to do with what I said unless I'm horribly misunderstanding you guys.

I'm not talking about trying to USE the Mega Stone outside of battle. From what was said, just holding the stone at all negates it from following you. So (again if I'm understanding this correctly), if I'm walking around with my Charizard walking behind me and then I decide to give him a Mega Stone to hold for an upcoming battle, he will just disappear behind me?

That is what was said and how I'm understanding it. No one said anything about using the item in the overworld.
 
No and it has nothing at all to do with what I said unless I'm horribly misunderstanding you guys.

I'm not talking about trying to USE the Mega Stone outside of battle. From what was said, just holding the stone at all negates it from following you. So (again if I'm understanding this correctly), if I'm walking around with my Charizard walking behind me and then I decide to give him a Mega Stone to hold for an upcoming battle, he will just disappear behind me?

That is what was said and how I'm understanding it. No one said anything about using the item in the overworld.
I think this happens because the script expects the item that change the form to reflect the Pokémon sprite in some way, and since that graphic doesn't exist, it simply becomes invisible

A band-aid fix for this would be to create a failsafe or fallback to the Pokémon's default form if the sprite for that form doesn't exist. Or simply change the script to show the unique battle forms sprites
 
For anyone who wants this to no longer place followers directly on the player after battles, and instead place the follower behind the trainer.
Or, if the spot behind the trainer is full, check the other directions around the player. If somehow ALL of those are full, then resign to place the follower on the player.

I didn't like the look of followers colliding with the player after every battle, so here's a fix for others who also dislike that.

Go to the script additions folder, under refresh.rb

Starting on line 156, here's the new code to paste in.



#-------------------------------------------------------------------------------
# Queue a Following Pokemon refresh after the end of a battle, put it behind the player, unless that's full, then take the next open spot - Thane S
#-------------------------------------------------------------------------------
module BattleCreationHelperMethods
class << self
alias __followingpkmn__after_battle after_battle unless method_defined?(:__followingpkmn__after_battle)
end

def self.after_battle(*args)
__followingpkmn__after_battle(*args) #default after-battle logic

if FollowingPkmn.can_check? && FollowingPkmn.get_event #only do this if you had followers out
event = FollowingPkmn.get_event
player = $game_player
map = $game_map

directions = case player.direction
when 2 then [[0, -1], [-1, 0], [1, 0], [0, 1]] #when facing down, put follower above
when 4 then [[1, 0], [0, -1], [0, 1], [-1, 0]] #when facing left, put to the right
when 6 then [[-1, 0], [0, -1], [0, 1], [1, 0]] #when facing right, put to left
when 8 then [[0, 1], [-1, 0], [1, 0], [0, -1]] #when facing up, but below
end

placed = false #verify we actually placed the follower, just in case

directions.each do |dx, dy|
x = player.x + dx
y = player.y + dy

if map.valid?(x, y) && #tile is on map
map.passable?(x, y, 10) && #you can walk on tile
!map.events.values.any? { |e| e.x == x && e.y == y && !e.through } #no trainers or anything on the tile
event.moveto(x, y) #then we place the follower on that spot
placed = true
break
end
end

event.moveto(player.x, player.y) unless placed #do the original logic of dumping the follower on the player if there's nothing open
end

FollowingPkmn.refresh(false)
$PokemonGlobal.call_refresh = true
end
end
 
Back
Top