I think that might work, but would end up very heavy.
Here's a bit more detail on the game: Each player's army is mostly self-driven. The only control you have over them is moving the player around the world: the mob units all follow their player, but whenever an enemy mob unit enters their personal trigger area (a neutral object each unit has with a collider on it) they stop following the player and go attack instead.
Right now the tag that collider is looking for is player02, but I'd like it to get set off by player 02, player03, or player04.
I thought of simply setting the trigger tag to something neutral, like "unit" and then check some string variable it has, but your army can get as big as 50 units or so, and every unit running that check against every teammate in the area would be very wasteful.