Main Menu
  • Welcome to The RPG Maker Resource Kit.

Integrated Reserve Party

Started by modern algebra, May 08, 2009, 01:51:15 AM

0 Members and 1 Guest are viewing this topic.

modern algebra


MonkeyMan454

@modern algebra

Hey it's been a while since I used RPG Maker VX and I remembered that I was using this script. How do you change the maximum number of party members?

pacdiggity

Go to Game_Party and alter the MAX_MEMBERS constant.
it's like a metaphor or something i don't know

theUN3ARTH

@Modern Algebra
Is there any way to call a window in-battle to show the reserve party? I was looking to have a member-swap system just liuke ffx. How could I do this?

oriceles

#79
As I already see necroposting in here I will post. Nobody knows if i can see the reserve party members with YEZ to YEM Status Biography? That would be very awesome and give it a Fire emblem touch to the game. I'll test an edit this post later. Not to offend but I see this script much simpler than the one from Pacman.

EDIT: I tried to use both and this worked :D! I'm going to use this on my game haha, is something like golden sun.

ModernAlgebra the lock position addon works also with your Change Party Order script? i like having the option of change them without the menu, an with the caterpillar my charas look very funny

JonFawkes

It's simpler but is only compatible as long as you don't use anything that modifies that status screen. I believe the Yanfly script you want to use pulls up its own scene, so it shouldn't be a problem.

My problem is that I am using MA's CMS, which has no room for the Integrated Reserve Party. In this case, Pacman's script is more suitable for my uses.

oriceles

Quote from: JonFawkes on October 06, 2011, 05:50:41 AM
My problem is that I am using MA's CMS, which has no room for the Integrated Reserve Party. In this case, Pacman's script is more suitable for my uses.

Well is nice to have different options depending of which modifications are made.
In my case I'm too happy with the the combination result.

Raphaela

Hello, I'm new around here and I made an account just to have my problem solved.

I'm using this Larger Party script and it's awesome, BUT I can't lock the main character.
I've put the Addon script and I'm using a event to call a script using this text:

lock_position (actor_id)
actor_id : 001

But it always give me an error message.

What am I doing wrong? Please, someone tell me.

modern algebra

actor_id is to be replaced by the id, so not like that. Also, don't use leading zeroes. In other words:

lock_position (1)

kathy

#84

This happens whenever I bring up the menu when on the map. What could be causing this, specifically?

EDIT: It appears that this only happens when I load a save file (presumably because they were created before the script was installed).
How can I make it so that the testers of my game do not need to go over from the beginning?

pacdiggity

#85
This may not work, but put this in a script command via event immediately after loading the game.

$game_party.ma_reserve_actors = []
$game_party.ma_max_active_size = MAX_MEMBERS
$game_party.ma_min_active_size = PARTY_CHANGE_MIN_ACTIVE_SIZE
$game_party.ma_max_reserve_size = PARTY_CHANGE_MAX_RESERVE_SIZE
$game_party.ma_locked_actors = []
$game_party.ma_party_access = true
$game_party.ma_return_reserve_members = false
$game_party.ma_draw_party_space = false

You'll need to split the lines, and you'll probably need more than one command. It should work, but I'm not quite sure. Don't place all your trust in it.
it's like a metaphor or something i don't know

kathy

How would I set an event to happen upon loading the game?

andyvrc

i've got this error from your reserve party script..
here are some error..
please help me mr.. :))


gadgetsj

This script is just what I needed, but I'm having an error with compatibility with KGC Equip Extend script. Specifically, if I try to change out equipment of a reserve party member I get the error:

Script 'EquipExtend' line 1055 :NoMethodError Occurred
undefined method 'armor_number' for nil:NilClass

Line 1055 of EquipExtend reads:

@equip_index = [@equip_index, actor.armor_number].min

I've been searching forums here and RMVX community, but haven't had any luck with an answer. I'd hate to take either of these scripts out of my game, either. Thanks for any help you can provide, and thank you again for your awesome work.

Revtattertot

Hi. I'm trying to get your script to work for my game, but there's a big problem. It loads in fine, then everything tharts processing in the map and I get this:

