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

Even More Fixes and Additions to Help-14's Following Pokemon Script

Pokeminer20

PDM20, Coder of Chaos!
412
Posts
10
Years
  • i did everything you said and when i called upon the script i get this message

    Exception: RuntimeError
    Message: Script error within event 4, map 5 (Ignorance Town):
    Exception: NoMethodError
    Message: Section003:123:in `effect?'undefined method `>' for nil:NilClass
    ***Full script:
    pbPokemonFollow(9)


    Interpreter:243:in `pbExecuteScript'
    RPG__Sprite:434:in `effect?'
    RPG__Sprite:433:in `each'
    RPG__Sprite:433:in `effect?'
    AnimationSprite:31:in `update'
    AnimationSprite:88:in `update'
    AnimationSprite:87:in `each'
    AnimationSprite:87:in `update'
    Scene_Map:51:in `updateSpritesets'
    Scene_Map:45: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:103:in `update'
    Scene_Map:101:in `loop'
    Scene_Map:114:in `update'
    Scene_Map:68:in `main'
    Exception: RuntimeError
    Message: Script error within event 4, map 5 (Ignorance Town):
    Exception: NoMethodError
    Message: Section003:123:in `effect?'undefined method `>' for nil:NilClass
    ***Full script:
    pbPokemonFollow(9)


    Interpreter:243:in `pbExecuteScript'
    RPG__Sprite:434:in `effect?'
    RPG__Sprite:433:in `each'
    RPG__Sprite:433:in `effect?'
    AnimationSprite:31:in `update'
    AnimationSprite:88:in `update'
    AnimationSprite:87:in `each'
    AnimationSprite:87:in `update'
    Scene_Map:51:in `updateSpritesets'
    Scene_Map:45: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:103:in `update'
    Scene_Map:101:in `loop'
    Scene_Map:114:in `update'
    Scene_Map:68:in `main'


    could someone help
     
    Last edited:
    68
    Posts
    8
    Years
    • Seen Dec 3, 2016
    Hey ive got a problem. When I speak to my pokemon in a town erything works fine. But as soon as i enter a route it just crys and thats it. How can I change the settings so that the Pokemon talks to me on every map?
     
    32
    Posts
    10
    Years
    • Seen Nov 19, 2016
    Hey ive got a problem. When I speak to my pokemon in a town erything works fine. But as soon as i enter a route it just crys and thats it. How can I change the settings so that the Pokemon talks to me on every map?

    Ooh... I think I might know what's wrong.

    Consider the EVENT ID number you used for the original Pokemon Follower is on the very first map you got your DEPENDENT EVENT ID from (and I mean the ID you see when you make an event and it says "New Event:033" on the top left of its window and whatever ID you used when you called pbFollower(event_id)). If it's 33 for example and you called pbFollower(33), and you walk into a map with only events that go up to a maximum of 5, it'll try to find Event 33 in that new map, be unable to find Event 033 and only to do nothing but return a cry. It's been this way since the original script Help-14 pumped out. Try turning the DEPENDENT ID from whatever high number it is to something simple like 001 and always make sure an EMPTY event with the ID of 001 named "Dependent" on EVERY single map you intend to have a following Pokemon.

    I'm not sure why the first post doesn't explain this, but it's super important. xD
     
    68
    Posts
    8
    Years
    • Seen Dec 3, 2016
    Thx that worked for me ^^ But now I have another problem. For some reason the animations dont show up. The Pokemon just appears without any animations. Looks kinda weird. Can someboday help me, please? ^^
     
    68
    Posts
    8
    Years
    • Seen Dec 3, 2016
    Me again. The Pokemon still doesnt want to talk to me on routes. What else could be the problem?
     

    Nickalooose

    --------------------
    1,309
    Posts
    16
    Years
    • Seen Dec 28, 2023
    Code:
    Kernel.pbMessage(_INTL("{1} let our a battle cry.",e.name,$Trainer.name))
    Minor problem.

    Also if I press the x,z buttons in the intro i get an error.
    This is actually a major bug and will need fixing.
     
    1
    Posts
    8
    Years
    • Seen Jan 9, 2016
    It keeps giveing my errors on line 187 on following pokemon
    if events && events[8]=="Dependent"
    Why?
     
    220
    Posts
    9
    Years
  • Hi, i've tested your script and i repared that i've got this strange error:

    Script 'Interpreter' line 512 : NoMethodError occured.
    undefined method 'unlock' for nil:NilClass.

    WHEN: talking to pokemon and when i try to use waterfall hm. I followed step by step your script, so i don't know what causing this error. Please tel me what i must do to repair this because after the error message the game crash.
     
    1
    Posts
    8
    Years
    • Seen Jun 8, 2015
    Hello, I have a problem:
    Script 'Following Pokemon' line 187: SyntaxError occurred. And here is whta it is on the line 187. if events && events[8]=="Dependent"
    Please I really need help, im new at this :D
     
    220
    Posts
    9
    Years
  • Forgot about my post about some error, because its my fault, i missed some piece of code and now its fixed. Thx by the way. XD

    Aldo22 to fix your problem its very simple, before you copy this script into your game you must do this:

    1- at the botton up press "thread tools" and next "show printable version" then copy the script into your game. This will fix your problem.
     
    68
    Posts
    8
    Years
    • Seen Dec 3, 2016
    Hey ^^
    I still have the surfing bug. The map overlaps the following pokemon and
    if i speak with it im able to surf. pls help ^^
     
    32
    Posts
    10
    Years
    • Seen Nov 19, 2016
    When a Pokèmon evolve, the sprite doesn't refresh! how can i fix it? :(

    Place $PokemonTemp.dependentEvents.refresh_sprite directly below @viewport.dispose in
    Code:
    def pbEndScreen
        Kernel.pbDisposeMessageWindow(@sprites["msgwindow"])
        pbFadeOutAndHide(@sprites)
        pbDisposeSpriteHash(@sprites)
        @viewport.dispose
    in Pokemon Evolution. (Really, it can fit in other places in that script but one of the best is during the closing of the scene. Use CTRL+SHIFT+F to search all scripts.)
     

    JustX

    The Mutant
    34
    Posts
    8
    Years
  • I have no clue how that works and I never scripted before so my question might be dumb. I did everything in the scripts but how can I let a pokemon appear?
    What means "To call the script pbPokemonFollow(x)", what script do I have to call like that or where do I have to put that? :/
     
    32
    Posts
    10
    Years
    • Seen Nov 19, 2016
    I have no clue how that works and I never scripted before so my question might be dumb. I did everything in the scripts but how can I let a pokemon appear?
    What means "To call the script pbPokemonFollow(x)", what script do I have to call like that or where do I have to put that? :/

    Not to worry! Go make an event on the map and use the Script event command seen in this screenshot >>here<<. This is how you make any common script call in Essentials. All you do is paste "pbPokemonFollow(THE EVENT'S ID NUMBER GOES HERE)" in window that comes up. Do not place the Pokemon's ID or how many Pokemon you'd like to follow you, but the event ID you'd like to turn into a following Pokemon. If it belongs to another used event, it will be replaced... Trigger the event any way you see fit and you've got a following Pokemon if you've done absolutely everything correctly.

    (I feel like making an extensive guide about how to use this at some point since it seems to be the most popular.)
     

    JustX

    The Mutant
    34
    Posts
    8
    Years
  • Then I get the following error :

    ---------------------------
    Pokemon
    ---------------------------
    Exception: RuntimeError

    Message: Script error within event 19, map 19 (Landowald2):

    Exception: NoMethodError

    Message: Section002:123:in `effect?'undefined method `>' for nil:NilClass

    ***Full script:

    pbPokemonFollow(19)


    Interpreter:243:in `pbExecuteScript'

    RPG__Sprite:434:in `effect?'

    RPG__Sprite:433:in `each'

    RPG__Sprite:433:in `effect?'

    AnimationSprite:30:in `update'

    AnimationSprite:87:in `update'

    AnimationSprite:86:in `each'

    AnimationSprite:86:in `update'

    Scene_Map:51:in `updateSpritesets'

    Scene_Map:45: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:103:in `update'

    Scene_Map:101:in `loop'

    Scene_Map:114:in `update'

    Scene_Map:68:in `main'



    This exception was logged in

    C:\Users\Justin-Account\Saved Games/Pokemon Mutants/errorlog.txt.

    Press Ctrl+C to copy this message to the clipboard.
    ---------------------------
    OK
    ---------------------------

    Thanks for answering that fast :)
     
    Last edited:
    Back
    Top