- 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.
"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? [PokeCommunity.com] Pokemon following player?](https://i.imgur.com/ED2mDVX.jpg)
Last edited: