• 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

10
Posts
7
Years
    • Seen Jun 18, 2019
    ---------------------------
    Pokémon Parts of Volcan
    ---------------------------
    Exception: RuntimeError

    Message: Script error within event 7, map 17 (Test):

    Exception: NoMethodError

    Message: Section018:27:in `trigger'undefined method `trigger' for nil:NilClass

    ***Full script:

    pbPokemonFollow(8)


    Interpreter:243:in `pbExecuteScript'

    Game_CommonEvent:58:in `refresh'

    Game_CommonEvent:15:in `initialize'

    PField_DependentEvents:158:in `new'

    PField_DependentEvents:158:in `createEvent'

    PField_DependentEvents:505:in `addEvent'

    PField_DependentEvents:26:in `pbAddDependency2'

    PokémonFollow:1219:in `pbPokemonFollow'

    (eval):1:in `pbExecuteScript'

    Interpreter:1606:in `eval'



    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 `follow_update'

    Scene Map:101:in `loop'

    Scene Map:114:in `follow_update'

    PokémonFollow:1550:in `update'



    This exception was logged in

    C:\Users\Derlan\Saved Games/Pokémon Parts of Volcan/errorlog.txt.

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

    IceGod64

    In the Lost & Found bin!
    624
    Posts
    15
    Years
  • I got Sir Pitzho's same error in an otherwise unmodified version of Essentials v16.2. I put pbPokemonFollow(16) after pbCreatePokemon and a blank event corresponding to that.
     
    1
    Posts
    7
    Years
    • Seen Mar 4, 2017
    I got Sir Pitzho's same error in an otherwise unmodified version of Essentials v16.2. I put pbPokemonFollow(16) after pbCreatePokemon and a blank event corresponding to that.

    what exactly did you do? I got the same exact script as Sir Pitzho, attempted what you said and it still doesn't work. If anyone else has had this problem please help out! Thanks
     
    Last edited:
    2
    Posts
    8
    Years
    • Seen Dec 18, 2022
    So I've been getting the same NoMethodError and after looking through the script I found this:
    #===============================================================================
    # * Start Pokemon Following
    # * x is the Event ID that will become the follower
    #===============================================================================
    def pbPokemonFollow(x)
    Kernel.pbAddDependency2(x, "Dependent", 50)
    $PokemonTemp.dependentEvents.refresh_sprite
    $PokemonTemp.dependentEvents.Come_back(nil,false)
    $game_switches[Following_Activated_Switch]=true
    $game_switches[Toggle_Following_Switch]=true
    end

    What I discovered is that "pbAddDependency2(x, "Dependent", 50)" calls for the common event "50" which isn't already set in Essentials. The script doesn't need a specific common event, but it does need a spot for one so all I did to fix this was change the maximum number of common events to 50.

    I'm not sure if this is the proper way to fix this error but It works for me so... ?\_(?)_/?
     
    2
    Posts
    8
    Years
    • Seen Dec 18, 2022
    In the Database there is a tab called Common Events. At the bottom of the list of the common events is a button that lets you change the maximum number of common events. Set it to 50 and you should be good.
     
    25
    Posts
    7
    Years
    • Seen Apr 29, 2022
    In the Database there is a tab called Common Events. At the bottom of the list of the common events is a button that lets you change the maximum number of common events. Set it to 50 and you should be good.

    That worked! Thank you!
    My only problem now is that I can't get the sprites to actually display...
     
    Last edited:
    465
    Posts
    7
    Years
    • Seen Apr 26, 2024
    sorry to pester (also hope this is still alive)
    but i keep running into this bug and im kinda noobish in scripting so dont understand but here is the crash log:

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

    Message: Script error within event 16, map 3 (AAAAAAA's house):

    Exception: NoMethodError

    Message: (eval):2:in `pbExecuteScript'undefined method `PbPokemonFollow' for #<Interpreter:0x71bae48>

    ***Full script:

    pbAddPokemonSilent(:PIKACHU,5)
    PbPokemonFollow(17)


    Interpreter:243:in `pbExecuteScript'

    Interpreter:1606:in `eval'

    Interpreter:243: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 `follow_update'

    Scene_Map:101:in `loop'



    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 `follow_update'

    Scene_Map:101:in `loop'

    Scene_Map:114:in `follow_update'

    Following_Pokemon:1550:in `update'
    ------------------------------------------------------------

    im just trying to test it but not even that works xD someone help me asap lol
     
    1,224
    Posts
    10
    Years
  • sorry to pester (also hope this is still alive)
    but i keep running into this bug and im kinda noobish in scripting so dont understand but here is the crash log:

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

    Message: Script error within event 16, map 3 (AAAAAAA's house):

    Exception: NoMethodError

    Message: (eval):2:in `pbExecuteScript'undefined method `PbPokemonFollow' for #<Interpreter:0x71bae48>

    ***Full script:

    pbAddPokemonSilent(:PIKACHU,5)
    PbPokemonFollow(17)


    Interpreter:243:in `pbExecuteScript'

    Interpreter:1606:in `eval'

    Interpreter:243: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 `follow_update'

    Scene_Map:101:in `loop'



    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 `follow_update'

    Scene_Map:101:in `loop'

    Scene_Map:114:in `follow_update'

    Following_Pokemon:1550:in `update'
    ------------------------------------------------------------

    im just trying to test it but not even that works xD someone help me asap lol

    capitalization matters in calling methods
     
    465
    Posts
    7
    Years
    • Seen Apr 26, 2024
    capitalization matters in calling methods

    calling methods? sorry still new to scripting, i made sure pbPokemonFollow and the add pokemon had capitals when they should but was it something else that was meant to be capitalized?
     
    1,224
    Posts
    10
    Years
  • calling methods? sorry still new to scripting, i made sure pbPokemonFollow and the add pokemon had capitals when they should but was it something else that was meant to be capitalized?

    pbPokemonFollow actually shouldn't have the first letter capitalized, it should look exactly like that. Check the definitions of methods if you are ever unsure or getting errors, it'll look something like
    Code:
     def pbPokemonFollow
    ...
     
    27
    Posts
    10
    Years
    • Seen Feb 21, 2024
    pbAddPokemonSilent(:PIKACHU,5)
    PbPokemonFollow(17)

    Mej just meant the part that was underlined is not meant to have a capital P for pb. I assume the correct line would be:

    pbAddPokemonSilent(:PIKACHU,5)
    pbPokemonFollow(17)

    Simple :P
     
    465
    Posts
    7
    Years
    • Seen Apr 26, 2024
    Mej just meant the part that was underlined is not meant to have a capital P for pb. I assume the correct line would be:

    pbAddPokemonSilent(:PIKACHU,5)
    pbPokemonFollow(17)

    Simple :P

    i was sure to leave pb uncapitalised but i cant recheck it... oh my... i am so special xD thanks for showing me that lol i totally thought i uncapitalized it
     
    465
    Posts
    7
    Years
    • Seen Apr 26, 2024
    i was sure to leave pb uncapitalised but i cant recheck it... oh my... i am so special xD thanks for showing me that lol i totally thought i uncapitalized it

    Okay, update, that problem was fixed but now i get a new error ;-;

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

    Message: Script error within event 16, map 3 (AAAAAAA's house):

    Exception: NoMethodError

    Message: Section018:27:in `trigger'undefined method `trigger' for nil:NilClass

    ***Full script:

    pbAddPokemonSilent(:PIKACHU,5)
    pbPokemonFollow(17)


    Interpreter:243:in `pbExecuteScript'

    Game_CommonEvent:58:in `refresh'

    Game_CommonEvent:15:in `initialize'

    PField_DependentEvents:158:in `new'

    PField_DependentEvents:158:in `createEvent'

    PField_DependentEvents:505:in `addEvent'

    PField_DependentEvents:26:in `pbAddDependency2'

    Following_Pokemon:1219:in `pbPokemonFollow'

    (eval):2:in `pbExecuteScript'

    Interpreter:1606:in `eval'



    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 `follow_update'

    Scene_Map:101:in `loop'

    Scene_Map:114:in `follow_update'

    Following_Pokemon:1550:in `update'

    --------------------------------------------------------
     
    465
    Posts
    7
    Years
    • Seen Apr 26, 2024
    So update (same error crash again) but i went back over the install and followed it closely
    - add script above main and below compiler
    - close and save rpgmakerxp
    -get animations.rx- thingy
    -get animations.rar
    -put into data and graphics/animations
    -create event with name "Dependent"
    -create event with "script:pbPokemonFollow(X)" in this case X is 17
    -Run
    -Talked to npc
    -Crash below happened

    I dont get why this is happening even though I followed directly,
    sorry to be a pest and seem like i'm being a stupid 10 year old (i'm not thankfully)
    ---------------------------
    Exception: RuntimeError

    Message: Script error within event 16, map 3 (AAAAAAA's house):

    Exception: NoMethodError

    Message: Section018:27:in `trigger'undefined method `trigger' for nil:NilClass

    ***Full script:

    pbAddPokemonSilent(:PIKACHU,5)
    pbPokemonFollow(17)


    Interpreter:243:in `pbExecuteScript'

    Game_CommonEvent:58:in `refresh'

    Game_CommonEvent:15:in `initialize'

    PField_DependentEvents:158:in `new'

    PField_DependentEvents:158:in `createEvent'

    PField_DependentEvents:505:in `addEvent'

    PField_DependentEvents:26:in `pbAddDependency2'

    Following_Pokemon:1219:in `pbPokemonFollow'

    (eval):2:in `pbExecuteScript'

    Interpreter:1606:in `eval'



    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 `follow_update'

    Scene_Map:101:in `loop'

    Scene_Map:114:in `follow_update'

    Following_Pokemon:1550:in `update'

    ---------------------------
     
    36
    Posts
    10
    Years
    • Seen Apr 11, 2024
    So update (same error crash again) but i went back over the install and followed it closely
    - add script above main and below compiler
    - close and save rpgmakerxp
    -get animations.rx- thingy
    -get animations.rar
    -put into data and graphics/animations
    -create event with name "Dependent"
    -create event with "script:pbPokemonFollow(X)" in this case X is 17
    -Run
    -Talked to npc
    -Crash below happened

    I dont get why this is happening even though I followed directly,
    sorry to be a pest and seem like i'm being a stupid 10 year old (i'm not thankfully)
    ---------------------------
    Exception: RuntimeError

    Message: Script error within event 16, map 3 (AAAAAAA's house):

    Exception: NoMethodError

    Message: Section018:27:in `trigger'undefined method `trigger' for nil:NilClass

    ***Full script:

    pbAddPokemonSilent(:PIKACHU,5)
    pbPokemonFollow(17)


    Interpreter:243:in `pbExecuteScript'

    Game_CommonEvent:58:in `refresh'

    Game_CommonEvent:15:in `initialize'

    PField_DependentEvents:158:in `new'

    PField_DependentEvents:158:in `createEvent'

    PField_DependentEvents:505:in `addEvent'

    PField_DependentEvents:26:in `pbAddDependency2'

    Following_Pokemon:1219:in `pbPokemonFollow'

    (eval):2:in `pbExecuteScript'

    Interpreter:1606:in `eval'



    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 `follow_update'

    Scene_Map:101:in `loop'

    Scene_Map:114:in `follow_update'

    Following_Pokemon:1550:in `update'

    ---------------------------
    Is your Dependent Event, Event ID 17 on the Map? If not check this first.

    Or go to Database, open Common Events and change the maximum Number to 50.
    This fixed at least my error message which was similar to yours.
     
    35
    Posts
    7
    Years
    • Seen Nov 1, 2018
    Hello all,

    When i'm testing the script on ice terrain I got a bug which the following pokemon stays same tile as the player when sliding, I don't know if this is already address, other than that it works all fine.

    Also can somebody show me how to change the location path of overworld graphics because when I made new folder in graphics/characters/ and updated it in the BGpath locating file it still won't find the graphics.

    Another issue I have is the animation won't show , like for example I was at "Home" still it won't show any emotion even when interacted.

    Thanks in advance!
    jazerules
     
    Back
    Top