As the title says I'm trying to find a plugin or script or something that I can do to make it so at certain moments in the game the player will be asked to choose one of their party members to do a task, usually something that will raise their stats. Problem is that in my game you can get to these moments before having any party members or when having only a few, and there's no order to getting the party members.
I've tried a few things with some help from others but they all seem flawed in one way or another. One method would label the choices properly but with how party order was but if there wasn't a party member in a slot then the choices would appear as 0. Anyone know how I can accomplish my goal of making events that require you to choose a party member and raising that party member's stats? Also maybe as a bonus locking off the option to do anything if there isn't any party members besides the protagonist.
Here's an example of what I was trying before
I've tried a few things with some help from others but they all seem flawed in one way or another. One method would label the choices properly but with how party order was but if there wasn't a party member in a slot then the choices would appear as 0. Anyone know how I can accomplish my goal of making events that require you to choose a party member and raising that party member's stats? Also maybe as a bonus locking off the option to do anything if there isn't any party members besides the protagonist.
Here's an example of what I was trying before