to make a global variable, hit ctrl-b. Although I believe LinkD misunderstood you. I believe you mean not to select the unit, (like in game clicking on it) but using the specific unit in a trigger. It would be helpful if you could post the text of the trigger (right click copy text) so i could further help you out.
As for problem 2 this is the way i use.
Events
Player - Player Any Player leaves the game with Any
Conditions
(Number of players in (Active Players)) == 1
Actions
Player Group - Pick each player in (Active Players) and do (Actions)
Actions
Game - End game in Victory for player (Picked player) (Show dialogs, Show score screen)
for the event, chose player leaves game and change with victory to any.
for the condition choose number of players in player group, and then active players as th eplayer group. Make it equal to value 1
fro actions choose pick each player in player group, change it to active players. then under actions for that, choose end game, and choose victory.
you also have to have the triggers ending the game in defeat or all the others of course.
to make a global variable, hit ctrl-b. Although I believe LinkD misunderstood you. I believe you mean not to select the unit, (like in game clicking on it) but using the specific unit in a trigger. It would be helpful if you could post the text of the trigger (right click copy text) so i could further help you out.
As for problem 2 this is the way i use.
Events
Player - Player Any Player leaves the game with Any
Conditions
(Number of players in (Active Players)) == 1
Actions Player Group - Pick each player in (Active Players) and do (Actions)
Actions
Game - End game in Victory for player (Picked player) (Show dialogs, Show score screen)
for the event, chose player leaves game and change with victory to any. for the condition choose number of players in player group, and then active players as th eplayer group. Make it equal to value 1 fro actions choose pick each player in player group, change it to active players. then under actions for that, choose end game, and choose victory.
you also have to have the triggers ending the game in defeat or all the others of course.