• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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.

Script: [Essentials v17] Following Pokemon v 1.4.1

87
Posts
8
Years
Hi!
I wanted to integrate your script into my game, but I had three questions...
How do you toggle the Pokémon following you? (with a script command or a button?)
With the mini tutorial at the end of the first post...at which parts of the script would you put them in?
Do you have to make the dependent and NPC events in each map?

Thank you!
 
2
Posts
8
Years
  • Age 27
  • Seen Oct 9, 2023
Hello I came here to try to find a solution to an error which I actually do not know if it's quite a mistake could apply everything correctly so that when I lose one batlha and go to the center pokemon the same pokemon that was out of the pokeball he does not want to leave someone help me please

Sorry about the English I am Brazilian and knows how
 
155
Posts
9
Years
  • Age 31
  • Seen Jun 11, 2021
The Following Pokemon script conflicts with your Contest Hall. Whenever I enter the map with the following Pokemon, this error pops up causing the game to crash.
Code:
Exception: NoMethodError

Message: undefined method `<' for #<PokeBattle_Pokemon:0x908c6f8>

Game_Event:164:in `nf_particles_game_map_refresh'

Game_Event:151:in `each'

Game_Event:151:in `nf_particles_game_map_refresh'

ParticleEngine:596:in `refresh'

Game_Event:20:in `nf_particles_game_map_initialize'

ParticleEngine:589:in `initialize'

Game_Map:64:in `new'

Game_Map:64:in `old_setup_bases'

Game_Map:63:in `each'

Game_Map:63:in `old_setup_bases'
 
20
Posts
8
Years
  • Age 29
  • Seen Jan 26, 2020
Hello, the script is amazing and I've used before, now i used again it and had the following error:

CWvvlJy.png


Can you help me?
 
162
Posts
7
Years
  • Age 35
  • Seen today
Hi... Nice work, but i have this issue when i talk with a Pokemon :C

Script"interpreter" line276: RuntimeError Ocurred

Script error within event 6, map 17 (GIMNASIO - CIUDAD CELESTE):
Exception: NoMethodError

Message: Section006:124:in 'effect?'undefined method '>' for
nil:NilClass

***Full script

$PokernonTemp.dependentEvents.talk_to_pokemon

Interpreter:243zin 'pbxecuteScript'
RPG_Sprite:435:in 'effect?'
RPG_Sprite:434:in 'each'
RPG_Sprite:434:in 'effect?'
AnimationSprite:31:in 'update'
AnimationSprite:88:in 'pheno_old_update'
AnimationSprite:87:in 'each'
AnimationSprite:87:in 'pheno_old_update'
BW_Phenornenos:362:in 'water_o|d_update
KleinWaterBubbles:169:in 'old_update'

Thanks for your work!!
 
81
Posts
8
Years
  • Age 22
  • Seen Sep 7, 2019
Making Pokemon Following Messages for Certain Pokemon?

I want certain pokemon to give of specific messages but when I use if isConst(blahlahblah) It doesn't work no error but all Pokemon used the message still.
 
162
Posts
7
Years
  • Age 35
  • Seen today
Hi. me again. A little question.
Is there any way to make the pokemon say certain message when a switch is on and when not, return to their normal expressions?

Example: My Pokémon was wounded in battle and until I reach a pokemon center will keep the same message of pain.

Hugs
 
1,680
Posts
8
Years
  • Age 24
  • Seen today
Hi. me again. A little question.
Is there any way to make the pokemon say certain message when a switch is on and when not, return to their normal expressions?

Example: My Pokémon was wounded in battle and until I reach a pokemon center will keep the same message of pain.

Hugs

Got you covered!

Go to ~ line 509 and add this to the poison line:
Code:
          if $game_switches[92]
            pbWait(70)
            Kernel.pbMessage(_INTL("{1} is barely holding on.",e.name))
            
          elsif e.status==PBStatuses::POISON && e.hp>0 && !e.isEgg? # Pokemon Poisoned
            $scene.spriteset.addUserAnimation(Emo_Poison, pos_x, pos_y-2)
            pbWait(120)
            Kernel.pbMessage(_INTL("{1} is shivering with the effects of being poisoned.",e.name))
I used switch 92, you can pick any number.
Fx8JC66.png

Proof of concept (Yes I did rush the name.)
 
824
Posts
8
Years
That said, why not make it based on the Pokemon's HP instead of a switch?

Code:
         [COLOR="Red"]if e.hp<=e.totalhp/4[/COLOR]
            pbWait(70)
            Kernel.pbMessage(_INTL("{1} is barely holding on.",e.name))
            
          elsif e.status==PBStatuses::POISON && e.hp>0 && !e.isEgg? # Pokemon Poisoned
            $scene.spriteset.addUserAnimation(Emo_Poison, pos_x, pos_y-2)
            pbWait(120)
            Kernel.pbMessage(_INTL("{1} is shivering with the effects of being poisoned.",e.name))

This would make the message appear if their HP is below one fourth of their max HP
 
162
Posts
7
Years
  • Age 35
  • Seen today
Got you covered!

Go to ~ line 509 and add this to the poison line:
Code:
          if $game_switches[92]
            pbWait(70)
            Kernel.pbMessage(_INTL("{1} is barely holding on.",e.name))
            
          elsif e.status==PBStatuses::POISON && e.hp>0 && !e.isEgg? # Pokemon Poisoned
            $scene.spriteset.addUserAnimation(Emo_Poison, pos_x, pos_y-2)
            pbWait(120)
            Kernel.pbMessage(_INTL("{1} is shivering with the effects of being poisoned.",e.name))
I used switch 92, you can pick any number.
Fx8JC66.png

Proof of concept (Yes I did rush the name.)

Amazing job friend :D. This work perfectly. Thank you so so much.


That said, why not make it based on the Pokemon's HP instead of a switch?

Code:
         [COLOR="Red"]if e.hp<=e.totalhp/4[/COLOR]
            pbWait(70)
            Kernel.pbMessage(_INTL("{1} is barely holding on.",e.name))
            
          elsif e.status==PBStatuses::POISON && e.hp>0 && !e.isEgg? # Pokemon Poisoned
            $scene.spriteset.addUserAnimation(Emo_Poison, pos_x, pos_y-2)
            pbWait(120)
            Kernel.pbMessage(_INTL("{1} is shivering with the effects of being poisoned.",e.name))

This would make the message appear if their HP is below one fourth of their max HP

Excelente Job. Just a new amazing feature. Thank you so much.
 
1,805
Posts
7
Years
  • Age 30
  • USA
  • Seen Jan 15, 2024
Downloaded it and everything but not sure about what is the script to activate it? pbPokemonFollow(x)? I tried that but my game crashed and nothing happened with pbTogglePokemonFollowing
 
1,680
Posts
8
Years
  • Age 24
  • Seen today
Downloaded it and everything but not sure about what is the script to activate it? pbPokemonFollow(x)? I tried that but my game crashed and nothing happened with pbTogglePokemonFollowing

It's pbPokemonFollow(x), where x is the ID number of the event that becomes the pokemon.
 

Rinkoou

Awful-Pun Master
54
Posts
7
Years
Whenever I talk to my Pokemon, the game shows the following error message and crashes:
Code:
---------------------------
Pokemon Essentials
---------------------------
Exception: NoMethodError

Message: undefined method `>' for nil:NilClass

