Streamlining Actor Removal

Hello all. So I am making a game where there are many, many recruitable characters but a limit on how many you can keep at any given time. I have a decent system worked out for actor removal but the common events are really starting to add up with my method. The way I currently remove a character is.

Each actor gets its own a "SKILL" called Remove (actors name here), there is a separate remove skill for each actor.

Skill calls a common event, 1 event for each actor. Common event asks if you want to send this actor back to its home location. If yes it sets switches to set actor back to its starting spot and removes the character. Variable is also adjusted so that system knows there is now an open spot in my party.

This works fine but feels a little clunky having to go into the persons skills to cast it. I use yanflys party plugin but it doesn't appear to have a straight remove actor action. And the common events, as I said, are really piling up. I was hoping I could have all remove calls go to the same common event but with skills it doesn't appear to be a doable option

So what I am wondering is if any kind souls here have a streamlined method they would share for actor removal. Or if anyone thinks this system should be just fine and I should stop worrying about my common event count. Thank you for taking the time to have a look at my post.
Hello all. So I am making a game where there are many, many recruitable characters but a limit on how many you can keep at any given time. I have a decent system worked out for actor removal but the common events are really starting to add up with my method. The way I currently remove a character is.

Each actor gets its own a "SKILL" called Remove (actors name here), there is a separate remove skill for each actor.

Skill calls a common event, 1 event for each actor. Common event asks if you want to send this actor back to its home location. If yes it sets switches to set actor back to its starting spot and removes the character. Variable is also adjusted so that system knows there is now an open spot in my party.

This works fine but feels a little clunky having to go into the persons skills to cast it. I use yanflys party plugin but it doesn't appear to have a straight remove actor action. And the common events, as I said, are really piling up. I was hoping I could have all remove calls go to the same common event but with skills it doesn't appear to be a doable option

So what I am wondering is if any kind souls here have a streamlined method they would share for actor removal. Or if anyone thinks this system should be just fine and I should stop worrying about my common event count. Thank you for taking the time to have a look at my post.
This is a complicated process indeed... Allow me to aid you the best I can, my friend.
It will take you awhile, but you CAN put all of that inside of a single common event and make the game run it itself instead of having to use a skill to remove the new characters.

When you recruit a character, create a variable named "Party Size," and add 1 to it each time an actor is added.
Create a parallel process(<-- To clarify, it's a parallel process, not auto-run. If you select auto run, you won't be able to move in-game) on each map that adds a character to the party, that continuously does "call common event (event name here)" and once it hits the limit, the common event will start. Have the common event start with a conditional branch.
Set it to "Variable >(max number of actors)"
Then another conditional, inside of that one, before "else" that is "If Actor 1 is present," another conditional if it IS present "If Acter 2 is present," etc. before it hits "else."
If he's not present(Actor 1, I mean,) put "If Actor 2 is present" under the "Else"
>Else (do not put it after branch end)
Actor 2 is present
List Actor 3, 4, etc. Skip #1, because it's already checked for that one, so you can simply skip it to save some time.
At the end of each conditional branch when it would hit the amount possible for your party combination, create a "Show Text" and make it say "Remove which character"
Create a "loop," and inside of that loop put "Show Choices" and list the names. When you're setting that up with character names, it will say "When Cancel," select "Branch." Hit "OK" and go to where it says "When cancel" and create another "Show choices" with the other names. Once you hit the end of the list of available characters, just leave it there, and the loop will take them back to the very first selection.
After each selection to remove the character, put "variable =(max actors for your party)" (so that when you recruit another character, it will push your variable over the limit and start your common event again) and directly after that, put a "Break Loop."

I'm sorry if my post is super confusing, but I tried my best to make it understandable, lol. I have to write it out because I'm not near my PC to create the common event to give screenshots.
Many thanks PhoenixX92 that looks like an excellent idea. I believe I already created the first part. I have it set up so when I recruit someone it adds 1 to the party size variable. and if I'm already at my limit it tells me there is currently no room and to remove someone if I want to recruit them. I also have it set to where the max size is upgradable. I also have it set in my home area of the game that if a character is not an active member they appear and walk around the home area. I believe this is also what you are saying to create.

So it would seem I can add the part starting at Create a "loop" in your tutorial to what I already have existing. See I had been thinking I have to make it so I can remove an actor at any time, but if I'm reading your set up right this would simply activate a handy remove list when the max group size is hit, and that would work just fine and definitely streamline things. Thank you so much I am going to go give this a shot.😀
Ok I have it set up but have a couple questions if I may. First with this method can I create a condition branch that will hide none party members? I believe its doable but haven't messed around with that yet. Currently list will show hundreds of recruitable characters.

