Complex sentence: Once selected, the unit is surrounded by a yellow rectangle, beside which is a health meter, which diminishes as they take damage.
Split into simpler sentences: Once selected, the unit is surrounded by a yellow rectangle. Once a unit is selected, a health meter appears beside them, which diminishes as they take damage.