[Script Request] Scattered Party on Map

Ace VII

Genius but Strict
Veteran
Joined
Aug 21, 2014
Messages
128
Reaction score
209
First Language
Japanese
Primarily Uses
I'm not entirely sure if this is quite possible but I'd like to


ask for it anyway. So basically I want the party alignment not to be aligned in a straight line


and going around like a set of train.


Instead I want it to be somewhat like this if possible.


The player goes around the map and the followers follows him but not on a straight line,


is that possible? I sure hope it is.


Well that's pretty much about my request, so if anyone would be willing or eager to help, I'd appreciate it.


I can't repay you with money, but I'll do something for you instead. Only with something that I'm good at (e.g. Artworks and Mappings).
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
[move]RGSS3 Script Requests[/move]
 

Ace VII

Genius but Strict
Veteran
Joined
Aug 21, 2014
Messages
128
Reaction score
209
First Language
Japanese
Primarily Uses
Something like this?
WAAAAH!!! Thank you so much MeowFace! You just made my day, this exactly what I want! Thanks a ton!


But there's one problem, the script seems to be disassembled :/
 
Last edited by a moderator:

MeowFace

Meow
Veteran
Joined
Feb 22, 2015
Messages
1,034
Reaction score
184
First Language
Meowish
Primarily Uses
WAAAAH!!! Thank you so much MeowFace! You just made my day, this exactly what I want! Thanks a ton!


But there's one problem, the script seems to be disassembled :/
You're welcome! Well, it's the forum update that broke the bbcode format, they said it will fix itself when all patches are done. So i am going to give it a 3 days wait before i start to check on what is still broken.


in the meantime give this a try:


(The new editor is not very friendly when it comes to pasting codes and it's messing up formats when hidden in a spoiler unlike the old v3 so i am going to skip the spoiler hide here. Beware, it's long)

Code:
#==============================================================================
# ■ Meow Face Party Controller
#------------------------------------------------------------------------------
# Control Party Leader and Followers
#==============================================================================
# How to Use:
# Plug & Play, Put this script below Material and above Main
# Terms of Use:
# Free for both commercial/non-commercial
#==============================================================================
=begin
==============================================================================
 Use these script calls below in event's script box
==============================================================================
------------------------------------------------------------------------------
 To gather all party members instantly:
------------------------------------------------------------------------------
 instant_gather

------------------------------------------------------------------------------
 To have all party jump together:
------------------------------------------------------------------------------
 party_jump(x, y)
 where x/y is the position to jump
 
 eg. 3 tiles to the left, use:
 party_jump(-3, 0)

------------------------------------------------------------------------------
 To have all party pop up balloon:
------------------------------------------------------------------------------
 party_balloon(id)
 where id is the balloon id

------------------------------------------------------------------------------
 To have all party pop up animation:
------------------------------------------------------------------------------
 party_anim(id)
 where id is the animation id
 
------------------------------------------------------------------------------
 To have the whole party move around:
------------------------------------------------------------------------------
 party_move(command)
  command =
 "DOWN"
 "LEFT"
 "RIGHT"
 "UP"
 "LOWER_L"
 "LOWER_R"
 "UPPER_L"
 "UPPER_R"
 "FORWARD"
 "BACKWARD"
 "TURN_R"
 "TURN_L"
 "TURN_B"
 
------------------------------------------------------------------------------
 To have the whole party face a direction:
------------------------------------------------------------------------------
 party_face(command)
  command =
 "DOWN"
 "LEFT"
 "RIGHT"
 "UP"
 "PLAYER"
 
------------------------------------------------------------------------------
 To have one party member face a direction:
------------------------------------------------------------------------------
 member_face(n, command)
 n = party member in line (0 = leader, 1 = 2nd in line etc)
  command =
 "DOWN"
 "LEFT"
 "RIGHT"
 "UP"
 "PLAYER"

------------------------------------------------------------------------------
 To have one party member jump:
------------------------------------------------------------------------------
 member_jump(n, x, y)
 n = party member in line (0 = leader, 1 = 2nd in line etc)
 x/y is the position to jump
 
 eg. 3 tiles to the right, use:
 party_jump(3, 0)

