You can set the values with EGUI (though I'm having toubles getting it working) or JASS, and you'll need to target the units with a spell or need JASS to get the selected unit. GUI selected unit is bugged, and gives a ridiculous amount of selection bug if used frequently.
and i never heard of anything like a "selected unit" bug