"Show choices" = living party members?

I've been spending 2 or 3 hours putting together an abomination of an event trying to get this relatively simple seeming thing to work--and I still haven't finished it. Is there really no simple way to do this?

I'll probably be making it harder for myself because I'm also going to limit the choices to not have an additional Incapacitated state, but just knowing how to do the basic function would be a help.
I'm not sure what you're trying to do. Do you want the choices to display the name of the living party members?
You can achieve that by conditions by checking which actors are inflicted with [Death] state
You can achieve that by conditions by checking which actors are inflicted with [Death] state

not quite, as the choice window only handles straight text as it's labels, and you might want the selection to always go to the same procedure (rather than different ones, as per the default)
plus, you'd probably want more than 4 choices.

no.... you have to overwrite the window with a custom one.
it can be done, but I don't know of any JS plugins that'd take care of that. I did it in Ace, directly in the database with a bit of scripting magic.

nuevo-1.jpg


basically, establish the procedure to run on a valid selection, overwrite the default procedure, and then call the new procedure under the array of names.
in this case, on selection, I remove the actor and switch it for another one.

(notice that the choice window belongs to the message window object)
I suggest going a different way - you'll need a plugin for extended choices (more than six options) and a plugin for conditional choices - both should be available already, but I don't remember the links.

then make one long choice containing every possible actor, and condition each entry to both "in party" and "alive".
That way the engine will make the choice from the options that fulfill the conditions and hide every other option.
Extended choices (Hime):
http://himeworks.com/2015/10/large-choices-mv/

Conditional choices (Aloe):
https://forums.rpgmakerweb.com/inde...l-show-choices-hide-or-disable-choices.96941/
Thanks all. I guess there isn't really a simpler way built in. I'll take a look at the plugins.
You don't need any plugin, just a simple script :
Code:
var choices = [];
var actor = 0;
$gameMessage.add("Question ?");
$gameMessage.setChoices(choices, 0, -1);
for (var i=0;i<$gameParty.members().length;i++) {
actor=$gameActors.actor($gameParty.members()[i].actorId());
if (!actor.isStateAffected(1)) { choices.push(actor.name()); } }
$gameMessage.setChoiceCallback(function (choice) {
//whatever you need to do with your choices
});
this.setWaitMode('message');
first declare the procedures, and then call setChoices().
setChoices() opens the choice window and waits for input, which triggers the procedure, which you never get to override if you call setChoices() first.

(plus, you're passing down the label array as empty)
Thanks for the ideas!

Original thread: https://forums.rpgmakerweb.com/threads/show-choices-living-party-members.108112/