Removing a party member.

So I'm using this plugin: which is also attached to this post.
Basically it summons another party member into the battle based on the variables you give it. The problem being is that I'm trying to make a skill to manually unsummon this party member, but I'm having troubles. See I thought I could just go to the event screen and use "remove party member" but it doesn't work. This makes sense because the script is actually just creating a clone of the chosen actor....I think. Now my problem is, I don't know where it's storing this information so I don't know how to remove said party member. Any help would be greatly appreciated.
Hi !

Have you tried to deal with the following script line ?
JavaScript:
$gameParty.removeActor(ActorID)
Hi !

Have you tried to deal with the following script line ?
JavaScript:
$gameParty.removeActor(ActorID)
Thanks, but unfortunately this doesn't work. The plugin I think is only cloning an actor, it doesn't actually replace the actor ID. I'm not sure where it's storing the value, so I don't know how to remove it. I'm no good at all at programming lol
So I went ahead and used

var n = 2;
while (n < 10000) {
$gameParty.removeActor(n);
n++;
}

To remove any actors that would be in the scene, and it successfully removed my party minus the summon. So this let's me know that the summon's value isn't stored as an actor, and I'm too dumb to read the code enough to see where it's actually stored so I could figure out how to remove it from my party.
So I'm using the Summon Actor Plugin by SumRndmDde. It summons another party member into the battle based on the variables you give it. I'm trying to make a skill to manually unsummon this party member
Summons are "bound" to the actor soo.... it's like this:
Code:
$gameParty.removeSummon($gameParty.members()[0]._summons[0])
Replace 0 with actor & summon, index starts at 0
So 0 is party leader and first summon of party leader 😉

There is also this too though:
Code:
$gameParty.removeAllSummons()
...Which will remove all the summons.
Summons are "bound" to the actor soo.... it's like this:
Code:
$gameParty.removeSummon($gameParty.members()[0]._summons[0])
Replace 0 with actor & summon, index starts at 0
So 0 is party leader and first summon of party leader 😉

There is also this too though:
Code:
$gameParty.removeAllSummons()
...Which will remove all the summons.
Omg I love you thanks so much XD
Omg I love you thanks so much XD
No prob. Glad to help out 😎

Happy Game Making! :popcorn: ☺️ 👍
No prob. Glad to help out 😎

Happy Game Making! :popcorn: ☺️ 👍
Hey sorry to bother! One last thing, since you checked out the plugin I thought you might know. How exactly could I set a boolean if there is a summon out or not? For example, I'd like to give the summoner a state while the summon is out. Or is there any way to manipulate the summon, so I could give it buffs or something? I'm just confused on the whole process since I can't do it the normal way like with enemies or actors > < All I really need is some kind of script with the ID of the summon > <
How exactly could I set a boolean if there is a summon out or not?
Check for summon:
$gameParty.summonMembers().length > 0

For example, I'd like to give the summoner a state while the summon is out. Or is there any way to manipulate the summon, so I could give it buffs or something? I'm just confused on the whole process since I can't do it the normal way like with enemies or actors > < All I really need is some kind of script with the ID of the summon > <
No prob 😉
Add State #4 to the summon of the first summon of the first party member:
$gameParty.members()[0]._summons[0].addState(4)

Game_Summon Properties:
Spoiler
Code:
_actionInputIndex
_actionState
_actions
_actorId
_animations
_baseSkillId
_baseSkillType
_battleSprite
_battlerName
_buffTurns
_buffs
_characterIndex
_characterName
_classId
_damagePopup
_effectType
_equips
_exitAnimation
_exp
_faceIndex
_faceName
_hidden
_hp
_introAnimation
_isReady
_lastBattleSkill
_lastCommandSymbol
_lastMenuSkill
_lastTargetIndex
_level
_masterId
_motionRefresh
_motionType
_mp
_name
_nickname
_paramPlus
_profile
_result
_selected
_skills
_speed
_sprite_x
_sprite_y
_stateSteps
_stateTurns
_states
_summons
_tp
_turns
_weaponImageId
agi
atk
cev
cnt
cri
def
eva
exr
fdr
grd
hit
hp
hrg
level
luk
mat
mcr
mdf
mdr
mev
mhp
mmp
mp
mrf
mrg
pdr
pha
rec
tcr
tgr
tp
trg
Examples:
The actorId of the first summon of the first party member:
Spoiler
Code:
$gameParty.members()[0]._summons[0]._actorId
The actorId of the actor that summoned the first summon:
Spoiler
Code:
$gameParty.summonMembers()[0]._masterId
I think that about covers everything :popcorn:
$gameParty.summonMembers().length > 0


No prob 😉
Code:
$gameParty.members()[0]._summons[0].addState(4)
Game_Summon Properties:
Spoiler
Code:
_actionInputIndex
_actionState
_actions
_actorId
_animations
_baseSkillId
_baseSkillType
_battleSprite
_battlerName
_buffTurns
_buffs
_characterIndex
_characterName
_classId
_damagePopup
_effectType
_equips
_exitAnimation
_exp
_faceIndex
_faceName
_hidden
_hp
_introAnimation
_isReady
_lastBattleSkill
_lastCommandSymbol
_lastMenuSkill
_lastTargetIndex
_level
_masterId
_motionRefresh
_motionType
_mp
_name
_nickname
_paramPlus
_profile
_result
_selected
_skills
_speed
_sprite_x
_sprite_y
_stateSteps
_stateTurns
_states
_summons
_tp
_turns
_weaponImageId
agi
atk
cev
cnt
cri
def
eva
exr
fdr
grd
hit
hp
hrg
level
luk
mat
mcr
mdf
mdr
mev
mhp
mmp
mp
mrf
mrg
pdr
pha
rec
tcr
tgr
tp
trg
Examples:
The actorId of the first summon of the first party member:
Spoiler
Code:
$gameParty.members()[0]._summons[0]._actorId
The actorId of the actor that summoned the first summon:
Spoiler
Code:
$gameParty.summonMembers()[0]._masterId
I think that about covers everything :popcorn:

Omg THANK YOU SO MUCH. This is going to give me like at least a weeks worth of work to do! You just saved my summoning class XD tytytytytyy!!
Omg THANK YOU SO MUCH. This is going to give me like at least a weeks worth of work to do! You just saved my summoning class XD tytytytytyy!!

source.gif


No Prob. Anytime ☺️

Learned a few things myself along the way too 😉

Happy Game Making! :popcorn:

Original thread: https://forums.rpgmakerweb.com/threads/removing-a-party-member.121025/