> Can't do, since you don't know what units belong to what factions.
Or, rather, Rich's program doesn't know what the player knows. I keep
track of who owns what units and so I know the owner of almost all
units that I run into. But Rich has no idea what I know. So I will
just declare permissions for everything where necessary.