Control followers movement

Okay so how do i set the move route for my followers. this question is self explanatory i believe so is it possible? if not is there any script? thank you in advance.
Hmm. I can't say abotu scripts, as sadly, I don't really script all that much, but as far as I am aware, there is no direct way within the engine to control their move routes. If it was for a cutscene, what I would do is fade out the screen, turn followers off and turn on a switch that makes events with your followers graphics appear, then use those events in the cutscene etc... And once done, fade out, remove those events, add followers and fade back in again. n.n"

Although, this strikes a thought to me... If someone does script a method to set move routes for the followers... It would be awesome if you could set them in various positions (horizontal/vertical lines, a cross, a square etc...) to be used in various puzzles etc... Such is in Legend of Zelda: Four Sword Adventures... >.>"
I agree with Clockwork on the first part, but as for the second, not sure how useful that would be since you still have to take into account impassables when you move... Then you also have damage terrain and event switchs as well...

On the other hand, you can event your followers in certain maps. Set their rout to "follow follow random", but events can't pass through events.
Yeah, that second part was slightly me fangasming over the unlikely possibilities of a Zelda: FSA style gameplay~ n.n"
Hi! I wrote this for you, is it what you're looking for?

Spoiler
#----------------------------------------------------------------------------
#
# ** Execute Follower Movement
#----------------------------------------------------------------------------
# (*) Info
#-----------------------------------------
# * follower_index = index of the follower
# * movement_array = an array containing others arrays to express the movement
# example = [ [distance, direction], [distance, direction] ]
# * options = if desired, an array containing the movement parameters
# example = [ repeat, skippable, wait ] => [ false, true, false ]
#----------------------------------------------------------------------------
# - Example (call script)
#-----------------------------------------
# follower_index = 1
# movement_array = [[2, 2], [4, 4], [4, 8]]
# options = [false, true, false]
# execute_follower_movement(follower_index, movement_array, options = nil)
#
#----------------------------------------------------------------------------
def execute_follower_movement(follower_index, movement_array, options = nil)
# Gets the follower based on the given index
follower = $game_player.followers[follower_index]
# Creates the move route data
move_route = RPG::MoveRoute.new
move_route.repeat = options[0]
move_route.skippable = options[1]
move_route.wait = options[2]
move_route.list = []
# Iterates through the array that contains the movement info
movement_array.each {|movement| dir, dist = movement[0], movement[1]
# Pushes a move command for each step/tile (distance)
dist.times {|i| move_route.list.push(RPG::MoveCommand.new(dir / 2))}}
# Pushes the end movement command
move_route.list.push(RPG::MoveCommand.new(0))
# Gives the move route to the character
follower.force_move_route(move_route)
end
#==============================================================================
# ** 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_route
attr_reader 😮riginal_move_route
#--------------------------------------------------------------------------
# * Chase Preceding Character Alias
#--------------------------------------------------------------------------
alias lemony_moveroute_chase_preceding_character chase_preceding_character
#--------------------------------------------------------------------------
# * Pursue Preceding Character
#--------------------------------------------------------------------------
def chase_preceding_character
p_c = @preceding_character if p_c.nil?
# Prevents running if there is a movement route or preceding character has one
return if (@move_route != @original_move_route) || (p_c != $game_player &&
(p_c.move_route != p_c.original_move_route))
# Executes the original method
lemony_moveroute_chase_preceding_character
end
end

Code:
It is easy to use, check it out 🙂
it doesn't seem to work. don't know why.
Why? I just tested it and it works fine. The script call I used looks like this →



Code:
movement_array = [[2, 4], [6, 8], [8, 8]]
execute_follower_movement(1, movement_array,
[false, false, false])
1 = Index of the second trailing member (not the second party character).
can you show me the event page. it doesn't seem to work for me.
It is just a call script command from the event commands (not the move route function) with the exact text I showed you in my previous post.

Here you have a demo, check it out. http://www.mediafire.com/?h375rxtxpxh58t5
I think I can make an easier solution....give me a little bit, as I'm just getting out of work 😛

EDIT: It's only because I'm awesome 😎 :

Spoiler
#===============================================================================
# N.A.S.T.Y. Follower Move Route
# Nelderson's Awesome Scripts To You
#
# By: Nelderson
# Last Updated: 3/21/2012
#
# Version 1.0 - 3/21/2012
#===============================================================================
# Update History:
# - Version 1.0 - Initial release, made for BulletPlus
#===============================================================================
# This script allows you to use the move custom route command that you
# can use for all your other events, just now includes Followers!
#
# -Usage
# When you select a new move route command in your event, make sure to
# put this script call in the FIRST SLOT:
#
# force_move_followers(id)
# - Where id is the follower id of the player(Starts with 0)
# and anything after that will affect the follower instead of the event!
#===============================================================================
class Game_Interpreter
def command_205
$game_map.refresh if $game_map.need_refresh
temp = @params[1].list[0].parameters
if temp[0] =~ /force_move_followers[(](\d+)[)]/i
character = $game_player.followers[$1.to_i]
else
character = get_character(@params[0])
end
if character
character.force_move_route(@params[1])
Fiber.yield while character.move_route_forcing if @params[1].wait
end
end
end

class Game_Character < Game_CharacterBase
def force_move_followers(id = nil)
end
end

Code:
@Nelderson - that was NASTY! but i totally works. you should post this in the scripts section (if you haven't already). but thanks bro!

Original thread: https://forums.rpgmakerweb.com/threads/control-followers-movement.598/