Event Followers

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,394
Reaction score
3,362
First Language
English
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_followThis 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 you enter -1 as the event ID, then it refers to the game player.

Any event ID greater than 0 refers to the specific event ID on the map.

Event ID 0 is not supported.

To stop following an event, make the script call

Code:
stop_follow
Again, remember from whose perspective the script call is being made from.
 
Last edited by a moderator:

seita

Donn_M
Veteran
Joined
Feb 6, 2013
Messages
2,255
Reaction score
612
First Language
English
Primarily Uses
Great script! I assume this doesn't work for scripts with pixel movement? More specifically Victor Sants pixel movement.

Edit: I just tested it with his script. it's really hilarious! The event tries to follow the player but instead flies around like an autonomous pet butterfly, going through walls and what not. It's too bad it doesn't work with it, this was exactly what I was looking for for my next interactive scene.
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,394
Reaction score
3,362
First Language
English
but instead flies around like an autonomous pet butterfly
The event is moving even though the player is not?
 

seita

Donn_M
Veteran
Joined
Feb 6, 2013
Messages
2,255
Reaction score
612
First Language
English
Primarily Uses
That's right, usually in diagonals. At first it flies around the player then gradually moves further away like a conch shell.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
30,389
Reaction score
7,217
First Language
German
Primarily Uses
RMMV
Great script! I assume this doesn't work for scripts with pixel movement? More specifically Victor Sants pixel movement.

Edit: I just tested it with his script. it's really hilarious! The event tries to follow the player but instead flies around like an autonomous pet butterfly, going through walls and what not. It's too bad it doesn't work with it, this was exactly what I was looking for for my next interactive scene.
Just as clarification:

Does this strange movement happens with the followers script alone or when you try to use this script together with the pixel movement script?

Your original post and edit could be read both ways, and I think Tsukihime looks for an error with his script alone...
 

seita

Donn_M
Veteran
Joined
Feb 6, 2013
Messages
2,255
Reaction score
612
First Language
English
Primarily Uses
Hey Andar. Yeah I meant that I tried it alongside VE's pixel movement script. I haven't tried it alone, I assume it works perfectly fine. Sorry if that wasn't clear enough Tsuki~
 

estriole

Veteran
Veteran
Joined
Jun 27, 2012
Messages
1,033
Reaction score
339
First Language
indonesian
this is indeed useful script. great job hime :D .

this will be useful to create my army marching scene. i just gonna make event move another event and just do move route to the one in the front.

btw what happen if you have party follower and make event follow player. i want to know how they will be lined up :D .
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,394
Reaction score
3,362
First Language
English
I have updated the script so that an event will follow the last follower.


However, if you have two events following the player, they will stack up.


I will need to come up with a way to store temporary followers...
 
Last edited by a moderator:

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,394
Reaction score
3,362
First Language
English
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)

Follower movements have been corrected for the most part.

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.
 
Last edited by a moderator:

estriole

Veteran
Veteran
Joined
Jun 27, 2012
Messages
1,033
Reaction score
339
First Language
indonesian
The screenshot epic. Snake games! Lol.

I think with some edit you can make snake mini games hime :D .
 
Last edited by a moderator:

AstraliaAkuma

Villager
Member
Joined
May 6, 2019
Messages
7
Reaction score
0
First Language
Italian
Primarily Uses
RMVXA
Sorry for the trouble but I'm new to these stuff.
How can I make an event follow the player right after a dialogue?
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

When you discover great tileset resources that you completely forgot that you had. :kaomad3::kaopride:
Just got a better look at the MZ RTP. I'm very happy with it, especially the sci-fi tiles and sprites. Glad I pre-ordered.
I've just checked the VisuStella Plugins for MZ and there are already 11 plugins. The Yanfly team(perhaps a big one?) really works so effectively and efficiently that some MZ users can likely use tons of Yanfly plugins right after MZ's released (still 13 days from now). I wonder if any other plugin developer(or team) will try to compete with Yanfly this time, no matter how slim the chance to win is :)
Hello! :kaopride:I am new to RPG Maker, though I have been lurking the forums for a while. :kaoswt: Hope to make some friends and learn some stuff here! :kaothx:
And now since I've got the whole game parts working, the *contents* await.

Forum statistics

Threads
100,595
Messages
977,586
Members
132,194
Latest member
linkvaovn88com
Top