Party Member selection

Discussion in 'RPG Maker MV' started by Killa215, Oct 11, 2016.

  1. Killa215

    Killa215 Villager Member

    Messages:
    7
    Likes Received:
    0
    First Language:
    English
    Hi! First post right here!


    I want to say "sorry" in advance as i am very new to this.


    So my question is this...


    I want to add a "give choice" dialogue box that allows you to select any of the actors currently in your party. I've scoured all the event commands and cannot seem to find anything of the sort. I am currently using a vanilla RMMV (a term which here means, no plugins whatsoever).


    Any help or direction is greatly appreciated!
     
    #1
  2. Dinamic Creates

    Dinamic Creates Project Stealth | Project Dungeon Trios Veteran

    Messages:
    69
    Likes Received:
    24
    Location:
    México
    First Language:
    Spanish
    Primarily Uses:
    RMMV
    Actually, there's a command that reads ''Show Choice'' in the first page of event commands, right?
     
    #2
  3. Waterguy

    Waterguy Veteran Veteran

    Messages:
    1,183
    Likes Received:
    254
    Location:
    Brazil
    First Language:
    Portuguese
    Primarily Uses:
    RMMV
    I think you'll have to make a normal "Show Choice" and write \p[1], \p[2], \p[3] and \p[4] and set a variable inside the choice to that party member's ID number.
     
    #3
  4. Killa215

    Killa215 Villager Member

    Messages:
    7
    Likes Received:
    0
    First Language:
    English
    Yes! Thank you, that worked...kind of. See the whole purpose for this is being able to walk up to an actor and ask them to join the party, which is simple enough. Where it gets tricky for me is when you've reached my max party size. At that point said actor will ask you if you want to switch out characters, thus the need for the choice list based on the chars currently in your party. Now i need to have the choice actually switch out that char for the actor being talked to. Alas the "Switch party member" event cmd only allows you to switch a specific member, not a member on that list. I'm not sure if I am explaining this correctly...


    Heres what i have so far...

    rmss.png

    rmss2.png
     
    #4
  5. Waterguy

    Waterguy Veteran Veteran

    Messages:
    1,183
    Likes Received:
    254
    Location:
    Brazil
    First Language:
    Portuguese
    Primarily Uses:
    RMMV
    Then you'll have to use conditional branches to check the value of the variable and remove the actor of the corresponding value. It may be a bit of work if you have too many, though.


    It may be easier with a script call, though. If you wanna try, try


    $gameParty.removeActor($gameVariables.value(n));


    with n the variable number. Didn't try, but I think it should vork
     
    #5
  6. Killa215

    Killa215 Villager Member

    Messages:
    7
    Likes Received:
    0
    First Language:
    English
    Excellent! Worked like a dream! Thanks so much!
     
    #6

Share This Page