Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,860
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.

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

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
613
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,860
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
613
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
32,096
Reaction score
7,990
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
613
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,403
Reaction score
646
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,860
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,860
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.
eventfollowers3.jpg


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,403
Reaction score
646
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?
 

Latest Threads

Latest Posts

Latest Profile Posts

Is it necroposting if I ask for more info in my own months old thread? All the information in the thread is relevant
JRPG TextBox HTML - Part 2:
So I'm resuming work on the Shadowstar Trilogy. I've decided that it will take place between the end of G4 and the start of G5, and two of the Lost Rulers will be Twilight Sparkle and Sunset Shimmer (who is the moon princess in my AU).
Been working on some sprites, My favorite out of all of them is this guy, his name is Moss:

Forum statistics

Threads
108,952
Messages
1,040,840
Members
141,413
Latest member
kruthanasin
Top