So I’m working on a game with many variables, and I have one stat that is the average of seven other stats. To hopefully make the whole situation easier to understand, I’ll go ahead and explain what they are.
The one “big stat” is Party Hunger that tracks if your party as a whole is starving. The others are the individual character hunger meters. I don’t just want to display the hunger meters separately because there will be one party member who is actually betraying the player and trying to kill the rest of them. It would simply be too easy to tell who the saboteur is if one character is fully fed and the rest are all starving because he ate all the food in secret. Since the deaths of the characters will be randomized throughout the game, or none of them could die at all, I was wondering if there is a simple way of coding how to calculate the average for the Party Hunger since once a character is dead, their hunger meter no longer needs to affect the average. The only way that I can think to calculate it is to list out every possibility of living and dead characters, and with seven characters, that is a LOT of combinations!
If you need me to try to explain this better before anyone can help, I can TRY, but don’t count on it. I’m bad at explaining things since it makes sense in my head and I thus assume that it makes just as much sense to everyone else.
Thanks for all the help in advance!