Preventing player for advancing the map without a certain party member?

Hi! I am currently having difficulty creating a script that prevents the player from advancing the map without a certain party member.

70098-df7a1501f06954e616831688ba60cd01.jpg


this is my current script. If the actor is by themselves in the party then that dialogue will appear and will keep on appearing if they keep running into it, and if the certain actor is in the party, then the dialogue won't appear

I appreciate any help^^
Close. Assuming Capricorn is the girl you want added:

If Capricorn is in the party:
Do nothing
Else
Show the text you have there.

What you have now will run both events once you add her.

Also you will need to edit what I posted if it is ever possible to not have her in the party later in your game, but you can do that by having it check your plot control variable and seeing where you are in the plot (you ARE using a plot control variable right? If not, best start now, it makes life so much easier.)
Thank you! But a weird thing happens where the player just walks through the event and nothing happens12.png
What's page 2? Also you no longer need the if Cancer in the party line, as that is covered in the else clause of the other one.
Page 2 is where the control self switch A is activated in conditions
Please post it though, if the rest of the page isn't set up right, it will cause the very error you describe.
13.png
mk
Is the player set to 'through' and you forgot to turn it off? That's the only way it could walk through the event.

Make a quick test event, set a move route for the player and turn through OFF. Then see if you can still walk through this event.
err this is weird. So if I touch the event block without the actor capricorn in my party, the dialogue isn't appearing like I want to, and if I bring capricorn into my party, then touch the event block, it gives me this error14.png

also i have no idea what you mean by if i made my avatar set through
You have to delete your script call in page 1:
"Do nothing"
"Else"
That's why you get your error code.
Those things you shouldn't do via script call, but via the event comands. The conditional branch, which checks if Capricorn is in the party, should have else branch. In the Else you set the message, that promp the player to go and pick her. If she is in the party, then you activate the self switch. No script calls needed, and script calls requare minimum javascript knowledge, if you are writing it on your own. Also, you should force the player to make step back (via move route), otherwise he can just keep waking ahead, once he read the message.
Edit: Here, I set example event:
Spoiler: Click to see the picture
They are right, don't use a script call, the conditional branch can add an else for you just fine. Use that. And there is no such script call for do nothing, you just leave it blank for that.
oh wow thank you so much it works now 🙂

Original thread: https://forums.rpgmakerweb.com/threads/preventing-player-for-advancing-the-map-without-a-certain-party-member.96210/