Tsukihime 1,487 Posted March 29, 2013 (edited) This script allows events to designate a "leader" that another character will follow. This could be the player, the current event, or any other event. Any characters following a leader will follow that leader until they are told to stop following. Download Get it at Hime Works! Installation Place this below Materials and above Main Usage The following method calls are defined in Game_Character. follow(event_id) stop_follow This can be called by any character object such as players or events. In a move route, if you make a script call and just say follow(event_id)Then the event specified by the move route will follow that character.You can also say things like $game_player.follow(event_id) $game_map.events[3].follow(event_id) If the event_id is -1, then the character will follow the player. otherwise, it will follow the specified event on the current map. To stop following an event, make the script call stop_follow Again, remember from whose perspective the script call is being made from. Edited February 18, 2014 by Tsukihime 4 OffeNDer, KayDgirl91, MurgianSwordsman and 1 other reacted to this Share this post Link to post Share on other sites
+ MurgianSwordsman 36 Posted March 31, 2013 I can use this, definitely. "[insert something here] followed me home, can I keep it?" Someone else: NO!!! There's too many following you! 2 Stryke and estriole reacted to this Share this post Link to post Share on other sites
Tsukihime 1,487 Posted July 31, 2013 Script has been updated. All following behavior should be correct now: -events following events -events following players -players following events -events following players with other followers (both party followers and event followers) Here is a sample. All I did was set the autonomous movement of each event to follow(-1) Which means to follow the player. Event followers are currently unable to move to different maps or retain their positions, but the next update will provide this functionality. 1 KayDgirl91 reacted to this Share this post Link to post Share on other sites
+ Novem 344 Posted July 31, 2013 That's pretty neat there Tsukihime! Nice job! Share this post Link to post Share on other sites
TheSeeker 0 Posted October 27, 2013 ok for some odd reason, my game will crash: https://photos-3.dropbox.com/t/0/AAB_1bPsQl9X7K1-zrkrHb-i8KrV_5gbu6y2nmyNE61YUg/12/159773724/png/320x320/1/_/0/2/Problem%201.png/Nh1cXOvLrK79TAPs6YX3JDf7al7oY0MXBopX-DnjHa0But when i checked the line 255 out i got: https://photos-3.dropbox.com/t/0/AACZOEqtZA2k3JWTKugRrHIYX0JpatiiRU6gkGgdHxGXBQ/12/159773724/png/320x320/1/_/0/2/problem%202.png/TIZGqT-MsqYVmvtko-onmtC5Ztxb4ocG6yUOzNm7XIA uhh...i need some help, please? i am a noob at this Share this post Link to post Share on other sites
Tsukihime 1,487 Posted October 27, 2013 Place this script below Materials. You've placed it above. Share this post Link to post Share on other sites
KayDgirl91 99 Posted November 13, 2013 (edited) This script is amazing! Very nice work here! I've actually got a great idea for this script. I wonder if it will work out. I'll be sure to let you know if it works, or if I run into any bugs. Edit: Okay, so I was thinking about trying to make a mini game with this. If you have ever played the game called 'Snake' before, you'll know what it is. But very briefly, Snake is a game where you start out as a snake 2 to 4 lengths long, and you try to pick up points. Each point adds to your score, and to your length. And you try to live for as long as you possibly can without running into a wall, or yourself. If you do, you lose. The problem I'm having though is that the people following the player cannot be activated by touch. Is there any way to fix that? If not, that's okay. Edited November 13, 2013 by KevinFrost Share this post Link to post Share on other sites
DangerZone 21 Posted January 9, 2014 I have to say, this script is exactly what I was looking for. That being said had you thought about updating it to include the event following between maps? If that is still in the cards, that would make this absolutely perfect. Share this post Link to post Share on other sites
Tsukihime 1,487 Posted January 9, 2014 (edited) No, this script will not support event following across different maps. All events are bound to a particular map. Didn't see that Snake post from months ago (this is why that no-double post rule is kind of questionable), but Follower Event Touch is more suitable for that kind of thing and has been updated to support it. http://himeworks.wordpress.com/2013/08/24/follower-event-touch/ Edited January 9, 2014 by Tsukihime Share this post Link to post Share on other sites
ReetzO 0 Posted May 17, 2014 Hello So, I have a problem. Is it possible to make following events (events following event) to trigger Event Touch? I am looking forward for your help Share this post Link to post Share on other sites
Xenodive 4 Posted July 10, 2014 Hi, I actually do my own project and I got a great solution for following over new maps. 1. Create a variable, named something like "follow_pos" or whatever you want to name it. 2. Create a switch, named something like "NPC_name". 3. Do 4 common events, each for one of the directions to teleport on a map to another. Example: teleport_A, teleport_B, teleport_C, teleport_D. On each event you give the variable you created different numbers. Easiest way to go is A:1, B:2, C:3, D:4. Set up no trigger. 4. Go into your teleport event and put in your first common event(in this case "teleport_A") directly after the teleport command. 5. Now copy the event NPC, which shall follow you, to the same teleport spot you chosed for your hero on the next map. - Set this event NPC as "below Hero" and give it a blanc(transparent) graphic on first site, - on a second site you set up a switch condition for "NPC_name" to ON and a variable condition with your created variable(follow_pos) as 1 and give your event NPC the normal appearance. - Open a 3. site for this event with a blanc appearance again and set it up with a variable condition of "follow_pos" as 2. This ensures that you don´t get dublicates following you. 6. You have to do this with every teleport spot you have in your project and on each teleport spot you have give "follow_pos" a different number. So if you have more than 4 teleports on 1 map, just do more common events of the mentioned type(teleport_E, teleport_F... ) and each one with different numbers on "follow_pos" again. 7. Try this out on 2 maps first, so you can set up your following NPC perfectly, before you copy it for every map and teleport spot. 1 Tsukihime reacted to this Share this post Link to post Share on other sites
Xenodive 4 Posted July 13, 2014 This is my own custom method for following, works over multiple maps also... and it´s no script: https://www.youtube.com/watch?v=5cHiujQ3K6o 1 Tsukihime reacted to this Share this post Link to post Share on other sites
Tsukihime 1,487 Posted July 13, 2014 A lot of things can be evented. Scripts just try to make things simpler in those cases. 1 AlliedG reacted to this Share this post Link to post Share on other sites
Nesokas 0 Posted July 20, 2014 Hello,I have a problem with this script and I don’t know why.If the player is in the map when the game starts, the event has no problem following it, however if I change map with an event and create a new event to follow the player on the new map, the follow behavior just continuous going up diagonally no matter the direction the player is moving.Does anyone know why this might happen? Share this post Link to post Share on other sites
Tsukihime 1,487 Posted July 20, 2014 Does this occur in a new project? I have created an event that auto-runs and follows the player (-1) I then make a transfer event that will send me to the map where the event is, and the event will teleport to where the player is to follow it. Share this post Link to post Share on other sites
Nesokas 0 Posted July 20, 2014 What do you mean by new project? I created an event that has autonomous movement set to custom where I put the follow(-1) command. This works fine in the first map where the player has the starting position but on the second it doesn't. I'm not transferring the event, I'm creating a new one on the new map, only the player gets transferred. Share this post Link to post Share on other sites
Tsukihime 1,487 Posted July 21, 2014 (edited) New project as in, start a new project, add the event followers script, and then see whether it works or not. It can be a result of compatibility issues with other scripts. For example, if you have pixel movement or other movement-related scripts, those might have issues. I have created an event with the same autonomous movement. When the player transfers to the map with the event, the event teleports to the player and follows her. Edited July 21, 2014 by Tsukihime Share this post Link to post Share on other sites