[VX] Party Changer

Loving the Party Changer script but unfortunately I am also getting the cache line 80 error and I have locked.png in the system folder T_T
Yes, I know. I'm working on it.
When i go to Change Party members in battle, this comes up

http://i283.photobucket.com/albums/kk29 ... /Error.png[/img]

and it's a problem in this line of code

#--------------------------------------------------------------------------
  # * Actor X Coordinate
  #--------------------------------------------------------------------------
  def screen_x
    return self.abatvx_bypass_x if self.abatvx_form_bypass == true
    if $game_system.abatvx_mirror
      return 544 - ABATVX_FORMATION[$game_system.abatvx_form_id][self.index][0]
    else
      return ABATVX_FORMATION[$game_system.abatvx_form_id][self.index][0] #AT THIS LINE [Not a comment]
    end
  end
Expand to see the code.


and its part of the Sidewiew Battle System by DerVVulfman

I'll show the code

It's the battle formation, it's exact line is 124

Content Hidden Spoiler
#==============================================================================
# ** Animated Battlers VX Add-On #1:
#    Animated Battler Formations
#------------------------------------------------------------------------------
#    by DerVVulfman
#    version 1.0
#    05-20-2008
#    RGSS2 / RPGMaker VX
#==============================================================================
#
#  INTRODUCTION:
#
#  Rather than reinstitute  the formation system  I included and hardwired into
#  "Minkoff's Animated Battlers - Enhanced", I decided to use an outside script
#  that is highly customizable.  With this add-on,  the end user can design the
#  battle formations  for the actor battlers.   They will start out  and remain
#  lined up in the order the end user sets up.
#
#  The system recognizes the  'Mirror Effect'  system  in Animated Battlers VX,
#  and will adjust and reverse the battler positions accordingly.  You need not
#  worry about  creating duplicate  formation entries  for both left  and right
#  sided formations.
#
#------------------------------------------------------------------------------
# 
#  CREATING THE FORMATIONS:
#
#  This system allows you to create multiple formations.   This is accomplished
#  by the way you use the 'ABATVX_FORMATION' array.  The syntax is as follows:
#
#  ABATVX_FORMATION = { id => [ formation set ], id => [formation set],... }
#
#  So...  with that,  you can make  multiple sets  of formations  which you can
#  switch to while the game is running..
#
#  Now...  each formation set holds the x and y position for each actor battler
#  in combat.  Not by their 'Actor ID' mind you,  merely by party member order.
#  So the first member in your party,regardless of their position in your actor
#  database, will be first battler position defined in the formation set.  The
#  layout for each formation set is as follows:
#
#             [ [Battler 1's X & Y], [Battler 2's X & Y],... ]
#
#  Most people would set a formation set with allowances for 4 battlers. But if
#  you wanted to use a large party script  to increase the number of members in
#  your battle party, you can add more than 4 battler arrays like so:
#
#  ...ON = { 0 => [ [350,200], [395,235], [440,270], [485,305], [530,340] ],
#            1 => [ [530,200], [485,235], [440,275], [395,305], [350,340] ]  }
# 
#------------------------------------------------------------------------------
#
#  SCRIPT CALL:
#
#  There's only one script call you should be familiar with right now, and that
#  is the script call that changes the formation you want to use in battle.  By
#  default, the system uses the formation set by ID #0.  But you can change the
#  formation being used with the following call:
#
#
#  The call is simple:  $game_system.abatvx_form_id = number
#
#  Where the number is the ID number of your formation.  That's it.
#
#
#------------------------------------------------------------------------------
#
#  TERMS AND CONDITIONS:
#
#  Free to use, even in commercial projects.  Just note that I need some form
#  of due credit... even a mere mention in some end titles.
#
#==============================================================================

  # THE  FORMATION
  # SETTING  ARRAY
  # ==============
  #                   ID      Battler 1   Battler 2   Battler 3   Battler 4
  ABATVX_FORMATION = { 0 => [ [350, 200], [395, 235], [440, 270], [485, 305] ],
                       1 => [ [485, 200], [440, 235], [395, 270], [350, 305] ] }

 
 
#==============================================================================
# ** Game_System
#------------------------------------------------------------------------------
#  This class handles system-related data. Also manages vehicles and BGM, etc.
# The instance of this class is referenced by $game_system.
#==============================================================================

