Is there any way to run a check that returns the number of other allies that meet a certain criteria (such as .isStateAffected() or .hp <= 50%, if that's a thing)?
I'm using Yanfly's Buffs&States Core to work with state counters, and am trying to, upon applying this State, increase the counters based on the number of allies (excluding the user) who either have under 50% HP, or who have a Passive State that only comes into effect while they have under 50% HP. It seems like doing some sort of call like the one above would be the best way to handle this, but if there's a better way, I'll give it a shot!
I'm using Yanfly's Buffs&States Core to work with state counters, and am trying to, upon applying this State, increase the counters based on the number of allies (excluding the user) who either have under 50% HP, or who have a Passive State that only comes into effect while they have under 50% HP. It seems like doing some sort of call like the one above would be the best way to handle this, but if there's a better way, I'll give it a shot!