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:
Again, remember from whose perspective the script call is being made from.
本贴来自国际rpgmaker官方论坛作者:Tsukihime处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/event-followers.11046/