FIXED
Passing Requirement
RPG Maker VXAce SupportI've moved this thread to Ace Support. Please be sure to post your threads in the correct forum next time. Thank you.
You'll want to use Conditional Branches to check for the party members. You can either increase a variable by 1 every time a party member is added, and then have the Conditional Branch check to see if that variable is equal to 3. Or you could use Conditional Branches to check and see if each Actor is in the party (2nd page of Conditional Branch options). I think this would be more complicated than using a variable however.
You'll want to use Conditional Branches to check for the party members. You can either increase a variable by 1 every time a party member is added, and then have the Conditional Branch check to see if that variable is equal to 3. Or you could use Conditional Branches to check and see if each Actor is in the party (2nd page of Conditional Branch options). I think this would be more complicated than using a variable however.
While I don't think you posted this question in the right spot (one of the mods may swing by to let you know) The answer to your question depends on wether you are looking to have 3 specific people in the party or just 3 people in the party.
If it's just 3 people the easiest is to put an event on the exit that won't let you leave unless a chosen variable is 3 or above. I'd probably also add a message to let the player know why they aren't allowed to leave. and then everytime a person is added to the party make the event that is adding people to the party increase that same chosen variable by 1. So once 3 people have joined the variable will be at 3 and the exit will let the player out.
If it's specific people create a branch on the exit event that will only let them out if they have those specific people in the party. There is an option to only do something if a specific person in the group. Later on today (if someone doesn't beat me to it while I'm at work) I can take some screen shots to show you the set up the events in both instances.
If it's just 3 people the easiest is to put an event on the exit that won't let you leave unless a chosen variable is 3 or above. I'd probably also add a message to let the player know why they aren't allowed to leave. and then everytime a person is added to the party make the event that is adding people to the party increase that same chosen variable by 1. So once 3 people have joined the variable will be at 3 and the exit will let the player out.
If it's specific people create a branch on the exit event that will only let them out if they have those specific people in the party. There is an option to only do something if a specific person in the group. Later on today (if someone doesn't beat me to it while I'm at work) I can take some screen shots to show you the set up the events in both instances.
simpler way, under the condition that you don' use a party script:
Use control variable to load the ID of the third party member.
Then use a conditional branch to check if that number is greater than zero.
If the slot is empty, it returns zero - if there is an actor, it returns the ID of that actor.
And since the engine fills up from position one, if you get an actor in slot three then you have three party members (or more)
Use control variable to load the ID of the third party member.
Then use a conditional branch to check if that number is greater than zero.
If the slot is empty, it returns zero - if there is an actor, it returns the ID of that actor.
And since the engine fills up from position one, if you get an actor in slot three then you have three party members (or more)
Hello,
i don't know why but i did after every party member join add virable and then i did the Conditional Branch
and it didn't worked..
Post screenshots of your event pages so we can see what you did wrong.
I can't figure out what's wrong by that alone, can you also show the event pages for when the party members join? (Where you put the add variable)
Yes just a second
I meant like the event page controlling the event where your party members join. Like the first screenshot you posted, except it's the scenes where those two party members join, so I can see where you added that variable.
Either way, what I'm thinking is you need to replay your game from the beginning, did you add the variables to the scenes where they joined and loaded your existing file? That won't work because when you played through the game, those variables weren't added up at the time. This is just a guess though. Try playing your game from the beginning in a totally new file and then see if it works.
Either way, what I'm thinking is you need to replay your game from the beginning, did you add the variables to the scenes where they joined and loaded your existing file? That won't work because when you played through the game, those variables weren't added up at the time. This is just a guess though. Try playing your game from the beginning in a totally new file and then see if it works.
still not works..
Just so you know, you're not supposed to double post here, edit your previous post next time.
I just made a dummy version of what you're trying to do in my own game and it worked fine. Here's what I did, try to copy what I did.
First, this is the event where the first party member joins you. Of course, yours won't be very simple like this, I just made it really quick. Just make sure you have that Control Variable +=1 there.
Here's the second party member joining. At this point, the variable should now be two.
And here is the event that prevents you from moving on if you don't have the two party members but will let you go if the variable is exactly two.
Make sure the conditional branch is set up like this.^
If this doesn't work, you need to give more information.
I just made a dummy version of what you're trying to do in my own game and it worked fine. Here's what I did, try to copy what I did.
First, this is the event where the first party member joins you. Of course, yours won't be very simple like this, I just made it really quick. Just make sure you have that Control Variable +=1 there.
Here's the second party member joining. At this point, the variable should now be two.
And here is the event that prevents you from moving on if you don't have the two party members but will let you go if the variable is exactly two.
Make sure the conditional branch is set up like this.^
If this doesn't work, you need to give more information.
I did exactly like you.. stil doesn't works..
@mars2004 please do not quote entire posts for your answer, especially not if they contain a lot of pictures - that makes a topic difficult to read. Use the @username convention instead, like I did just now (or you don't even need that for simple answers to a post directly above, only for pointing out something directly.
That said, I have three suggestions:
1) place a show text with the textcode showing the variable before the conditional branch to see what number really is in there at the moment.
2) make sure that nothing else (especially not plugins) change the same variable
3) don't make the conditional branch check for equal, that can fail for a lot of reasons (for example if the number is only 1)
Make it a comparison "less than three" instead.
That said, I have three suggestions:
1) place a show text with the textcode showing the variable before the conditional branch to see what number really is in there at the moment.
2) make sure that nothing else (especially not plugins) change the same variable
3) don't make the conditional branch check for equal, that can fail for a lot of reasons (for example if the number is only 1)
Make it a comparison "less than three" instead.
How do i do textcode shows how many there are in the variable?
would you like a video?
@mars2004
Please do not edit your original topics!!!!!!!!
You deleting all content from your original post made this topic absolutely useless and unreadable for anyone else.
Please do not do that again in the future - we want to keep the completed topics so that they can be searched by others and help them as well.
Closing, as there is no point in this topic anymore
Please do not edit your original topics!!!!!!!!
You deleting all content from your original post made this topic absolutely useless and unreadable for anyone else.
Please do not do that again in the future - we want to keep the completed topics so that they can be searched by others and help them as well.
Closing, as there is no point in this topic anymore
Original thread: https://forums.rpgmakerweb.com/threads/passing-requirement.73669/

