• 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

1
Posts
6
Years
    • Seen Mar 15, 2018
    This is amazing.

    Does it work with v17.2 Essentials? Been using it with no problems until now. Blacking out results in the sprite disappearing. Then the next time you press the select key it prompts the "Talk to Pokémon" feature and results in a crash.

    Attempted to fix by healing at a center; and also prompting "Starting over" and healing them there.

    I also tried adding:
    "$PokemonTemp.dependentEvents.refresh_sprite"
    in the command list for the nurse. This causes the game to crash as well.

    I followed the installation instructions, and even attempted to reinstall twice in case I had made a blunder on the first go around.

    Line 149 in the script states V15.1 compatibility, so just wondering if that's the latest it has been updated, or if I'm making some sort of mistake. I would really love to use this script, and will revert to V15.1 if need be. Thanks for any and all responses.

    ___________________________________________________________________________________________
    (pokémon talk crash)
    ---------------------------
    Pokemon Essentials
    ---------------------------
    [Pokémon Essentials version 17.2]

    Exception: NoMethodError

    Message: undefined method `-' for nil:NilClass

    Following Pokemon:702:in `talk_to_pokemon'

    Following Pokemon:1533:in `update'

    Scene_Map:234:in `main'

    Scene_Map:231:in `loop'

    Scene_Map:236:in `main'

    Main:49:in `mainFunctionDebug'

    Main:27:in `mainFunction'

    Main:27:in `pbCriticalCode'

    Main:27:in `mainFunction'

    Main:59

    _____________________________________________________________________________________________
    (refresh_sprite crash)
    ---------------------------
    Pokemon Essentials
    ---------------------------
    [Pokémon Essentials version 17.2]

    Exception: NoMethodError

    Message: undefined method `-' for nil:NilClass

    Following Pokemon:702:in `talk_to_pokemon'

    Following Pokemon:1533:in `update'

    Scene_Map:234:in `main'

    Scene_Map:231:in `loop'

    Scene_Map:236:in `main'

    Main:49:in `mainFunctionDebug'

    Main:27:in `mainFunction'

    Main:27:in `pbCriticalCode'

    Main:27:in `mainFunction'

    Main:59
     
    3
    Posts
    6
    Years
    • Seen Mar 28, 2018
    Maltodextrina, just add a sprite for the Pokemon with their internal ID to give them a sprite.


    Thanks for your answers, but please tell me in which part of the script do I add this? because the sprites in the graphics / characters folder, I already added them, even added them to the PBS files. Pokemon, I want to know in which part of the script I add the numbers of the Pokémon, thank you very much and I await your response.
     
    12
    Posts
    8
    Years
    • Seen Aug 2, 2023
    Would you happen to still have a v16 version? I can't update to v17 without breaking some of my other scripts. I'd really appreciate it.
     
    2
    Posts
    7
    Years
    • Seen May 24, 2018
    For those having issues with 'pbswitch' I removed replaced 'class PokemonPartyScreen' with 'class PokemonScreen' at line 1429, and the same at line 1866, and this seemed to fix the issue (I have no idea why)
     
    2
    Posts
    7
    Years
    • Seen May 24, 2018
    I am having a major issue, as some have already mentioned with followers on map transfer, they jump and reset their position to the player, which looks awful, and clearly highlights when one map connects to another. Anyone know of a fix for this?
     
    15
    Posts
    7
    Years
    • Seen Aug 4, 2018
    I got this error when i talk with the pokemon.

    [Pokémon Essentials version 17.2]
    Exception: NoMethodError
    Message: undefined method `>' for nil:NilClass
    RPG__Sprite:124:in `effect?'
    RPG__Sprite:440:in `effect?'
    RPG__Sprite:439:in `each'
    RPG__Sprite:439:in `effect?'
    Sprite_AnimationSprite:31:in `update'
    Sprite_AnimationSprite:86:in `pokeride_update'
    Sprite_AnimationSprite:85:in `each'
    Sprite_AnimationSprite:85:in `pokeride_update'
    Pokeride_0:297:in `updateOldFL'
    HUD:48:in `update'

    I think that's because the version 17.2 of Pokemon Essentials, because in 16 and 17 i dont got this error.
    Any chance to update the system?
     
    Last edited:
    1
    Posts
    6
    Years
    • Seen Jun 10, 2018
    Hi mej71

    I used your script and I tested this, then I see in your script in which there are some problems like

    - In Toogle Following Pokemon, when a first pokemon is dying, you switch other pokemon and return pokemon is dying, an animation "Come-in" appear.
    - When surfing, after battle, a first pokemon is dying or pokemon is a egg, a sprite is appearing ( Water Pokemon- Flying Pokemon)
    - When surfing, a first pokemon is dying, Pokemon reappears after using surf
    - When you use bicycle, a first pokemon is dying, an animation "Come-in" appear

    and I fixed that:

    Spoiler:

    I also added some lines for corresponding to Overworld Shadows-v17 ( Marin).

    Thanks your reading.

    i used your edited version of the code but now i down have any animations of the original code (entering the pokeball, reaction, etc) do you know how it could be fixed??
     
    1
    Posts
    5
    Years
    • Seen Jun 11, 2018
    Hi mej71, about your script, i've found something strange in the def talk_to_pokemon
    Spoiler:


    I think it should be like this
    Spoiler:

    Though it not creating any error yet before i try to insert the Lava Surf event

    I hope you reply if i miss something

    Thankyou!!
     
    1
    Posts
    5
    Years
    • Seen Feb 18, 2020
    I got this error when i use Key Item with key "F"

    [Pokémon Essentials version 17.2]
    Exception: ArgumentError
    Message: wrong number of arguments(2 for 3)
    Following Pokemon:1256:in `triggerCanUseMove'
    Following Pokemon:1256:in `pbCanUseHiddenMove?'
    PScreen_ReadyMenu:310:in `pbUseKeyItem'
    PScreen_ReadyMenu:307:in `each'
    PScreen_ReadyMenu:307:in `pbUseKeyItem'
    PScreen_ReadyMenu:304:in `each'
    PScreen_ReadyMenu:304:in `pbUseKeyItem'
    Scene_Map:219:in `follow_update'
    Following Pokemon:1816:in `update'
    Scene_Map:234:in `main'

    Please help me!
     

    WolfPP

    Spriter/ Pixel Artist
    1,309
    Posts
    5
    Years
  • Unfortunaly I have the same problem with "`pbSwitch' for class `PokemonPartyScreen'"

    Script 'Following Pokemon' line 1431: NameError occurred.
    undefined method `pbSwitch' for class `PokemonPartyScreen'.

    Im using v17.2

    EDIT: Guys, i get it!

    But my pokemon dont switch when i press A o S :/

    What could be?

    EDIT2: DONE!

    Now, a question:
    When i use '$PokemonTemp.dependentEvents.remove_sprite(true)' in nurse joy, and my pokemon is do not showing (i put it in a pokeball), show the animation 'come_in'. How can config this?
    I wanted to show 'come_in' animation only if the pokemon are in overworld... i try to put '$PokemonTemp.dependentEvents.remove_sprite(false)' but this config if i have a pokemon out the pokeball, in overworld too.
    Ty ty!
     
    Last edited:
    20
    Posts
    6
    Years
    • Seen Aug 29, 2020
    hey does anyone know how to make your starter be the only pokemon to follow you like for example make it so when you chose your starter the pokemon you chose to start your adventure becomes the one that follows you forever. unless you toggle it off of course
     

    TatsuR1SE

    Red Dragon
    4
    Posts
    5
    Years
    • Seen Nov 7, 2018
    Help with the "Following Pokemon" script...

    Hey guys. I'm really needing help here, I don't know whats going on. I get this error every time I attempt to use the "Follow Pokemon" script. Everything is fine before the switches get turned on.

    ---------------------------
    Pokemon PJC
    ---------------------------
    [Pokémon Essentials version 17]

    Exception: RuntimeError

    Message: Script error within event 13 (coords 28,12), map 2 (Lappet Town):

    Exception: NoMethodError

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

    ***Full script:

    pbPokemonFollow(6)


    Interpreter:243:in `pbExecuteScript'

    RPG__Sprite:440:in `effect?'

    RPG__Sprite:439:in `each'

    RPG__Sprite:439:in `effect?'

    Sprite_AnimationSprite:31:in `update'

    Sprite_AnimationSprite:86:in `update'

    Sprite_AnimationSprite:85:in `each'

    Sprite_AnimationSprite:85:in `update'

    Scene_Map:41:in `updateSpritesets'

    Scene_Map:35:in `each'



    Interpreter:276:in `pbExecuteScript'

    Interpreter:1606:in `command_355'

    Interpreter:494:in `execute_command'

    Interpreter:193:in `update'

    Interpreter:106:in `loop'

    Interpreter:198:in `update'

    Scene_Map:161:in `follow_update'

    Scene_Map:159:in `loop'

    Scene_Map:168:in `follow_update'

    PokeFollow:1551:in `update'



    Please help me guys. Thanks.
     
    1
    Posts
    6
    Years
  • Hey I'm new to working with Ruby and have been looking through the follow script for an hour and trying to read up on documentation but I'm stuck: How exactly does the follow script access the follower graphic from the players inventory? How does the script tell the follower event to change to X pokemon's overworld graphic based on the 1st pokemon in the players party?


    I /think/ I see where a method is getting a Pokemon class argument to relay it to the follower event, but I don't know what function call it's using to actually tell the event itself what graphic to change to.

    Spoiler:


    Thanks in advance.
     
    16
    Posts
    6
    Years
    • Seen Nov 23, 2020
    I'm trying to use this script in Pokémon Essentials BW by KleinStudio but this errors happens when I talk to the guy

    Spoiler:


    Does someone know how to solve this?

    EDIT: nvm, I solved it myslef by erasing the parts where there was the word "bridge"
     
    Last edited:

    Uzagi

    the bunny
    20
    Posts
    5
    Years
  • guys I need a little help as I'm facing 2 issues

    1) whenever I try to go inside a house the game crashes and show this:

    [Pokémon Essentials version 17.2]
    Exception: NoMethodError
    Message: undefined method `>' for nil:NilClass
    RPG__Sprite:124:in `effect?'
    RPG__Sprite:440:in `effect?'
    RPG__Sprite:439:in `each'
    RPG__Sprite:439:in `effect?'
    Sprite_AnimationSprite:31:in `update'
    Sprite_AnimationSprite:86:in `update'
    Sprite_AnimationSprite:85:in `each'
    Sprite_AnimationSprite:85:in `update'
    Scene_Map:43:in `updateSpritesets'
    Scene_Map:37:in `each'

    2) when I interact with the Pokemon it shows:
    [Pokémon Essentials version 17.2]
    Exception: NoMethodError
    Message: undefined method `>' for nil:NilClass
    RPG__Sprite:124:in `effect?'
    RPG__Sprite:440:in `effect?'
    RPG__Sprite:439:in `each'
    RPG__Sprite:439:in `effect?'
    Sprite_AnimationSprite:31:in `update'
    Sprite_AnimationSprite:86:in `update'
    Sprite_AnimationSprite:85:in `each'
    Sprite_AnimationSprite:85:in `update'
    Scene_Map:43:in `updateSpritesets'
    Scene_Map:37:in `each'

    can someone help me please?
     
    Back
    Top