class Game_System
  #--------------------------------------------------------------------------
  # * Public Instance Variables
  #--------------------------------------------------------------------------
  attr_accessor :abatvx_form_id           # Formation ID
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  alias init_game_system initialize
  def initialize
    init_game_system
    @abatvx_form_id = 0                # Initial formation
  end
end



#==============================================================================
# ** Game_Actor
#------------------------------------------------------------------------------
#  This class handles actors. It's used within the Game_Actors class
# ($game_actors) and referenced by the Game_Party class ($game_party).
#==============================================================================

class Game_Actor < Game_Battler
  #--------------------------------------------------------------------------
  # * Actor X Coordinate
  #--------------------------------------------------------------------------
  def screen_x
    return self.abatvx_bypass_x if self.abatvx_form_bypass == true
    if $game_system.abatvx_mirror
      return 544 - ABATVX_FORMATION[$game_system.abatvx_form_id][self.index][0]
    else
      return ABATVX_FORMATION[$game_system.abatvx_form_id][self.index][0]
    end
  end
  #--------------------------------------------------------------------------
  # * Actor Y Coordinate
  #--------------------------------------------------------------------------
  def screen_y
    return self.abatvx_bypass_y if self.abatvx_form_bypass == true
    return ABATVX_FORMATION[$game_system.abatvx_form_id][self.index][1]
  end
end
Expand to see the code.


Is it that this system is not compatible with DerVVulfman's sideview battlers, or is it that I am doing something wrong, any help would be appreciated

If it's not compatible with sideview battlers, I will just forget about this script for now.
If you're using more than 4 party members in-battle, then this might be the problem.
Ok, I'll try that soon, but I am uncertain on how to limit how many characters I have in my party, it seems to show me having 4, how do I close that limit? what line of what script, sorry I'm a noob at scripting, but I have tried to get this thing working for an hour, I'll have a look through the comments again and see if I can figure it out :)

Edit: Ok, I've tried setting the max number of party members to 4 and keeping it on 6 on the Large party sheet. neither worked, example

#--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize
    dargor_vx_large_party_initialize
    @max_members = 6                        # Maximum number of party members
  end
Expand to see the code.


#--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize
    dargor_vx_large_party_initialize
    @max_members = 4                        # Maximum number of party members
  end
Expand to see the code.


Tried this

#------------------------------------------------------------------------------
#  INSTRUCTIONS:
#     1)  To change the maximum # of actors allowed in the party, use:
#           - $game_party.max_members = x
#==============================================================================
Expand to see the code.


I tried using it in an event and using advanced => script, is that the way I'm supposed to do it?

keeps coming up with the same line 124 error

I also tried
  #--------------------------------------------------------------------------
  # * Actor X Coordinate
  #--------------------------------------------------------------------------
  def screen_x
    return self.abatvx_bypass_x if self.abatvx_form_bypass == true
    if $game_system.abatvx_mirror
      return 544 - ABATVX_FORMATION[$game_system.abatvx_form_id][self.index][0]
    else
      return ABATVX_FORMATION[$game_system.abatvx_form_id][self.index][4]
    end
  end
  #--------------------------------------------------------------------------
  # * Actor Y Coordinate
  #--------------------------------------------------------------------------
  def screen_y
    return self.abatvx_bypass_y if self.abatvx_form_bypass == true
    return ABATVX_FORMATION[$game_system.abatvx_form_id][self.index][1]
  end
end
Expand to see the code.


and

  #--------------------------------------------------------------------------
  # * Actor X Coordinate
  #--------------------------------------------------------------------------
  def screen_x
    return self.abatvx_bypass_x if self.abatvx_form_bypass == true
    if $game_system.abatvx_mirror
      return 544 - ABATVX_FORMATION[$game_system.abatvx_form_id][self.index][0]
    else
      return ABATVX_FORMATION[$game_system.abatvx_form_id][self.index][-4]
    end
  end
  #--------------------------------------------------------------------------
  # * Actor Y Coordinate
  #--------------------------------------------------------------------------
  def screen_y
    return self.abatvx_bypass_y if self.abatvx_form_bypass == true
    return ABATVX_FORMATION[$game_system.abatvx_form_id][self.index][1]
  end
end
Expand to see the code.


doing that wouldn't let me enter a battle just had an error in the spriteset_battle.

I'll try more until you post a reply on what I'm supposed to do :)

Edit 2: Now another error has arisen, now I cant get into battle at all

This comes up

http://i283.photobucket.com/albums/kk29 ... Error2.png[/img]

