Ah ok, yeah capturing multiples is kind of key to what im planning. There's 2 issues i've come across, one being that i cant apply XP direct to actor and the other being i cant then apply events to captured actors (example being when captured actor is level X then do Y.
Here's an example function of how to find all of the party members that have a base actor id (the id of the actor they are copied from):
searchBaseId = function () {
// id you're searching for
var baseId = 7;
// array of party members that have this base actor id
var partyMembers = $gameParty.members().filter(function (member) {
return parseInt(member.baseActorId()) === parseInt(baseId);
});
};
From there you can start doing things like assigning ids to variables.
Example:
searchBaseId = function () {
// id you're searching for
var baseId = 7;
// array of party members that have this base actor id
var partyMembers = $gameParty.members().filter(function (member) {
return parseInt(member.baseActorId()) === parseInt(baseId);
});
// check if we found any actor first
if (partyMembers[0]) {
// set the id of the first actor from the array to variable 5
$gameVariables.setValue(5, partyMembers[0].actorId());
}
// check if there is a second actor we found
if (partyMembers[1]) {
// set the id of the second actor from the array to variable 6
$gameVariables.setValue(6, partyMembers[1].actorId());
}
};
You can use this function if you put it into a plugin file and call it with a script call, like
searchBaseId()
If you need additional assistance you can ask here or the javascript help section on the forum. If you have the id of the actor in a variable you can use normal event commands with them. Just use that variable.