"undefined method 'ma_reserve_actors='for#<Game_Party:0x405a290>"

I configured everything properly up to that point, and even used Pacman's tip for the line 799 error, but I can't seem to fix this. Can you reply with some help, I'm kinda losin' it here.

With sanity,
Revtattertot.
Link to my game is here.
http://rmrk.net/index.php/topic,45507.0.html
Feedback will be nice to get, constructive or otherwise.

pacdiggity

It's not that big an issue. You can just start a new game, only preexisting save files are corrupted.

However, MA, I think save file corruption could be avoided by aliasing the method that loads files and initializing the constants there if it doesn't exist. Would that work?
it's like a metaphor or something i don't know

Revtattertot

Link to my game is here.
http://rmrk.net/index.php/topic,45507.0.html
Feedback will be nice to get, constructive or otherwise.

modern algebra

Quote from: Pacman on March 30, 2012, 07:05:36 AM
However, MA, I think save file corruption could be avoided by aliasing the method that loads files and initializing the constants there if it doesn't exist. Would that work?

Yes, it would.

Revtattertot

Thanks for the feedback, guys.
Revtattertot
Link to my game is here.
http://rmrk.net/index.php/topic,45507.0.html
Feedback will be nice to get, constructive or otherwise.

pacdiggity

So it could just be:
class Scene_File < Scene_Base
  alias omg_what_rdsvfl read_save_file
  def read_save_file(*args)
    omg_what_rdsvfl(*args)
    $game_party.ma_reserve_actors = []
    $game_party.ma_max_active_size = MAX_MEMBERS
    $game_party.ma_min_active_size = PARTY_CHANGE_MIN_ACTIVE_SIZE
    $game_party.ma_max_reserve_size = PARTY_CHANGE_MAX_RESERVE_SIZE
    $game_party.ma_locked_actors = []
    $game_party.ma_party_access = true
    $game_party.ma_return_reserve_members = false
    $game_party.ma_draw_party_space = false
  end
end

Or something of that manner.
it's like a metaphor or something i don't know

Revtattertot

Now I'm getting a line 970 syntax error. Is there a second script I need with this?
Link to my game is here.
http://rmrk.net/index.php/topic,45507.0.html
Feedback will be nice to get, constructive or otherwise.

pacdiggity

#96
Give me a second.
That's weird. My stuff things don't work.
it's like a metaphor or something i don't know

modern algebra

#97
Well, some of those variables aren't publically accessible. Also, you would need to perform a check to see if they are already defined. Otherwise, for games that were started with the IRP, you would be deleting the entire reserve party everytime you loaded the game. In other words, it would be something like this:


class Game_Party
  def ma_irp_initvars
    # Initialize Variables
    @ma_reserve_actors = []
    @ma_max_active_size = MAX_MEMBERS
    @ma_min_active_size = PARTY_CHANGE_MIN_ACTIVE_SIZE
    @ma_max_reserve_size = PARTY_CHANGE_MAX_RESERVE_SIZE
    @ma_locked_actors = []
    @ma_party_access = true
    @ma_return_reserve_members = false
    @ma_draw_party_space = false
  end
end

class Scene_File < Scene_Base
  alias omg_what_rdsvfl read_save_file
  def read_save_file(*args)
    omg_what_rdsvfl(*args)
    $game_party.ma_irp_initvars if !$game_party.ma_reserve_actors
  end
end


Of course, I don't recall the script so there may be other instance variables I am neglecting, but you got the basic idea. Additionally, there are other things that happen in the read_save_file method, and if those methods interact with any of the variables created for the IRP then it won't make a difference. I did not look into that for this script, but it could easily be a problem for other scripts and would require additional aliasing.

All of my scripts in Ace have support for old savefiles, so you can look at them to see how it's done too. But you got the idea.

pacdiggity

I was lazy, haha. I knew the logic behind that, I just didn't do it. Couldn't you also just use the ||= operator to avoid overwriting?

And I think that's all of the variables.
it's like a metaphor or something i don't know

modern algebra

Yes, you could, but doing an if branch is negligibly more efficient.