------------------------------------------------------------------------------
 To have one party member move around:
------------------------------------------------------------------------------
 member_move(n, command)
 n = party member in line (0 = leader, 1 = 2nd in line etc)
 command =
 "DOWN"
 "LEFT"
 "RIGHT"
 "UP"
 "LOWER_L"
 "LOWER_R"
 "UPPER_L"
 "UPPER_R"
 "FORWARD"
 "BACKWARD"
 "TURN_R"
 "TURN_L"
 "TURN_B"

 eg. to have 2nd member in line move lower right
  member_move(1, "LOWER_R")
  
------------------------------------------------------------------------------
 To have a party member pop up balloon:
------------------------------------------------------------------------------
 member_balloon(n, id)
 n = party member in line (0 = leader, 1 = 2nd in line etc)
 where id is the balloon id

------------------------------------------------------------------------------
 To have a party member pop up animation:
------------------------------------------------------------------------------
 member_anim(n, id)
 n = party member in line (0 = leader, 1 = 2nd in line etc)
 where id is the animation id

=end
#==============================================================================
class Game_Character < Game_CharacterBase
  def face_player
    set_direction($game_player.direction)
  end
end
class Game_Player < Game_Character
  attr_accessor :through
end
class Game_Follower < Game_Character
  alias meow_init initialize
  def initialize(member_index, preceding_character)
    meow_init(member_index, preceding_character)
    $meowchase = false
  end
  alias meow_chase chase_preceding_character
  def chase_preceding_character
    return if $meowchase
    meow_chase
  end
end
class Game_Interpreter
  def meow_party
    @meowparty = [$game_player] + $game_player.followers.visible_folloers
  end
  def instant_gather
    meow_party
    @meowparty.each do |meow|
      meow.moveto($game_player.x, $game_player.y)
    end
  end
  def party_jump(x, y)
    meow_party
    start_x, start_y = $game_player.x, $game_player.y
    @meowparty.each do |meow|
      meow.moveto(start_x, start_y)
      meow.jump(x, y)
      Fiber.yield while meow.jumping?
    end
  end
  def member_jump(n, x, y)
    meow_party
    @meowparty[n].jump(x, y) if @meowparty[n] != nil
  end
  def turn_face
    case @meowturn
    when "DOWN"; @mew.set_direction(2)
    when "LEFT"; @mew.set_direction(4)
    when "RIGHT"; @mew.set_direction(6)
    when "UP"; @mew.set_direction(8)
    when "PLAYER"; @mew.face_player
    end
  end
  def party_face(meowcommand)
    meow_party
    @meowturn = meowcommand
    @meowparty.each do |m|
      @mew = m
      turn_face
    end
  end
  def member_face(n, meowcommand)
    meow_party
    @meowturn = meowcommand
    @mew = @meowparty[n]
    if @mew != nil
      turn_face
    end    
  end
  def run_member_move
    case @meowmove
    when "DOWN"; @mew.move_straight(2)
    when "LEFT"; @mew.move_straight(4)
    when "RIGHT"; @mew.move_straight(6)
    when "UP"; @mew.move_straight(8)
    when "LOWER_L"; @mew.move_diagonal(4, 2)
    when "LOWER_R"; @mew.move_diagonal(6, 2)
    when "UPPER_L"; @mew.move_diagonal(4, 8)
    when "UPPER_R"; @mew.move_diagonal(6, 8)
    when "FORWARD"; @mew.move_forward
    when "BACKWARD"; @mew.move_backward
    when "TURN_R"; @mew.turn_right_90
    when "TURN_L"; @mew.turn_left_90
    when "TURN_B"; @mew.turn_180
    end
  end
  def party_move(meowcommand)
    meow_party
    $game_player.through = true
    $meowchase = true
    @meowmove = meowcommand
    @meowparty.each do |m|
      @mew = m
      run_member_move
    end
    Fiber.yield while @mew.moving?
    $game_player.through = false
    $meowchase = false
  end
  def member_move(n, meowcommand)
    meow_party
    $meowchase = true
    $game_player.through = true
    @meowmove = meowcommand
    @mew = @meowparty[n]
    if @mew != nil
      run_member_move
      Fiber.yield while @mew.moving?
    end
    $meowchase = false
    $game_player.through = false
  end
  def member_balloon(n, m)
    meow_party
    @meowparty[n].balloon_id = m if @meowparty[n] != nil
  end
  def member_anim(n, m)
    meow_party
    @meowparty[n].animation_id = m if @meowparty[n] != nil
  end
  def party_balloon(m)
    meow_party
    @meowparty.each do |meow|
      meow.balloon_id = m
    end
  end
  def party_anim(m)
    meow_party
    @meowparty.each do |meow|
      meow.animation_id = m
    end
  end
