SpunkySpaceCat

Villager
Member
Joined
Jan 16, 2017
Messages
9
Reaction score
1
First Language
English
Primarily Uses
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. 
 

Brigg

Veteran
Veteran
Joined
Apr 22, 2015
Messages
129
Reaction score
4
First Language
English
Primarily Uses
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
 

SpunkySpaceCat

Villager
Member
Joined
Jan 16, 2017
Messages
9
Reaction score
1
First Language
English
Primarily Uses
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 
 

Brigg

Veteran
Veteran
Joined
Apr 22, 2015
Messages
129
Reaction score
4
First Language
English
Primarily Uses
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.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
32,128
Reaction score
8,002
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.
 

LadyBaskerville

Hell-poodle
Veteran
Joined
Sep 12, 2016
Messages
645
Reaction score
530
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
 

SpunkySpaceCat

Villager
Member
Joined
Jan 16, 2017
Messages
9
Reaction score
1
First Language
English
Primarily Uses
@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. 
 

Latest Threads

Latest Posts

Latest Profile Posts

Anyone here is familiar with the US Law ? I'm working on a game idea at the moment and I have several questions on my mind :p
I just lost an hour plus of time to trying to modify the _battlefield sprite... when in reality MZ calls it _battleField ;_;

Even when debugging for the "undefined value", it looked exactly the same to my 20/60 eyesight.

I really prefer this_naming_convention rather than thisNamingConvention !!
hmm... I just solved one of the more annoying sideview battler problems in MV.. Passive States and Visual States can make it so when your character is in crisis HP, they don't go back to normal walk/wait when it's their turn. they stay in the crisis motion... neat.
Apparently all of LGBT reddit hates me. I posted a simple question and only got hate mail. What's the deal? The doompost was literally 6 months ago and I've changed my views since then and apologized.
MOD NOTE: See second response before replying to this. - Wavelength
Amazing. Simply amazing...

Forum statistics

Threads
109,107
Messages
1,042,131
Members
141,593
Latest member
Padouch
Top