I have an event (set to event touch) which chases the player down. If it touches the player I want it to randomly damage (remove HP) one, and only one, party member. My problem is that there are varying number of party members from one to seven. Is there a simple way to do this?
(I have come up with a complicated method I don't really want to use. My current method is to set a variable equal to the party size. Then have an if else branch which runs through every possible combination of party members for that party size performing a dice roll for each (through another variable) to decide if that member is hurt. This was fairly simple to do as a test with only three party members, but seems like a nightmare to do for seven.)
(I have come up with a complicated method I don't really want to use. My current method is to set a variable equal to the party size. Then have an if else branch which runs through every possible combination of party members for that party size performing a dice roll for each (through another variable) to decide if that member is hurt. This was fairly simple to do as a test with only three party members, but seems like a nightmare to do for seven.)