Just another question about death...

Hello, wonderful RPGM Ace Community

During my extensive game creating process today I bumped into a problem.

Since my game includes squad selection it poses a wide 13 different actors

in a party position possibility (Party of four people). I want to include events

where incorrect choices would lead to perma-death of one of the party members

and I'd like to be rather specific about it.

So my question is: What are ways to remove from a party say 1st non-leader

character without having to specify it's name. Because as I've said before it

could be anyone and if I try to remove someone from the party, the game will

ask me to specify the name.
Hi there,

A small script call could help with this.

(Thanks to Galv!)

Remove Actor:
$game_party.remove_actor(actor_id)

Add Actor:
$game_party.add_actor(actor_id)

Remove Party Member from position (where x = party position. 0 = 1st member, 1 = 2nd member, etc.) m = $game_party.members:
$game_party.remove_actor(m[x].id)

All these were in the post about specific script conditions found here: http://forums.rpgmakerweb.com/index.php?/topic/6248-script-call-equivalent-of-events/

Hope it helps,

Sindaine
It can also be done without scripts.


Use control variable : Game Data to get the ID of the member in a specified party position.


Then use conditional branches to remove the member with that ID.


If you have events to change the party (hiring and firing members), then also make a flag on the hiring event that that actor is now dead.
Thanks guys, used the script way, worked like a charm. It's a fairly simple script though,

can't believe I got stumped on this. So yeah:

Thanks
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/just-another-question-about-death.16624/