My second question only applies if there is no way to hide the non party members. In testing I discovered when trying to remove someone not in the party it would still subtract the the party size variable so I could then add another actor without actually reducing the party size. Is there any way around that if it is an issue maybe another condition branch. I just want to be sure I have this right as it will be adding a mile worth of lines to each recruitable actor
Ok I have it set up but have a couple questions if I may. First with this method can I create a condition branch that will hide none party members? I believe its doable but haven't messed around with that yet. Currently list will show hundreds of recruitable characters.

My second question only applies if there is no way to hide the non party members. In testing I discovered when trying to remove someone not in the party it would still subtract the the party size variable so I could then add another actor without actually reducing the party size. Is there any way around that if it is an issue maybe another condition branch. I just want to be sure I have this right as it will be adding a mile worth of lines to each recruitable actor
Apologies. When I responded to you before, it was almost 1AM. I'll see what I can do for you.

Yes, you can set it up to hide the ones that aren't party members. Here you go, I've set up a common event for you that is doing exactly what you want. Change the variable to your max party number with a greater than sign.

Common Event Setup For Jeremiah .jpg


Now let's break this entire thing down for you. Do note that this reads from top left to bottom left, then up to the top right, to the bottom right. I broke it up like this to shrink my post.
In the yellow high-lighted area:

I've obtained actors 1-6, but I can only have a maximum of 5. So I make the list up to what the possible party combination at that point can be, so at "Actor 6" I've put "Show Choices"
Underneath #1, you will see a
"Change Party Member: Remove [Actor 1]" <--- To remove Actor 1 from the party since I chose him
"Control Variables: [0181: Party Size] = 5" <--- To put the variable back to 5 since my party has hit its max(which is 5) so when another is obtained, it will push me right over.
"Break Loop" <--- Stops looping 'show choices' when they hit cancel.

^ You will need to copy that underneath of every single choice, but replace "Actor 1" with "Actor X" with X representing the actor number.

----------------

Blue:
The list here is set up for if I have actors 1, 3, 4, 5, 6, and 7 to specify a list with only those; Actor 2 would not be in the party but Actor 1 still would, so it would go and check for 3.
Repeat the "Show choices" from the yellow area inside of this, but fix your party choices to their correct actor number.

--------------------

Pink/Purple:

This sits between "Conditional Branch: [Actor 1] is In the party"'s "Else" and "Branch end"
It represents if Actor 1 is not in the party, because the conditional branch for actor 1 will be a "No" and it will go down to its "Else" section to do something different since Actor 1 is not in the party. So your new conditional branch skips actor 1 and goes to Actors 2, 3, 4, 5, 6, and 7.
So your conditionals under there will be:
Conditional Branch: [Actor 2] is In the party
Conditional Branch: [Actor 3] is In the party
Conditional Branch: [Actor 4] is In the party
Conditional Branch: [Actor 5] is In the party
Conditional Branch: [Actor 6] is In the party
Conditional Branch: [Actor 7] is In the party

Set up your loop, show choices, and actor removal below Actor 7, and you're good to go. Just repeat this process for every single party combination you can think of. However, you don't have to do 2, 1, 5, 3, 4, 10 <--- Or any combination of them out of order, because if you keep doing it down a list If 1, Else 2, Else 3, Else 4, etc it will always make sure the lowest number party member is in order and check from there, creating a proper list for every actor you have. You only have to go to the least common denominator.
This set up here will show ONLY the party members who are active in your choices, so your second paragraph in the second post will not happen. It will never show an actor who you do not have in the party on a list.

-------------

If you have any trouble, just let me know. If the screenshot's too big to view properly, also let me know and I'll upload it in pieces.
Wow that is some set up there, thank you so much for taking the time to do all that. I never realized you could stack condition branches like that you really opened my eyes. Two more questions if I may and you have not lost patience with me.🙂 First off with this system I am thinking I should wait to put it together until I have all of my recruitable characters done so I don't have to add to the branches each time I make a new character, and being that there will be a good 200 recruitables. Because of that I would need to wait until my game is nearly finished to set up the removal system. Do you think it would be better to wait or will simple copy and pasting in not be to difficult when adding actors?

