Removal of all party members results in a ghost?

So I was messing around in MV trying to do this central hub "base" for my game. I placed an actor as event in my map. Coincidentally, for each actor it looks like this.

◆Text:Actor1(0), Window, Bottom
: :Yo! What's up? I'm bored, you?
◆If:Harold 1* is in the party
◆Text:Actor1(0), Window, Bottom
: :I am already going with you. Unless you
: :have changed your mind?
◆Show Choices:Yes, No (Window, Right, #1, #2)
:When Yes
◆Change Party Member:Remove Harold 1*
◆Text:Actor1(0), Window, Bottom
: :Then I will stay here.
◆
:When No
◆Text:Actor1(0), Window, Bottom
: :Then I will keep travelling with you.
◆
:End
◆
:Else
◆Text:None, Window, Bottom
: :Do you want to travel with Harold 1*?
◆Show Choices:Yes, No (Window, Right, #1, #2)
:When Yes
◆Change Party Member:Add Harold 1*
◆Text:Actor1(0), Window, Bottom
: :Let's go!
◆
:When No
◆Text:Actor1(0), Window, Bottom
: :Then I will stay here.
◆
:End
◆
:End

Hilariously, you can actually remove all actors from the party resulting in you controlling an invisible "ghost" actor, you can fight monsters that are a battle processing on event touch but you get kicked out of the battle right away. You can do just about anything you want. Now this is probably not a big problem, but personally I would prefer to make sure that there is always at least one actor in the party.

So my question is what can I do to make sure that regardless of who the actor is a player cannot remove all of them? There's gotta be a way that doesn't involve installing a plugin.
The easy solution is don't make an event to remove each one. But I don't want to lock a player into always having to use Harold
for example. I currently have Harold, Therese, Marsha, Lucius as playable actors in my game. I want my players to be able to pick any one of those characters or all 4 if they desire. You know for those people who like challenges or prefer a certain character or want to try and grind with a single character.
Control Variables lets you put the party size into a variable. Just do that when talking to each NPC and if the variable is greater than 1, allow a member to be removed. If it's 1, don't allow member removal.

This is assuming you've set your starting party up correctly and haven't just deleted actors in the Actors tab, but have actually removed them from the Starting Party box in the System tab.
Control Variables lets you put the party size into a variable. Just do that when talking to each NPC and if the variable is greater than 1, allow a member to be removed. If it's 1, don't allow member removal.

This is assuming you've set your starting party up correctly and haven't just deleted actors in the Actors tab, but have actually removed them from the Starting Party box in the System tab.

I followed your recommendation Shaz, It's working good! But now I have to troubleshoot a method that will let me add a member back into the party. I removed all but one character but now my eventing since my party size is exactly one won't let me add them back yet... i'll fix it later on but I gotta go to work now.
Change it around so it only checks the condition when you want to remove someone, or so that it only lets you remove a member if there's more than 1. The condition shouldn't affect adding party members, unless there's also a maximum party size you want to enforce.
Change it around so it only checks the condition when you want to remove someone, or so that it only lets you remove a member if there's more than 1. The condition shouldn't affect adding party members, unless there's also a maximum party size you want to enforce.

This is what I got so far.


◆Text:Actor1(0), Window, Bottom
: :Yo! What's up? I'm bored, you?
◆Control Variables:#0049 Party Size Variable = Party Members
◆If:Party Size Variable > 1
◆If:Harold 1* is in the party
◆Text:Actor1(0), Window, Bottom
: :I am already going with you. Unless you
: :have changed your mind?
◆Show Choices:Yes, No (Window, Right, #1, #2)
:When Yes
◆Change Party Member:Remove Harold 1*
◆Text:Actor1(0), Window, Bottom
: :Then I will stay here.
◆
:When No
◆Text:Actor1(0), Window, Bottom
: :Then I will keep travelling with you.
◆
:End
◆
:Else
◆Text:None, Window, Bottom
: :Do you want to travel with Harold 1*?
◆Show Choices:Yes, No (Window, Right, #1, #2)
:When Yes
◆Change Party Member:Add Harold 1*
◆Text:Actor1(0), Window, Bottom
: :Let's go!
◆
:When No
◆Text:Actor1(0), Window, Bottom
: :Then I will stay here.
◆
:End
◆
:End
◆
:Else
◆Text:Actor1(0), Window, Bottom
: :Harold 1* is your last party member, you
: :CANNOT go it alone, even with a sword and
: :shield it is too dangerous!
◆
:End
@TehChad1988 This appears to be the same question as you have in this thread. Please do not have more than one thread for each question.

Which is the "active" thread now?
@TehChad1988 This appears to be the same question as you have in this thread. Please do not have more than one thread for each question.

Which is the "active" thread now?
It was not the intention to duplicate threads. The first thread was more hub oriented and this one just kind of became where the discussion went. I would say this would be the "active" thread you can delete or close the other one whatever is appropriate. I am sorry for the double post.
@TehChad1988 I have closed the other thread, but provided a link to this one if anyone is interested.
Well I did more eventing... my end result is this and now I can't remove the actors.


◆Text:SF_Actor3(7), Window, Bottom
: :You should study more dum-dum!
◆Control Variables:#0049 Party Size Variable = Party Members
◆If:Abyngale 1* is in the party
◆If:Party Size Variable > 1
◆If:Party Size Variable = 1
◆Text:SF_Actor3(7), Window, Bottom
: :Since you have exactly 1 party member
: :you may add Marsha 1*. Would you like
: :to add Marsha 1*?
◆Show Choices:Yes, No (Window, Right, #1, #2)
:When Yes
◆Change Party Member:Add Abyngale 1*
◆
:When No
◆Text:SF_Actor3(7), Window, Bottom
: :Ok you don't need to add Abyngale 1*.
◆
:End
◆
:End
◆
:Else
◆Text:SF_Actor3(7), Window, Bottom
: :Since you have more than 1 party member
: :you may remove Abyngale 1*. Would you like
: :to remove Abyngale 1*?
◆Show Choices:Yes, No (Window, Right, #1, #2)
:When Yes
◆Change Party Member:Remove Abyngale 1*
◆
:When No
◆Text:SF_Actor3(7), Window, Bottom
: :Abyngale 1* will remain in the party.
◆
:End
◆
:End
◆
:Else
◆Text:Actor3(7), Window, Bottom
: :Abyngale 1* is not in the party do you
: :want to add her?
◆Show Choices:Yes, No (Window, Right, #1, #2)
:When Yes
◆Change Party Member:Add Abyngale 1*
◆
:When No
◆Text:SF_Actor3(7), Window, Bottom
: :Ok you don't need to add Abyngale 1*.
◆
:End
◆
:End
Honestly, for a lot less cluster, you might be able to add this plugin to your game.

HimeWorks Party Switching Scene

You can put every single actor you're not currently using in the "reserve party".
Honestly, for a lot less cluster, you might be able to add this plugin to your game.

HimeWorks Party Switching Scene

You can put every single actor you're not currently using in the "reserve party".

I might try that later on. As long as there is no way for the player to control the "ghost actor" i will do that.
I might try that later on. As long as there is no way for the player to control the "ghost actor" i will do that.
The plugin is not working effectively. As is always the case with plugins you need others in order for it to function... I'll just event it out through trial and error.
◆If:Party Size Variable > 1
◆If:Party Size Variable = 1

This is why it's not working. If party size is greater than 1, then party size cannot be equal to 1.

I think you are getting confused where your tests should be. I suggest you write it out as a flowchart and work your way through each path and see if your logic is correct. You have to have the logic correct before you start developing it.
This thread can be closed.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/removal-of-all-party-members-results-in-a-ghost.97369/