Event Followers

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
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,254
Reaction score
611
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,564
Reaction score
3,846
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,254
Reaction score
611
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
31,365
Reaction score
7,674
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,254
Reaction score
611
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,309
Reaction score
531
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,564
Reaction score
3,846
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,564
Reaction score
3,846
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,309
Reaction score
531
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

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,045
Members
137,569
Latest member
Shtelsky
Top