Follower Control

So, someone made a FollowerScript for VX Ace (I don't remember who, they didn't name themselves in the script) that allowed you to control your followers through move routes. It'd be awesome if this could be brought over to MV.

This is the script I have:

Spoiler
Code:
#==============================================================================# ** Follower's Commands (also known as Follower's Move Routes v.2.2.1)#------------------------------------------------------------------------------# * This little script allows to use in followers any editor command designed# to work with events, this includes Show Animation, Show Balloon Icon,# Set Event Location and Set Move Route.#------------------------------------------------------------------------------# * To use it, simple put a script call with the following before each of the# previously mentioned commands.# $game_temp.lfmr_follower = follower index OR folower name# Use $game_temp.lfmr_wait = true/false to make the followers wait/follow again.# Example# $game_temp.lfmr_follower = 1 OR 'Name' : $game_temp.lfmr_wait = true#==============================================================================#==============================================================================# ** Game_Temp, Alias to initialize.#------------------------------------------------------------------------------# Adds variable to contain follower's index and to turn on/off following.#==============================================================================class Game_Temp#--------------------------------------------------------------------------# * Public Instance Variables#--------------------------------------------------------------------------attr_accessor :lfmr_follower ; attr_accessor :lfmr_wait#--------------------------------------------------------------------------# * Initialize Alias#--------------------------------------------------------------------------alias lemony_moveroute_initialize initialize#--------------------------------------------------------------------------# * Initialize#--------------------------------------------------------------------------def initializelemony_moveroute_initialize@lfmr_follower, @lfmr_wait = nil, falseendend#==============================================================================# ** Game_Interpreter#------------------------------------------------------------------------------# Alias to get_character to return the desired follower if an index was set.#==============================================================================class Game_Interpreter#--------------------------------------------------------------------------# * Get Character Alias#--------------------------------------------------------------------------alias lemony_moveroute_get_character get_character#--------------------------------------------------------------------------# * Get Character#--------------------------------------------------------------------------def get_character(param)i, $game_temp.lfmr_follower = $game_temp.lfmr_follower, nilfc = $game_player.followers[i] if i.is_a?(Integer)fc ||= $game_player.followers.each {|f| return f if f.actor.name == i} if !i.nil?i.nil? ? lemony_moveroute_get_character(param) : fcendend#==============================================================================# ** Game_Follower#------------------------------------------------------------------------------# Alias to chase_preceding_character for preventing the execution if a move# route exist for this character or for the preceding one.#==============================================================================class Game_Follower < Game_Character#--------------------------------------------------------------------------# * Public Instance Variables#--------------------------------------------------------------------------attr_reader :move_routeattr_reader :original_move_route#--------------------------------------------------------------------------# * Chase Preceding Character Alias#--------------------------------------------------------------------------alias lemony_moveroute_chase_preceding_character chase_preceding_character#--------------------------------------------------------------------------# * Pursue Preceding Character#--------------------------------------------------------------------------def chase_preceding_characterp_c = @preceding_character if p_c.nil?return if (@move_route != @original_move_route) || (p_c != $game_player &&(p_c.move_route != p_c.original_move_route) || $game_temp.lfmr_wait)lemony_moveroute_chase_preceding_characterendend
Bump.
Hi Syltti,


I saw your post, and I thought you might like my Follower Control plugin!  I know there are some other plugins out there that do similar things, but I think you'll find this one is very efficient and fluid in how well it works.  Check it out if you like!

Original thread: https://forums.rpgmakerweb.com/threads/follower-control.47992/