Create a new variable of type "Unit" and make it an array. When the heros are created you store them in the array for the according player number. You might want to read some tutorials about basic triggering first.
Unfortunately I think there is no elegant solution for this. It depends on why you want the units to be unselectable for other players. If it is really essential for your map I can think about a solution using dummy units. For this you create 2 versions of a unit: a visible, but unselectable unit and a transparent dummy controller unit that is invisible to other players. All orders you give to the controller unit has to be transferred to the main unit with triggers. And the controller has to be moved to the location of main unit and update health/shields/energy to fake the selection of the main unit.
This is probably too much work and I cannot guarantee that it will run smoothly so I recommend using the solution presented by FuzzYD.
Your list items have indexes and with the function "Selected List Item" you can retrieve the index of the selected list item. You need an integer array to store the race for all players. Now you have to create a new trigger that runs when the selection of your list box is changed and then you set the race variable for the triggering player to "Selected List Item". The first race you add to the list will have the index 0 so when the race variable of the player is 0 you create the according units for the player. The second race is defined by the value 1 and the third race by the value 2, ... etc.
It should be possible to select a different region and then download the game in another language. Apart from the language this shouldn't make any difference.
0
@DuckyTheDuck: Go
The distance actually depends on the unit's mass.
0
Hmmm. I didn't realize that this isn't actually a trigger error. I thought it would hide the error window. Can you try it anyway?
0
Map -> Map Options -> Hide Trigger Errors
0
You have to use the event "Unit Research Progress".
0
1) You could use regions and when a hero enters the region check whether the level is high enough.
0
@Wampsie: Go
Create a new variable of type "Unit" and make it an array. When the heros are created you store them in the array for the according player number. You might want to read some tutorials about basic triggering first.
0
Unfortunately I think there is no elegant solution for this. It depends on why you want the units to be unselectable for other players. If it is really essential for your map I can think about a solution using dummy units. For this you create 2 versions of a unit: a visible, but unselectable unit and a transparent dummy controller unit that is invisible to other players. All orders you give to the controller unit has to be transferred to the main unit with triggers. And the controller has to be moved to the location of main unit and update health/shields/energy to fake the selection of the main unit.
This is probably too much work and I cannot guarantee that it will run smoothly so I recommend using the solution presented by FuzzYD.
0
Your list items have indexes and with the function "Selected List Item" you can retrieve the index of the selected list item. You need an integer array to store the race for all players. Now you have to create a new trigger that runs when the selection of your list box is changed and then you set the race variable for the triggering player to "Selected List Item". The first race you add to the list will have the index 0 so when the race variable of the player is 0 you create the according units for the player. The second race is defined by the value 1 and the third race by the value 2, ... etc.
0
@PhoenixBird02: Go
It should be possible to select a different region and then download the game in another language. Apart from the language this shouldn't make any difference.