I'm trying to make an event (more then one, but first this one) where I'm introducing the characters. She already met one person and that person pretty much asked her to wake everyone else up to get to class on time, so she decides to wake up her best friend. I wanted to make it where if you try to go to another room then she'll say "This isn't the right room.." and after you meet her you do the same with another person, I think I explained it right. I'm also sorry I know it's a dumb question but I don't know where to start with that, appreciate patience and any help I get!
Can't Leave Until Event Is Triggered
RPG Maker VXAce SupportThis is how I do it in my games :
I create a variable called"mainStory" (but name it as you want ^^)
Each time something important happend in the main story and I have a need for some events to change, I do mainStory = mainStory - 1
In an event, the condition to exist with a variable is >=variable.
Having a decreasing variable for the main story is really useful.
In your case, for each door, you just have to do :
If (mainStory) = -1 then // you set it to -1 after the little waking up event
"the door is closed"
else
the door work normally
When you wake up your best friend, set the variable to -2. This way, all the doors will be working/
If you want to wake up more than one character, just use :
If (mainStory) = -2
If (mainStory) = -3
...
I create a variable called"mainStory" (but name it as you want ^^)
Each time something important happend in the main story and I have a need for some events to change, I do mainStory = mainStory - 1
In an event, the condition to exist with a variable is >=variable.
Having a decreasing variable for the main story is really useful.
In your case, for each door, you just have to do :
If (mainStory) = -1 then // you set it to -1 after the little waking up event
"the door is closed"
else
the door work normally
When you wake up your best friend, set the variable to -2. This way, all the doors will be working/
If you want to wake up more than one character, just use :
If (mainStory) = -2
If (mainStory) = -3
...
Inblast's answer, though a good one, may be a bit complex for such a new user as I think you are. I strongly recommend that you have a look at Andar's excellent compilation of info for new users. As well as a lot of essential information, you will find links there to specific tutorials on using the Event Command Menu and Switches and Variables. Spending a bit of time going through Andar's post now will save you a huge amount of time and frustration in the future.
For your specific question, I think you want the friends to be collected in a particular order. So use Conditional branches.
Is Character 1 in the party?
If yes, then allow the door to open.
If no, then have the text saying it's the wrong room
Nest further conditionals inside that one, so that once Character 1 is in the party, the door will open if Character 2 is also present, and so on until all the friends have been collected.
For your specific question, I think you want the friends to be collected in a particular order. So use Conditional branches.
Is Character 1 in the party?
If yes, then allow the door to open.
If no, then have the text saying it's the wrong room
Nest further conditionals inside that one, so that once Character 1 is in the party, the door will open if Character 2 is also present, and so on until all the friends have been collected.
Original thread: https://forums.rpgmakerweb.com/threads/cant-leave-until-event-is-triggered.65832/