Hiding Reserve Party Members

Discussion in 'RPG Maker MV' started by Kisakii, Jul 20, 2017.

  1. Kisakii

    Kisakii Villager Member

    Messages:
    5
    Likes Received:
    0
    First Language:
    spanish, europe
    Hello!

    I am creating a project with several actors, and the player may choose what he wants when he go to the tavern npc.

    I'm using the Yanfly plugin PartySystem, and going very well. But if you chooses 3 actors I don't want that the fourth reserve party member appears in semi-transparent, I want that disappears completly from the menu.
    I want that reserve actors dont appear anywhere (only in the tavern npc menu).

    I found this post 2016: https://forums.rpgmakerweb.com/index.php?threads/hiding-reserve-party-members.69479/

    I have used the code given by Shanz, but dont works for me.
    I need help please.

    PD: console.log($gameParty.maxBattleMembers());
    [​IMG]
     
    #1
  2. Arisa

    Arisa probably dead Veteran

    Messages:
    490
    Likes Received:
    1,749
    Location:
    Florida
    First Language:
    English/Spanish
    Primarily Uses:
    RMVXA
    If I'm understanding correctly, all you need to do is remove the actor from the party via eventing and add them back in when you're ready.
     
    #2
  3. Andar

    Andar Veteran Veteran

    Messages:
    28,116
    Likes Received:
    6,369
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    Yanfly's code assumes that all actors are travelling with the party.
    If you want one actor to stay at a tavern, then it isn't in the party and should be removed from the party as the poster above said.

    what you need to do when you gain the ability to add a new actor to the party is to not add them, but to enable them for the tavern map instead.
    There are several ways how a tavern map can then handle that.
     
    #3
  4. Kisakii

    Kisakii Villager Member

    Messages:
    5
    Likes Received:
    0
    First Language:
    spanish, europe
    Tell me one.

    I like the menu for party that Yanfly plugin gives me , I take away the Formation option in Esc Menu (that only appears in tavern with plugin command "OpenPartyMenu").

    With date base I disactivate the xp gain from reserve members. Only needs that if u kick the 4th or 3th member, they dont appears in Esc menu...
     
    #4
  5. Andar

    Andar Veteran Veteran

    Messages:
    28,116
    Likes Received:
    6,369
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    You'll have a map of the tavern, with one event for every possible party member.
    Each of these events have at least three event pages for the three possible options of each member: unknown, in party and in tavern.
    You might make more pages to enable different "conversations" with that actor.

    The event condition "actor exists" means that the actor is in the party - which means that this page does not have a sprite and no content, the actor is not in the tavern if he is in the party.
    "in tavern" is the page that displays the sprite, and if activated asks the player if he wants that actor to join - if yes the change member command is used to add that actor to the party.

    And somewhere in the tavern you have a registry where you can rent a room for party members (which will remove them from the party by change member command)
     
    #5
  6. Kisakii

    Kisakii Villager Member

    Messages:
    5
    Likes Received:
    0
    First Language:
    spanish, europe
    Then no way to hide reserve party members from menu? the only solution is kick (really) them from party?
    In that case I cant benefict from Yanflys plugin for party management, cause dont have reserve members...
     
    #6
  7. ramza

    ramza Lunatic Coder Veteran

    Messages:
    516
    Likes Received:
    285
    Location:
    Nova Scotia, Canada
    First Language:
    English
    Primarily Uses:
    RMMV
    You can call Yanfly's formation menu using a plugin command, and remove it from the menu entirely, instead. Then you can call it from the tavern, when your reserve dudes are present, but the player will never see them not in the party elsewhere.

    Using the plugin command OpenPartyMenu

    I'm not sure what the benefit of the party menu is in the first place, if you don't want reserve members to show up in it outside of the tavern, there isn't really any reason to open it at all if reserve members aren't present in it.
     
    #7
  8. Kisakii

    Kisakii Villager Member

    Messages:
    5
    Likes Received:
    0
    First Language:
    spanish, europe
    I was using that. But dont resolve my "problem".
    I have this menu with "formation" option removed:
    [​IMG]

    Then I speak with "tavern man", and this event open Yunfly Party System menu:
    [​IMG]

    Then I remove an actor:
    [​IMG]

    And after that the Menu looks like this. With 3 actors appearing in the map (thats right), and the removed appearing in bot:
    [​IMG]

    I'm looking a result like that:
    [​IMG]

    And if I kick the reserve party members from party (with standard event), they dont appears in guy tavern menu. And I need it:
    [​IMG]
    [​IMG]
     
    Last edited: Jul 21, 2017
    #8
  9. Andar

    Andar Veteran Veteran

    Messages:
    28,116
    Likes Received:
    6,369
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    You misinterpreted the basic definitions.

    A "Party" is that what travels with the player/main actors. If you do not want someone to travel with (and be accessable for) the player, then that actor must not be in the party. And reserve members are still party members, they just don't participate in battle.

    And yanfly's Plugin is a "Party Manager", it will not handle actors that are outside the party - and as long as someone is with the party, that actor will be accessable from the menues.

    You have to remove an actor from the party to remove that actor from the status menu, and as soon as you remove someone from the party then that someone is also removed from yanfly's party menu, exactly because it is a party manager and not a tavern manager.

    You can either use a tavern map and events to handle that, or you can request a new plugin "tavern manager" (because I don't know of an existing plugin that does this).
    You cannot use the "party manager" as an replacement for a "tavern manager", because the basic concepts are different.
     
    #9
  10. ramza

    ramza Lunatic Coder Veteran

    Messages:
    516
    Likes Received:
    285
    Location:
    Nova Scotia, Canada
    First Language:
    English
    Primarily Uses:
    RMMV
    Basically you'd remove any reserve members from the party entirely if they're not in the current battle party, and then add all members back to the party before opening the tavern menu.

    $gameParty.battleMembers() shows a list of all members in your battle party. Find a way to check that against $game.Party.members() which contains ALL party members (including reserves) and removes them from the party if they're not in the battle party.
     
    #10

Share This Page