I have the following as part of a trigger:
Unit - Create 1 Jim Raynor (Commando) for player 1 at Spawn Point 1 using default facing (No Options)
Variable - Set Leader = (Last created unit)
Unit Selection - Select Leader for player 1
This works fine. Raynor spawns and is selected for Player 1. However, if I then say "Select Leader for player 1" in ANY OTHER TRIGGER it doesn't work. The selection is unchanged. And yes, "Leader" is set up as a global variable, not local.
Never mind, I figured it out. It was happening because Player 1 had selected one of Player 2's units at the time, and you can't select P1's unit until P2's unit is deselected. Stupid me.