I'm so frustrated :(
You should add a demo for this, for us scripters that don't know much :)
i love your script dargor! it's awesome 😀

but i need a little help: how can i make it so the "party" command doesn't show up at all in battle? i was able to disable it so the option is there but always grey, but i don't want it there at all.

also...is there a way to make it so actor 010 has to be one of the 4 party members, but he doesn't have to be locked as the first person?

thank you so much! you're a scripting genius 😘
Hey!.Ur link has been crashed!. :(
@darian
Thanks.
To remove the Party command in-battle, use the following line of code in a script call event command:
$game_system.remove_party_command(Vocab::Party)
Expand to see the code.


@EvilEagles
Ok, I'll fix that. 

@BizarreMonkey 
I will. I just want to release version 3.0 before. It will include multiple parties and some other stuff. :thumb:

Take care!
-Dargor
hey hey, i'm not sure if i did it right but i did this:

http://i32.tinypic.com/2dtq78l.gif[/img]

as a parallel process event on the first playable map of the game,
and i got this error as soon as i got there:

http://i26.tinypic.com/1411kyp.gif[/img]

so then i thought maybe i was supposed to put it in the monster troop event or whatever, so i tried this:

http://i32.tinypic.com/294tks7.gif[/img]

and nothing happened.

sorry! but thank you for the help : D
It's because your line of code is too long for the text field.
Try something like
sys = $game_system
cmd = Vocab::Party
sys.remove_party_command(cmd)
Expand to see the code.
I simply load the game demo, and get this...
Script 'Large Party' line 97: TypeError occured.
underfined superclass 'Sprite'
Will of e-mailed you the screen shot, i copied your custom command, large party and party changer scripts. All 3 under materials. I didnt add into any other parameters just made new lines for just those 3. As I also added in your bestiary and a SBS custom battle system from another chap. Any help would be nice!
Long story short me and my soon to be wifew are making a rpg. She is doing the story and artwork and me the scripting/map making lol.

Content Hidden Spoiler
http://img57.imageshack.us/img57/2719/errorrk9.jpg[/img]

Link of error pic included.
hmm 🙁

i put that line of code into a script event command in a parallel process event again and the error was gone but the Party command still showed up in-battle. i put it into the troop event thing, too, but it didn't seem to do anything either.
sorry dargor! 🙁

am i at least putting the code in the right place? i really appreciate the help.
This has been working great for me.  Thanks for making it. :D  I was wondering if I could put in some suggestions to improve it?

Switching during a battle is great because it can make things so dynamic, but could there be a limit on how many times actors can be switched?  For example, you'd be limited to 2 switches in a turn and you can only switch again in like x turns after you do so.  Unlimited switching during battles could make a game too easy.

Also, can you make it so Dead actors can't be switched out?  Maybe allow us to set states where we are unable to switch actors during battle because of a status effect.

I'd just like for these things to be heard, at least, in hopes for the better script. :)  Thank you.
Mr. Bubble wrote:
This has been working great for me.  Thanks for making it. :D  I was wondering if I could put in some suggestions to improve it?

Switching during a battle is great because it can make things so dynamic, but could there be a limit on how many times actors can be switched?  For example, you'd be limited to 2 switches in a turn and you can only switch again in like x turns after you do so.  Unlimited switching during battles could make a game too easy.

Also, can you make it so Dead actors can't be switched out?  Maybe allow us to set states where we are unable to switch actors during battle because of a status effect.

I'd just like for these things to be heard, at least, in hopes for the better script. :)  Thank you.

Well it always depends on the difficulty of the monsters, right?

And look at FFX. Party switching in-battle was more tactical, because only one character was effective against magic monsters, only one was effective against summons, only one character was effective against flying animals (as all the others missed most of the times), etc etc.

If you would implement something like that, it's not necessarily easy.
@darian 
It's because I force the command to be added to the party window. it will be changed in the next version.

@Mr. Bubble

I like the idea of not switching an actor because of its state. I will add that.
And you're not supposed to switch with a dead actor, I will fix that.

I will post a new demo soon.

Take care!
-Dargor
Can't wait for the new demo :D

Good Luck!

Edit: Is there any other demo for this? because I can't find it on the first page... or anywhere :)

Because I just copied the scripts raw from the topics, didn't see a demo, it makes me think that there is a demo somewhere though because of this being a "new" demo :)
Ehm

---------------------------
---------------------------
????? 'Party Changer' ? 260 ??? NoMethodError ????????

undefined method `each' for nil:NilClass
---------------------------
---------------------------

Any Ideas what i should do? I have the custom commands, and large party script in order with it, i dont know what the problems is. IT seems it doesn't know wtf each does >.<
I have updated the script to version 3.1 I have fixed a couple of bugs and it now supports multiple parties.
I have also added a demo in the first post.

Take care!
-Dargor
I got this error when trying to start a new game:
line 278: NoMethodError ocurred:
Undefined method 'add_reserve_actor' for #

I have a save game where I used v2.3 of this script and made a party of 8 characters. The saved game starts fine, but when I enter a battle....
Script 'Window Selectable' line 100: NoMethodError ocurred.
Undefined method `' for: NillClass
I have a question that you're probably going to find kinda dumb but I looked all over the thread and I couldn't find a definitive answer^^; So here goes: How do I set the maximum number of actors that are allowed to be in the party? I'd like to have just four members in the party at all times, if possible.
@lordpsycho 
Old saved games using an older will not work. They don't contain the informations of the newest version. The reason why you have the first error is because I want this script to be 100% compatible with my multiple parties script. I just forgot to prevent using a multiple parties method when not using it. I'll fix that.

@dootthaloop 
This feature belongs to the Large Party script. Go into the configuration module (at the beginning of the script) and change the value of Max_Members to 4.

Take care!
-Dargor
This script is fantastic. Thanks a ton.

I had two questions concerning it:

1) For the in-battle party changer, is there a way to set it up so the party function is only disabled if there are no characters in my reserve?

