Request 1 - I'm not entirely sure what you mean but I've no doubt it could be done in a simple function? Is this what you mean ? Probably not ...
So, to check if EntityA is Between 5 and 10 units from EntityB use..
Is_Between = Bewteen( ENTITDISTANCE(EntityA,EntityB),5,10 )
Function Between( q#, lo#, hi# ) return (q >= lo and q <= hi) end function
So, to check if EntityA is Between 5 and 10 units from EntityB use..
Is_Between = Bewteen( ENTITDISTANCE(EntityA,EntityB),5,10 )