Party member in vault

So basically i am making a member vault, where you can store your members and get them back whenever you want.
So my question is, how can i specify to the game to store for example, the 3rd party member in queue whoever it may be....
For example if my current 3rd member is terence and set it to store terence's actor id in vault, whenever my 3rd member is different it will store wrong actor id.....So yea, my question is how can i store the "moment's" chosen member in vault?


EDIT: A Better solution would be, if anyone would tell me where can i find a script for a party vault.....
Isn't there a Control Variables > Game Data > Party > Member 1's > ID?
I am not sure I understood what you are looking for but if you want to store your party member number X in a variable what Shaz said is the way to do it. If you need the whole actor object (and I don't think you do) you can use:
Code:
$game_variables[N] = $game_party.members[X]

Just change N to be your variable id and X to be your party member spot (while the 1st party member is number 0).
Yea but what i want is, when you leave that member on the vault, when you will come back and get it to be the member you left before...how can i do this? I am using the following command to remove the selected person: $game_party.remove_actor($game_party.members[N].id)

When N is the number of the party member.....so when i remove him like that, i am not be able to store this specific character's id to get it back later....because if for example remove 3 [4th character] and then write the command $game_party.add_actor($game_party.members[3].id) it will not do anything because it doesnt make sense for the reason that game doesnt know who " 3" is....
I am using the following command to remove the selected person: $game_party.remove_actor($game_party.members[N].id)

When N is the number of the party member.....so when i remove him like that, i am not be able to store this specific character's id to get it back later....

Of course you won't. You didn't use the method Shaz suggested to store your character id in a variable neither mine. If you don't save your character id in the vault there is no way you can get it back later. Store it somewhere and then use that one to get it back.

$game_party.add_actor($game_party.members[3].id) it will not do anything

With this line you are basically telling the game to add a new character to your party. The problem is that when you pass the argument to add_actor you tell it to add the actor which occupies the 4th position in the party. If there is an actor then it won't do a thing because that actor is already an active party member, if there is no actor then it won't do as well because it just adds no new actor at all.

What you want to do is something like this:
Code:
# This line stores your actor id in a variable
$game_variables[X] = $game_party.members[N].id

# Use this line to remove actors
$game_party.remove_actor($game_variables[X])

# Use this line to add your actor back
$game_party.add_actor($game_variables[X])

You can use the same method to store more than one party member using different variables.
What you want to do is something like this:
Code:
# This line stores your actor id in a variable
$game_variables[X] = $game_party.members[N].id

# Use this line to remove actors
$game_party.remove_actor($game_variables[X])

# Use this line to add your actor back
$game_party.add_actor($game_variables[X])

You can use the same method to store more than one party member using different variables.



Yea eventually i figured that out by myself.....thanks for the help anyway. i apriciate that 🙂


EDIT: Anyways because i have problems with the adding members variables and the event is very big and confusing can you pls send me a link for a script for a party vault if you can?
PLS anyone
I am sorry, I don't know of any script that would do something like that. Anyway you should be able to handle it that way. With what exacty are you still having problems?
I will send you a project tomorow probably that contains the event i am trying to make.It is very big and i have come to a solution but it still have a few bugs that i have to fix....ill send it to you tomorow to check it out
Here's the link. Check it out:

http://www.mediafire.com/file/972bqt8qyne28t8/Member_vault.rar


EDIT: The problem i have encountered until now is

when you have 3 members in your party and removing the 2,
and then choose to take back only the 2nd you left, then when you leave either 1st or 2nd member again, the 2nd you will chose to get back is not beeing added, but the first you will chose is added.....(notice if you chose to get first the 1st, you will get it, but you will not get the 2nd)
Pls can you help me to make an event like that? it is very confusing and frustrating.....it takes me hours
Hello there. I am willing to help you but unfortunatly I am often from mobile so I can't download your project. Could you explain what you want to achieve with EVERY possible detail?

That way I can think of a way to do it without having to look at your event. It can speed up things quite a lot.
Can you check my event when you can pls? Also, what i want to achieve is, to make a party vault event where you can store your members in it and take them back whenever you want. Pls note that the less party members you will be able to have in the party is 1, so you will be able to store your members until you have only 1 member 1 party.


Also, one more thing that i want is, when you have a full party (with 4 members) and you meet a fifth, i want the fifth one you meet to be stored in the party vault. But if your party isn't full, for instance if you have 4 members and store 1 in the vault the next one can join because you have 3 members in party.
If you want to have someone check your event, please just post a screenshot of it - the full event page, don't crop, and use the Alt+ PrtSc so that it is only the event which is included, not your whole desktop. You are much more likely to get a response from that rather than expecting people to download a whole project, open it up and look at the event.

Original thread: https://forums.rpgmakerweb.com/threads/party-member-in-vault.79027/