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

[Pokéstarter Kit - Question]: Pokémon following character

22
Posts
15
Years
    • Seen Aug 7, 2016
    Hello!

    I have a question.
    I would like to know how to do it for a selected menu of Pokémon Pokemons walk behind the Hero / Heroine, as in the remake.

    Example:
    You Take the option on when I select a Pokémon on my team in the Menu of pokemons. Next select the option and leave the menu. The Pokémon commeça selected me to follow. When I do not want to follow me no more Pokémon, I pokemons from the menu again and choose a Pokémon who is walking behind me. Instead of appearing to follow option now appears not to follow. Select this option, leave the menu disappears and the Pokémon back to the Hero / Heroine.

    I ask for you to help me solve this question.
    Thanks already!
    Goodbye!
     
    401
    Posts
    19
    Years
    • Age 29
    • Seen Dec 4, 2016
    First, this question doesn't require a new thread. Post all questions regarding the starterkit in the Starterkit thread. Second, the following the character thing is fairly easy to do in events.However all the "caterpillar" scripts out there for rmxp will not work with Essentials due to the fact that Essentials doesn't use the basic actor calls, etc.
     
    22
    Posts
    15
    Years
    • Seen Aug 7, 2016
    Hum .. Sorry, did not know ...
    But still, someone can solve my question?

    Note: I will post my question on the topic.
     

    tImE

    It's still me, 44tim44 ;)
    673
    Posts
    17
    Years
  • First, this question doesn't require a new thread. Post all questions regarding the starterkit in the Starterkit thread. Second, the following the character thing is fairly easy to do in events.However all the "caterpillar" scripts out there for rmxp will not work with Essentials due to the fact that Essentials doesn't use the basic actor calls, etc.

    Actually, since late 2008, they changed the dependent-event script in Pokemon Essentials.
    A dependent-event can now follow you outside of the map.

    About how to make a menu on the pokemon party screen I don't know, xP

    I'm a RGSS Newbie, lol

    //44tim44
     
    401
    Posts
    19
    Years
    • Age 29
    • Seen Dec 4, 2016
    Actually, since late 2008, they changed the dependent-event script in Pokemon Essentials.
    A dependent-event can now follow you outside of the map.

    About how to make a menu on the pokemon party screen I don't know, xP

    I'm a RGSS Newbie, lol

    //44tim44
    I know that, but it is still a partner, and it enters battle with you, I suppose that can be fixed with a bit of scripting, but IMO its too much hassle.
     

    tImE

    It's still me, 44tim44 ;)
    673
    Posts
    17
    Years
  • I know that, but it is still a partner, and it enters battle with you, I suppose that can be fixed with a bit of scripting, but IMO its too much hassle.

    No, it only adds a partner if you want to.
    Check this:
    Code:
    pbAddDependency2(@event_id,"Brawly",2)
    pbRegisterPartner(PBTrainers::LEADER_Brawly,
    "BRAWLY")

    pbAddDependency2(@event_id,"Brawly",2) adds a follower.

    pbRegisterPartner(PBTrainers::LEADER_Brawly,"BRAWLY") adds a partner trainer.

    If you only use the first one, then you can sort of have a Ash-Pikachu follow event.
     

    venom12

    Pokemon Crystal Rain Relased
    476
    Posts
    17
    Years
    • Age 33
    • Seen Dec 28, 2023
    You can just add this
    pbAddDependency2(@event_id,"Brawly",2)
    Change "Brawly" to yours pokemon id and pokemon will follow you
     
    22
    Posts
    15
    Years
    • Seen Aug 7, 2016
    This does not ...
    I found a bug when I tested.
    The hero / heroine can not use the surf ...
    Somebody help me!
     
    401
    Posts
    19
    Years
    • Age 29
    • Seen Dec 4, 2016
    You can just add this
    pbAddDependency2(@event_id,"Brawly",2)
    Change "Brawly" to yours pokemon id and pokemon will follow you
    Yeah, but this still causes a problem with the fact that you need an event on each map :/
     

    Shadow-Lucario

    People Just Get In The Way
    191
    Posts
    16
    Years
  • i keep getting this error when i try this

    ---------------------------
    Pokemon Shadow Aura
    ---------------------------
    Exception: RuntimeError

    Message: Script error within event 8, map 8 (Pallet Town):

    (eval):2:in `pbExecuteScript'compile error
    (eval):2: syntax error
    (@event_id,"Brawly",2)
    ^

    ***Line '(@event_id,"Brawly",2)' shouldn't begin with '(', try putting '(' at

    the end of the last line

    ***Full script:

    pbAddDependency2
    (@event_id,"Brawly",2)




    Interpreter:258:in `pbExecuteScript'

    Interpreter:1652:in `command_355'

    Interpreter:496:in `execute_command'

    Interpreter:190:in `update'

    Interpreter:104:in `loop'

    Interpreter:195:in `update'

    Scene_Map:100:in `update'

    Scene_Map:98:in `loop'

    Scene_Map:111:in `update'

    Scene_Map:67:in `main'



    This exception was logged in errorlog.txt.

    Press Ctrl+C to copy this message to the clipboard.
    ---------------------------
    OK
    ---------------------------
    and what do you mean by the pokemons ID?
     
    91
    Posts
    14
    Years
    • Seen May 4, 2011
    Plus the thing is, even with we do use the Dependency, we still need a Menu that lets us choose our partner, or that it automatically goes grab the current sprite of the First Pokemon on the Team. We already got the Sprites thanks to a Rip from HGSS, but we still need the Script.

    Someone please help ?
     

    Maruno

    Lead Dev of Pokémon Essentials
    5,286
    Posts
    16
    Years
    • Seen May 3, 2024
    i keep getting this error when i try this

    ---------------------------
    Pokemon Shadow Aura
    ---------------------------
    Exception: RuntimeError
    Message: Script error within event 8, map 8 (Pallet Town):
    (eval):2:in `pbExecuteScript'compile error
    (eval):2: syntax error
    (@event_id,"Brawly",2)
    ^

    ***Line '(@event_id,"Brawly",2)' shouldn't begin with '(', try putting '(' at the end of the last line
    ***Full script:
    pbAddDependency2
    (@event_id,"Brawly",2)

    Interpreter:258:in `pbExecuteScript'
    Interpreter:1652:in `command_355'
    Interpreter:496:in `execute_command'
    Interpreter:190:in `update'
    Interpreter:104:in `loop'
    Interpreter:195:in `update'
    Scene_Map:100:in `update'
    Scene_Map:98:in `loop'
    Scene_Map:111:in `update'
    Scene_Map:67:in `main'

    This exception was logged in errorlog.txt.
    Press Ctrl+C to copy this message to the clipboard.
    ---------------------------
    OK
    ---------------------------
    and what do you mean by the pokemons ID?
    Your script currently looks like:
    Code:
    pbAddDependency2
    (@event_id,"Brawly",2)
    As the error message suggests, try moving the open brackets to the end of the first line, like so:
    Code:
    pbAddDependency2(
     @event_id,"Brawly",2)
    A pokémon's ID is the index number it has. For example, in a default game, Bulbasaur is 001, Ivysaur is 002, Pikachu is 025, Arceus is 493, etc.
     
    39
    Posts
    15
    Years
    • Seen Apr 13, 2011
    hmm this seems interesting enough. I like the idea of having the option of having it follow or not, but for my script i'd need it a bit more specific... ie one event pokemon would have the option to follow
     

    SpawnHyuuga

    Elite Four Spawn
    198
    Posts
    17
    Years
  • So what if we don't have that specific pokemon? Will the script check for it? I have to admit this is awesome if this will work, but how do we make it so the game behaves like normal all HM's usable, unable to follow if it's not present in the party? or ability to have the first slot only follow, this small code snippet confuses me.
     

    Danno

    Formerly Meowth, AKA InnerMobius
    1,224
    Posts
    17
    Years
  • The problem with this script, and I have it in MSB and you can try it yourself, is that the following pokemon is glitchy. If you run, it lags behind and will run through buildings if you go far enough ahead and turn.

    Also, it likes to hop over event tiles, even if nothing's active on it.
     
    39
    Posts
    15
    Years
    • Seen Apr 13, 2011
    The problem with this script, and I have it in MSB and you can try it yourself, is that the following pokemon is glitchy. If you run, it lags behind and will run through buildings if you go far enough ahead and turn.

    Also, it likes to hop over event tiles, even if nothing's active on it.

    thats definatly not good lol
     

    Danno

    Formerly Meowth, AKA InnerMobius
    1,224
    Posts
    17
    Years
  • Indeed. Only Peter himself could work up a real caterpillar script that functions with his pokemon system, since he knows his own code.
     
    276
    Posts
    16
    Years
  • In PokemonScreen Find: (line 1300)

    Spoiler:


    Add Below

    Spoiler:


    Dependent: Name of Dependent event
    004: ID of Dependent event
    3: Number of Common Event when you talk to it

    Extract this to Graphics Folder: mediafire.com/?0lvu4zbnuzg

    Done ! When you change the first Pokemon, Dependent event will change graphic
     
    Back
    Top