2) I'm using Lettuce's stat point distribution script, along with the patch you made for it to work with your custom commands script. Regarding the function in the large party script that allows you to see a character's stats when you hold down shift, is there a way to have Lettuce's stat screen pop up instead of the default stat screen?

Thanks again.

EDIT: I figured how to switch in Lettuce's stat window, though I'm sure my methodology in doing so was harder and messier than necessary (I'm new to this scripting thing). If you have an answer for me on question #1, though, I'd very much appreciate it.
1) I though I already add that... I'll take a look at it.

2) I'm glad you managed to add your own window! Codes are always messy at first, it's normal.
I've encountered an odd problem with the way I set up Lettuce's stat window to show up in place of the default stat window when you hold down the shift key. The windows pop up fine both in the menu party changer and the battle party changer. The problem I am having is that when my first character dies in battle, the game completely freezes when the battle is over and I return to the map screen. This does not happen if any other character dies. I know this is not a problem on your demo. If the first character dies on your demo, he is sorted to the bottom of the character list and the second character becomes the first.

How can I get mine to work that way again? Was my way of programming this just way off? Please tell me if it is. Any help I can get on this would be much appreciated. Thank you again.


EDIT: I guess I just need to learn to take a breather before I make posts. I'm not quite sure what my problem was, but by taking the primary part of the script I edited and pasting it into a clean copy of your script in the applicable place, I got the script to work. I must have edited something I forgot about in my original script before I knew what I was doing.

EDIT 2: I figured out what the problem was. I had the on-map party changer feature set to false. If that feature is set to false and your first character dies, the game freezes up, apparently because it can't switch your dead character for another character on the map screen.
I'm back again, Been using Prexus' Party changer until I can get this working, and I now believe I know the Cause of the error

I fear that the problem is that your Script isn't compatible with DerVVulfman's Animated battlers: Enhanced, If this is true... would there be a way you could make this compatible with it?, I can change party members outside of Battle [Thanks to the awesome demo] But when I go into battle and try to change members it comes up with the Usual Error

http://i283.photobucket.com/albums/kk29 ... Error2.png[/img]

It would please me greatly if you could make this compatible, or simply give me step by step instructions of a way to do it myself, so you don't have to edit the whole script

Good luck :)
@BizzareMonkey
Thanks for the informations. I'll take a look at DVV'S CBS and try to fix this problem :thumb:

@Brushfire
EDIT 2: I figured out what the problem was. I had the on-map party changer feature set to false. If that feature is set to false and your first character dies, the game freezes up, apparently because it can't switch your dead character for another character on the map screen.

I'll fix that too.
Cool! Can't wait! :[)
Hello. I have a question, I want to check with you. When selecting party members in both main menu and the scripted party selection window, is it possible to have a character to be fix in the first slot. So he/she can't be removed? Thanks.
How do we remove members from the party changer?

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=42719