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

Script: [Essentials v17] Following Pokemon v 1.4.1

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!
 
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
 
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'
 
Hello, the script is amazing and I've used before, now i used again it and had the following error:

[PokeCommunity.com] [Essentials v17] Following Pokemon v 1.4.1


Can you help me?
 
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!!
 
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.
 
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
 
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.
[PokeCommunity.com] [Essentials v17] Following Pokemon v 1.4.1

Proof of concept (Yes I did rush the name.)
 
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
 
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.
[PokeCommunity.com] [Essentials v17] Following Pokemon v 1.4.1

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.
 
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
 
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.
 
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.
 
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?
 
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![PokeCommunity.com] [Essentials v17] Following Pokemon v 1.4.1
 
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