end
 
Last edited by a moderator:

Ace VII

Genius but Strict
Veteran
Joined
Aug 21, 2014
Messages
128
Reaction score
209
First Language
Japanese
Primarily Uses
You're welcome! Well, it's the forum update that broke the bbcode format, they said it will fix itself when all patches are done. So i am going to give it a 3 days wait before i start to check on what is still broken.


in the meantime give this a try:


(The new editor is not very friendly when it comes to pasting codes and it's messing up formats when hidden in a spoiler unlike the old v3 so i am going to skip the spoiler hide here. Beware, it's long)



#==============================================================================
# ■ Meow Face Party Controller
#------------------------------------------------------------------------------
# Control Party Leader and Followers
#==============================================================================
# How to Use:
# Plug & Play, Put this script below Material and above Main
# Terms of Use:
# Free for both commercial/non-commercial
#==============================================================================
=begin
==============================================================================
Use these script calls below in event's script box
==============================================================================
------------------------------------------------------------------------------
To gather all party members instantly:
------------------------------------------------------------------------------
instant_gather

------------------------------------------------------------------------------
To have all party jump together:
------------------------------------------------------------------------------
party_jump(x, y)
where x/y is the position to jump

eg. 3 tiles to the left, use:
party_jump(-3, 0)

------------------------------------------------------------------------------
To have all party pop up balloon:
------------------------------------------------------------------------------
party_balloon(id)
where id is the balloon id

------------------------------------------------------------------------------
To have all party pop up animation:
------------------------------------------------------------------------------
party_anim(id)
where id is the animation id

------------------------------------------------------------------------------
To have the whole party move around:
------------------------------------------------------------------------------
party_move(command)
command =
"DOWN"
"LEFT"
"RIGHT"
"UP"
"LOWER_L"
"LOWER_R"
"UPPER_L"
"UPPER_R"
"FORWARD"
"BACKWARD"
"TURN_R"
"TURN_L"
"TURN_B"

------------------------------------------------------------------------------
To have the whole party face a direction:
------------------------------------------------------------------------------
party_face(command)
command =
"DOWN"
"LEFT"
"RIGHT"
"UP"
"PLAYER"

------------------------------------------------------------------------------
To have one party member face a direction:
------------------------------------------------------------------------------
member_face(n, command)
n = party member in line (0 = leader, 1 = 2nd in line etc)
command =
"DOWN"
"LEFT"
"RIGHT"
"UP"
"PLAYER"

------------------------------------------------------------------------------
To have one party member jump:
------------------------------------------------------------------------------
member_jump(n, x, y)
n = party member in line (0 = leader, 1 = 2nd in line etc)
x/y is the position to jump

eg. 3 tiles to the right, use:
party_jump(3, 0)

------------------------------------------------------------------------------
To have one party member move around:
------------------------------------------------------------------------------
member_move(n, command)
n = party member in line (0 = leader, 1 = 2nd in line etc)
command =
"DOWN"
"LEFT"
"RIGHT"
"UP"
"LOWER_L"
"LOWER_R"
"UPPER_L"
"UPPER_R"
"FORWARD"
"BACKWARD"
"TURN_R"
"TURN_L"
"TURN_B"

