Get party and then open door

Discussion in 'RPG Maker VX Ace' started by SpunkySpaceCat, Jan 18, 2017.

  1. SpunkySpaceCat

    SpunkySpaceCat Villager Member

    Messages:
    9
    Likes Received:
    1
    First Language:
    English
    Me again with yet another problem. The title says it all. I know this uses a variable, and being the newb I am, I probably messed it up. I inserted another event page, yada yada. Did everything I could, and yet it doesn't work. Let me rephrase, I want to collect all the party members I need, and if I don't have them, the door won't open, but if I do, the door will open. Thanks for reading. I'm being stupid, and this is probably a simple solution, but I cannot figure it out. 
     
    #1
  2. Brigg

    Brigg Veteran Veteran

    Messages:
    129
    Likes Received:
    4
    Location:
    California, USA
    First Language:
    English
    There might be an easier way to do this, but I would create a Conditional Branch to check for each of your Actors.


    Don't forget to Add the 2nd Tab for your Control Self Switch: A.

    ActorInParty.jpg
     
    #2
  3. SpunkySpaceCat

    SpunkySpaceCat Villager Member

    Messages:
    9
    Likes Received:
    1
    First Language:
    English
    The thing is that I have 11 actors (yes a lot) and I don't want to go through that... But I shall try anyways :\ Thanks anyways 
     
    #3
  4. Brigg

    Brigg Veteran Veteran

    Messages:
    129
    Likes Received:
    4
    Location:
    California, USA
    First Language:
    English
    Ah. In that case, you're looking for the same thing I am. I'm trying to check multiple variables.


    I tested it in your case using:


    Conditional Branch: Script: $game_party.members.include?($game_actors[1..11])


    but it's not working. If I find it, I'll let you know.
     
    #4
  5. Andar

    Andar Veteran Veteran

    Messages:
    27,123
    Likes Received:
    5,953
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    whenever you add a party member, have that event count up a variable.


    At the door, check the variable and don't allow passing if the value is too low.
     
    #5
  6. LadyBaskerville

    LadyBaskerville Hell-poodle Veteran

    Messages:
    645
    Likes Received:
    467
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    If you only need to check if there are 11 actors in the party and not have to check who these actors are, you can also use a Conditional Branch with the Script:


    $game_party.members.length == 11
     
    #6
  7. SpunkySpaceCat

    SpunkySpaceCat Villager Member

    Messages:
    9
    Likes Received:
    1
    First Language:
    English
    @LadyBaskerville Thank you very much! I've been looking for this for a long time, and the answer has been right in front of me. My problem is now solved. Again, thanks. 
     
    #7
    LadyBaskerville likes this.

Share This Page