• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • 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.

Pokemon following player?

  • 25
    Posts
    11
    Years
    • Seen May 2, 2014
    In Rayd's following Pokemon tutorial, someone had the same problem as me, and he replied:

    "It's really pretty simple. Somewhere in your game, at the point where you want following Pokemon to activate, put a blank event and name it "Dependent". Look at this event's ID and remember what it is. Then, when you want the Pokemon to start following the player, call the script "pbPokemonFollow(x)". Just replace the "x" with the event ID of the event from before. (Keep the parentheses) This will make the event from before become dependent and follow you, and automatically update its graphic to be your Pokemon."

    I do not understand what he means by "call the script". I know how to call other scripts in events, but for this he doesn't clarify whether or not I need two separate events or if I call the pbPokemonFollow(x) in the "dependent" event.

    [PokeCommunity.com] Pokemon following player?
     
    Last edited:
    It really doesn't matter. The script can be called anywhere. I've been looking into this error but I really can't see what it is. I didn't write the original script, just improved and modified it, so I am no expert on it.

    This weekend I'll be updating the post with an updated version of the script so wait for that and see if updating fixes the problem
     
    Alright I got the scripts to work, only problem now is the sprite doesn't appear. I can see the little white puff where it's supposed to, but I never actually see anything.
     
    Hope that you can fix you'r problem, I want so the pokémon follows the player too :P
     
    Back
    Top