eg. to have 2nd member in line move lower right
member_move(1, "LOWER_R")

------------------------------------------------------------------------------
To have a party member pop up balloon:
------------------------------------------------------------------------------
member_balloon(n, id)
n = party member in line (0 = leader, 1 = 2nd in line etc)
where id is the balloon id

------------------------------------------------------------------------------
To have a party member pop up animation:
------------------------------------------------------------------------------
member_anim(n, id)
n = party member in line (0 = leader, 1 = 2nd in line etc)
where id is the animation id

=end
#==============================================================================
class Game_Character < Game_CharacterBase
def face_player
set_direction($game_player.direction)
end
end
class Game_Player < Game_Character
attr_accessor :through
end
class Game_Follower < Game_Character
alias meow_init initialize
def initialize(member_index, preceding_character)
meow_init(member_index, preceding_character)
$meowchase = false
end
alias meow_chase chase_preceding_character
def chase_preceding_character
return if $meowchase
meow_chase
end
end
class Game_Interpreter
def meow_party
@meowparty = [$game_player] + $game_player.followers.visible_folloers
end
def instant_gather
meow_party
@meowparty.each do |meow|
meow.moveto($game_player.x, $game_player.y)
end
end
def party_jump(x, y)
meow_party
start_x, start_y = $game_player.x, $game_player.y
@meowparty.each do |meow|
meow.moveto(start_x, start_y)
meow.jump(x, y)
Fiber.yield while meow.jumping?
end
end
def member_jump(n, x, y)
meow_party
@meowparty[n].jump(x, y) if @meowparty[n] != nil
end
def turn_face
case @meowturn
when "DOWN"; @mew.set_direction(2)
when "LEFT"; @mew.set_direction(4)
when "RIGHT"; @mew.set_direction(6)
when "UP"; @mew.set_direction(8)
when "PLAYER"; @mew.face_player
end
end
def party_face(meowcommand)
meow_party
@meowturn = meowcommand
@meowparty.each do |m|
@mew = m
turn_face
end
end
def member_face(n, meowcommand)
meow_party
@meowturn = meowcommand
@mew = @meowparty[n]
if @mew != nil
turn_face
end
end
def run_member_move
case @meowmove
when "DOWN"; @mew.move_straight(2)
when "LEFT"; @mew.move_straight(4)
when "RIGHT"; @mew.move_straight(6)
when "UP"; @mew.move_straight(8)
when "LOWER_L"; @mew.move_diagonal(4, 2)
when "LOWER_R"; @mew.move_diagonal(6, 2)
when "UPPER_L"; @mew.move_diagonal(4, 8)
when "UPPER_R"; @mew.move_diagonal(6, 8)
when "FORWARD"; @mew.move_forward
when "BACKWARD"; @mew.move_backward
when "TURN_R"; @mew.turn_right_90
when "TURN_L"; @mew.turn_left_90
when "TURN_B"; @mew.turn_180
end
end
def party_move(meowcommand)
meow_party
$game_player.through = true
$meowchase = true
@meowmove = meowcommand
@meowparty.each do |m|
@mew = m
run_member_move
end
Fiber.yield while @mew.moving?
$game_player.through = false
$meowchase = false
end
def member_move(n, meowcommand)
meow_party
$meowchase = true
$game_player.through = true
@meowmove = meowcommand
@mew = @meowparty[n]
if @mew != nil
run_member_move
Fiber.yield while @mew.moving?
end
$meowchase = false
$game_player.through = false
end
def member_balloon(n, m)
meow_party
@meowparty[n].balloon_id = m if @meowparty[n] != nil
end
def member_anim(n, m)
meow_party
@meowparty[n].animation_id = m if @meowparty[n] != nil
end
def party_balloon(m)
meow_party
@meowparty.each do |meow|
meow.balloon_id = m
end
end
def party_anim(m)
meow_party
@meowparty.each do |meow|
meow.animation_id = m
end
end
end
Awww, Thanks for taking the trouble on doing this for me :D


I can't thank you enough!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,549
Members
137,837
Latest member
Dabi
Top