Jump to content

Recommended Posts

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.

 

eventFollowers1.jpg

 

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)
eventFollowers2.jpg

 

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 by Tsukihime

Share this post


Link to post
Share on other sites

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.

 

eventfollowers3.jpg

 

Event followers are currently unable to move to different maps or retain their positions, but the next update will provide this functionality.

Share this post


Link to post
Share on other sites

This script is amazing! Very nice work here! :D 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 by KevinFrost

Share this post


Link to post
Share on other sites

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

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 by Tsukihime

Share this post


Link to post
Share on other sites

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

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.

Share this post


Link to post
Share on other sites

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

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

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

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 by Tsukihime

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×