And second being that there will be some 200 recruitables, will that cause an issue with lag or anything when running as a parallel process with so many actors to be checking for? Or will it only run when the party size variable goes over? If it is in fact a problem creating such a large parallel then I can still use my old clunky skill system but you have taught me a great deal and no matter what I am extremely appreciative for that, Thank you so very much for all your help.
Wow that is some set up there, thank you so much for taking the time to do all that. I never realized you could stack condition branches like that you really opened my eyes. Two more questions if I may and you have not lost patience with me.🙂 First off with this system I am thinking I should wait to put it together until I have all of my recruitable characters done so I don't have to add to the branches each time I make a new character, and being that there will be a good 200 recruitables. Because of that I would need to wait until my game is nearly finished to set up the removal system. Do you think it would be better to wait or will simple copy and pasting in not be to difficult when adding actors?

And second being that there will be some 200 recruitables, will that cause an issue with lag or anything when running as a parallel process with so many actors to be checking for? Or will it only run when the party size variable goes over? If it is in fact a problem creating such a large parallel then I can still use my old clunky skill system but you have taught me a great deal and no matter what I am extremely appreciative for that, Thank you so very much for all your help.
I won't lose my patience. I'm more than happy to help you as much as you need.
I've never tried that many actors before, but the parallel process should have absolutely nothing in it besides "Call Common Event [Your common event here]". So yeah, it won't run the entire event unless you've hit the variable necessary to make it start checking for characters.

Now, as for lag... Reiterating here, I've never attempted using that many actors. However, it shouldn't lag much, if at all.

As for the question at the very end of your first paragraph:
With that many, I would wait until you're done creating the actors, because going back and forth could quite possibly make you lose your place and mess up the entire event.
I would also go ahead and create & name the common event, and only put its conditional branch in the event for your variable, and as you're creating the events that are adding the character, add the extra variable to save you some extra time of having to go back to each of those once you're done and add it. The events changing the variable and the parallel calling that common event won't be effected by the change, because all they're doing is changing a variable and calling an entirely different event.
You are a great teacher.🙂 You have been beyond helpful in this endeavor. I hadn't realized the parallels running would only be a call event. I can probably just add that to my day night monitor process in every map, that is a big relief, I had been worried that after all this I wouldn't be able to use it because of my recruitable count but it turns out this system is even better than first realized.

My game is currently almost to a solid core demo testing state. there will only be about 20 recruitables at this point so I believe I will set it up like you said but keep my old system intact for the time being. My final recruitable count will have to do with overall game size, as nearly every npc in my game will be recruitable. Therefore I will not be able to truly employ your system until the project is nearly done. So I guess I kind of jumped the gun with this system request but it makes me feel so much better about the final product. You help has truly been invaluable. I have learned quite a lot from you kind sir.🙂
You are a great teacher.🙂 You have been beyond helpful in this endeavor. I hadn't realized the parallels running would only be a call event. I can probably just add that to my day night monitor process in every map, that is a big relief, I had been worried that after all this I wouldn't be able to use it because of my recruitable count but it turns out this system is even better than first realized.

My game is currently almost to a solid core demo testing state. there will only be about 20 recruitables at this point so I believe I will set it up like you said but keep my old system intact for the time being. My final recruitable count will have to do with overall game size, as nearly every npc in my game will be recruitable. Therefore I will not be able to truly employ your system until the project is nearly done. So I guess I kind of jumped the gun with this system request but it makes me feel so much better about the final product. You help has truly been invaluable. I have learned quite a lot from you kind sir.🙂
Whatever you choose to do is entirely up to you, yours works just fine, I was just offering a clean, automatic version of yours.
When you release a demo, I wouldn't mind getting a link to see what it's like. That'd be cool 'n' stoofs. lol.
No I love how your version works, I am really looking forward to having it fully implemented. And as for my demo I would love to have you take a look, I had expected only to have my brother interested in checking the game out before its completed but I would be more than welcome to have others take a look, especially someone who is as helpful as you have been.
No I love how your version works, I am really looking forward to having it fully implemented. And as for my demo I would love to have you take a look, I had expected only to have my brother interested in checking the game out before its completed but I would be more than welcome to have others take a look, especially someone who is as helpful as you have been.
Yeah, that'd be awesome. Include the RTP data, though, since I'm not around my PC with MV very often, so that I can open it without Maker on my old, beat up laptop, lol.

Original thread: https://forums.rpgmakerweb.com/threads/streamlining-actor-removal.78250/