Really need help with SRDActorSelect and add and remove actor script.

Why does such a small game of one map so large a project?
it's the audio folder. You can leave that out if you like (and the img folder too, if it's big). As long as you haven't added your own resources, I can just copy the default ones over.
Okay I've got the project with both yours and mine events attached to the first map. https://www.dropbox.com/s/n6phtmy9aovmtmz/markproject1.7z?dl=0
So I've found the issue, but fixing it reveals another issue.

The actor select plugin only lets you select from the current party members, not from all actors set up in the database.

The first time you run the fixed version, it removes everyone but the selected actor. So the second time you run it, only the selected actor is available. You would have to put all the actors back into the party, in order to be available to select, but by then if you say NO to Change, you don't know who was originally there.

Also, you have all party members in the starting party, and you haven't initialized any of them as I said you should do - there IS an autorun event there, but there are no commands in it. I'm not actually sure how I'm even able to play without the game freezing.

I also think your Text command that says "The actor is \n[\v[2]]" should come after the plugin call and not before it, as I assume you want to let the player choose the actor, then show their name and ask if they want to change. The way it is, it shows the message with no name, as the variable hasn't been set, then asks you to select one from the list, then goes straight to the choice box without showing the name again.

So can you clarify what is meant to happen?
Is there only meant to be ONE person in the party, throughout the entire game?
When you touch the crystal, should you be able to select ANY actor who is in the Actors tab in the database?
If you say CHANGE, should it remove ALL actors in the party and add back ONLY the selected actor?
If you say DON'T change, should it just leave you with the actor who was in the party before you touched the crystal?

Is this something that is meant to happen only once at the start of the game? Is this your way of implementing a character select screen? Or can the player come back to this point (or other similar points) during the game and change the party members?
What I'm trying to achieve is out of a choice of any four actors/characters, the 'player'can pick one out of the four that they like to be the main actor. I know it's possible, how it's done is beyond me. The sort of points in that direction. It happens only once at the start of the game. Once you've picked who you like, that's the main actor. I just thought it would give people a option to choose. The other three are not chosen. I will add the custom sprites myself, once I get an idea of how a character select screen can be made. I did succeed in getting one character to change.
Normally people do this through a Show Choices - Actor1, Actor2, Actor3, Actor4. Or by having NPCs with the possible actors and you can talk to each one to choose who to go with.

You also don't need to set them all up as actors with those methods - you just have one actor, and depending on the choice, you use the Change Actor Sprites/Graphics, Change Actor Name and Change Actor Class to set your one-and-only actor to the person they choose.

However, if you want to use that plugin and provide a menu AND it's only going to happen once throughout the entire game, try this ... note you should probably also have some way to handle if they press Escape to cancel out of that window (like, wrap the Text and Choices in a conditional branch that checks for the variable being > 0, and put the transfer away from that scene in the When CHOOSE branch, so it will loop until they make a choice)
Thanks.I will give this a try and let you know how I go.
Entered all the scripts so far got this error.
gameParty is not defined

Should I put this into the event somewhere?
$gameActors.actor().currentClass().name
You have made a typo when entering the script calls. You've put gameParty instead of $gameParty. Make sure you have EXACTLY what I have.
Okay fixed that one.
Cannot read property 'setup''of null
Have you made any changes to your Actors tab or your System tab since you sent me the demo? What actor did you choose?

If you haven't made any changes, can you please post a new screenshot of your event?
Fixed. Just have to figure out this bit.

However, if you want to use that plugin and provide a menu AND it's only going to happen once throughout the entire game, try this ... note you should probably also have some way to handle if they press Escape to cancel out of that window (like, wrap the Text and Choices in a conditional branch that checks for the variable being > 0, and put the transfer away from that scene in the When CHOOSE branch, so it will loop until they make a choice)
Alright, so ... after the call to the plugin, add a Conditional Branch. Make the condition Variable 2 > 0. Don't include an Else branch. Now select all the other commands that were originally below the plugin call, cut them, and paste them into the inside block of that conditional branch.

So you'll have something like this:
Code:
Script: this._savedActors ...
Plugin Command: OpenActorSelect 2
If Variable 2 > 0
  Text: ... The Actor is ...
  Show Choices:
  When Change
    ...
  When No
    Script: $gameParty._actors ...
  End
End
Could you tell if I have this right or not?
It looks okay to me, but you can tell if it's working or not by hitting Escape when the menu comes up. If it's working, it should leave you on the map with no changes made.

Also, as I said, after the Change stuff is done, you should teleport away to the "real" starting map, because that's the end of the character selection and you don't want to do it again.

In fact, if this is the first thing the player needs to do, and they MUST do it, why do you have it on an object they need to interact with? Why not just make it an autorun event?
Okay. But I can't change the character. Before adding the Variable I was able to select any of the four which is great.
Have you made any changes to your Actors tab or your System tab since you sent me the demo? What actor did you choose?

When you test play and choose New Game, do all 4 actors show up when you interact with the crystal? Do you have all 4 in your starting party, as you did in the demo?

What do you mean "before adding the variable"?

Did you choose one, then try to choose another one? If so, as I said before, once you choose one it changes your party to that one, then if you try to interact with the crystal again, only that one will be there. Did you add the transfer away from this map after the actor has been selected?

I don't know what to say - it's working for me. Maybe zip up just your Data file and send it to me and I'll see what's going on.
Here is the data file. Maybe you can shed light on what is going on. Thanks.

Been working on the player transfer. None of it works.
Alright ... can you see what you've done wrong here?

In case you don't see it, you have used variable 2 in the plugin call, the text box and the script call, but you've used variable 1 in the conditional branch. You need to use the same variable id. The name has nothing to do with it.

It's unfortunate that when you save the conditional branch event, it only puts the variable name and not the id. Otherwise I might have picked that issue up sooner.

Original thread: https://forums.rpgmakerweb.com/threads/really-need-help-with-srdactorselect-and-add-and-remove-actor-script.116958/