Removing Unused party members from menu.

Hello forum. A bit of a question here for you. I am using a system that lets the player shift party members in and out of the main party, while keeping unused members in reserve. (YANFLYS ACE PARTY SYSTEM 1.08). However with this system, the members who are not IN the current party still show up in the main menu. I tried both the default menu and the Xail better menu. And with both, they still show, in the default menu they are "faded" and in the Xail menu they show up in full, but in the bottom of the party. I really want them to not show up in any window (menu, item selection, shop), as they are not in the current battler party. Is there any way to change this??

I feel like it has something to do with the word "enabled" in this part of the code here...

WINDOW_MENU_STATUS

  #--------------------------------------------------------------------------  # * Draw Item  #--------------------------------------------------------------------------  def draw_item(index)    actor = $game_party.members[index]    enabled = $game_party.battle_members.include?(actor)    rect = item_rect(index)    draw_item_background(index)    draw_actor_face(actor, rect.x + 1, rect.y + 1, enabled)    draw_actor_simple_status(actor, rect.x + 108, rect.y + line_height / 2)  end

and in Xail somewhere (not sure where) in this part of the code....

 

Spoiler
Code:
  def draw_item(index)    # // Method to draw item.    actor = $game_party.members[index]    rect = item_rect(index)    # // Face    draw_actor_face(actor, rect.x + 1, rect.y + 1, true)    # // Name    draw_font_text(actor.name, rect.x + 4, rect.y, rect.width, 0, XAIL::MENU_DELUX::FONT[0], 20, XAIL::MENU_DELUX::FONT[2])    # // Level    lvl = "#{Vocab::level_a}: #{actor.level}"#    draw_font_text(lvl, rect.x + 4, rect.y + 64, rect.width, 0, XAIL::MENU_DELUX::FONT[0], 18, XAIL::MENU_DELUX::FONT[2])    # // Class    # // Check if Yanfly Class System is installed.    if $imported["YEA-ClassSystem"]      actor_class = actor.subclass.nil? ? actor.class.name : "#{actor.class.name} [#{actor.subclass.name}]"    else      actor_class = actor.class.name    end        draw_font_text(actor_class, rect.x - 4, rect.y + 76, rect.width, 2, XAIL::MENU_DELUX::FONT[0], 16, XAIL::MENU_DELUX::FONT[2])    # // Stats    draw_menu_stats(actor, :hp, rect.x, rect.y + 90, XAIL::MENU_DELUX::BAR_HP[0], XAIL::MENU_DELUX::BAR_HP[1], rect.width - 2)    draw_menu_stats(actor, :mp, rect.x, rect.y + 100, XAIL::MENU_DELUX::BAR_MP[0], XAIL::MENU_DELUX::BAR_MP[1], rect.width - 2)    draw_menu_stats(actor, :tp, rect.x, rect.y + 110, XAIL::MENU_DELUX::BAR_TP[0], XAIL::MENU_DELUX::BAR_TP[1], rect.width - 2)  end

Any help would be appreciated.
module NIOSYSTEM ={:beta_size => 4}endclass Window_MenuStatut < Window_Selectable #-------------------------------------------------------------------------- # * Get Number of Items #-------------------------------------------------------------------------- def item_max if $game_party.members.size > 4 return NIO::SYSTEM[:beta_size] else return $game_party.member.sizeend endthis should work for the default menu system but not sure for XAIL
Post the link for the script please.
Here you go Shaz.

Xail Menu System - http://forums.rpgmakerweb.com/index.php?/topic/6418-xs-menu-delux/

Yanfly Party System - https://yanflychannel.wordpress.com/rmvxa/core-scripts/party-system/

Thanks nio kasgami! I'll give that a try.

EDIT : So I Tried that and I noticed there was a missing end, and also status was spelled statut.

Fixed those and it worked... sort of.

It worked to hide any party member over 4. So if I had 7 party members to choose from, and have 4 active and 3 not in the battle party, that's all good.

But I still have the issue of not active party members showing if my battle party size is smaller than 4. So if at the start of the game I have the party of 1 hero, but have 5 active in the party able to be added by the player via the party system, the rest still show up in the menu (up to the total of 4).

On top of that...

I also noticed there is an additional issue with scrolling through party members with page up/page down in any status screen. It cycles through all members, even those not in the battle party. :-/

I don't get why the default system lets you do this.... 
Nio's solution was for the RTP script. In that, you don't have the option of making your first 4 actors inactive. If they're in the first 4, they're active.


So (as Nio said) you would need to modify that for the script, if the script allows you to omit any of the first 4 from the battle lineup.
Nio's solution was for the RTP script. In that, you don't have the option of making your first 4 actors inactive. If they're in the first 4, they're active.

So (as Nio said) you would need to modify that for the script, if the script allows you to omit any of the first 4 from the battle lineup.
Ah I see. It did end up working for the Xail system as is, but I had the same issue of any less than 4.

So if I want to use the Yanfly party system, I need to edit the Menu system script to make only the current battle members show...

Or drop the Party system altogether, as I "could" use the base games "add/remove party member" calls in a less fancy way to let the player choose who they want with them.

Hmm....
actually I think they can have a way for this 

but I am not sure of this 

the possible way is to modify HOW the Enable index work exemple 

when they are enable they are visible 

if they are not then they are not accessible or visible.

Of what I think you will need to modify the Draw_actor_face and draw_actor_status in the script NOT in the core section or you will apply that to ALL your menu

def draw_actor_face(actor, x, y, enabled = true) if !enabled return else draw_face(actor.face_name, actor.face_index, x, y, enabled) endenddef draw_actor_simple_status(actor, x, y) if !enabled return else    draw_actor_name(actor, x, y)    draw_actor_level(actor, x, y + line_height * 1)    draw_actor_icons(actor, x, y + line_height * 2)    draw_actor_class(actor, x + 120, y)    draw_actor_hp(actor, x + 120, y + line_height * 1)    draw_actor_mp(actor, x + 120, y + line_height * 2)  endendbut this more for point to shaz the shorter and simpliest direction for doing that it's pretty late where I am and meh working on coding at 2h30AM is not what I planned to do xD
Apparently this issue was solved before, after some forum digging I found the answer in the form of the script found on this forum page.

http://forums.rpgmakerweb.com/index.php?/topic/25980-ace-yanfly-party-system-reserves-out-of-the-menu/

Thanks, feel free to lock this!

Original thread: https://forums.rpgmakerweb.com/threads/removing-unused-party-members-from-menu.37532/