RPG__Sprite:123:in `effect?'

RPG__Sprite:434:in `effect?'

RPG__Sprite:433:in `each'

RPG__Sprite:433:in `effect?'

AnimationSprite:31:in `update'

AnimationSprite:88:in `follower_update'

AnimationSprite:87:in `each'

AnimationSprite:87:in `follower_update'

Followers:1768:in `update'

Scene_Map:51:in `updateSpritesets'



This exception was logged in 

C:\Users\*****\Saved Games/Pokemon Essentials/errorlog.txt.

Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK   
---------------------------
If someone can help me, that'll be great.
 
1,680
Posts
8
Years
  • Age 24
  • Seen today
Whenever I talk to my Pokemon, the game shows the following error message and crashes:
Code:
---------------------------
Pokemon Essentials
---------------------------
Exception: NoMethodError

Message: undefined method `>' for nil:NilClass

RPG__Sprite:123:in `effect?'

RPG__Sprite:434:in `effect?'

RPG__Sprite:433:in `each'

RPG__Sprite:433:in `effect?'

AnimationSprite:31:in `update'

AnimationSprite:88:in `follower_update'

AnimationSprite:87:in `each'

AnimationSprite:87:in `follower_update'

Followers:1768:in `update'

Scene_Map:51:in `updateSpritesets'



This exception was logged in 

C:\Users\*****\Saved Games/Pokemon Essentials/errorlog.txt.

Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK   
---------------------------
If someone can help me, that'll be great.

If you scrolled up a bit, someone has posted this exact same error. They fixed it by replacing all of the files. Just make sure Rmxp is closed when you add the animations because you would overwrite the file otherwise.
 

sharzin

the biggest iranian pokemon fan
138
Posts
8
Years
sorry but:
1st: it only works for first pokemon not first available pokemon
2nd: when i black out the follower dont show itself and when i click the game glitches
 
1
Posts
7
Years
  • Age 27
  • Seen Nov 19, 2016
I was wondering if there was a way to disable this in some rooms because I wan't to have the pokemon in your own house and maybe the pokecentre but not others houses, how could this be done?
 
49
Posts
8
Years
  • Age 36
  • Seen Jan 17, 2017
Erro Essentials v16 Following Pokemon

After I put the Elite Battle scripts, my game presented this error, does anyone know how to solve it? I'm not good with scripts, thank you!Sem título.png
 
1,680
Posts
8
Years
  • Age 24
  • Seen today
That is not an EBS error.
You need to type just the number of the id of the event that becomes the pokemon.
Like in my project, my dependent event is 8. So I typed pbPokemonFollow(8)
Make sure that the EBS scripts are under the following pokemon one. That's how I have it in my own project.
 
Back
Top