If you have a map of the size 64x64 and then you make a burrowed zergling for player 1 on each corner. Then you make a 2x2 location in the middle of the map with name '1', move to 1 zergling owned by player 1 at 'anywhere' and kill any unit at location '1'. Which zergling will it move to first, second, and third? Is it any set location that it will always move to the top right zergling first?
Just a thought.
I believe that is goes bottom left, top left, bottom right, top right. I'll test it for you in like 10 minutes to make sure.
It will kill the zerglings in order from the leftmost to the rightmost. If the x-position in pixels of each Zergling is identical, it will center and kill whichever Zergling has a higher LocalID (I think).
*Tested and edited to correct information
If you simply open the map and save it in xtra editor (I've heard), it resets the IDs, so that the give order goes:
2 4
1 3
If you place them in SCMDraft or Starforge and do not open the map in xtra, whichever one you placed LAST will be selected FIRST. So if you want them to act the same as xtra, place them top to bottom.
QUOTE(DT_Battlekruser)
It will kill the zerglings in order from the leftmost to the rightmost. If the x-position in pixels of each Zergling is identical, it will center and kill whichever Zergling has a lower LocalID (I think)
Higher.
QUOTE(DT_Battlekruser @ Aug 28 2006, 08:28 AM)
It will kill the zerglings in order from the leftmost to the rightmost. If the x-position in pixels of each Zergling is identical, it will center and kill whichever Zergling has a lower LocalID (I think).
[right][snapback]552451[/snapback][/right]
I think I found my answer on this question, but to proceed I have another question, what decides a units LocalID? Why do and what made you think that the lower LocalID decide who's killed first?
I went ahead and tested it; Kenoli is right. Units are selected from left to right, and if they have identical x-coordinates, the unit with the higher LocalID is selected first.
How did I do this? I placed 4 marines in a square with different ordering LocalIDs, and used a "Kill 1 marine for player 1 at anywhere" trigger, and saw which one died.
What are LocalIDs? LocalIDs are assigned to units in the order of creation. The first unit you place is assigned LocalID 0, the next one LocalID 1, and so on. If you save your map in X-tra Editor or StarEdit, LocalIDs may be reordered (I haven't tested this) from left to right, and then if the x-coordinates are identical from bottom to top.
Ingame, LocalIDs are assigned to units in order of creation. If there is a gap in the LocalID table, it is not initially filled. (if LocalID unit 6 dies, the last used LocalID is 108, and a new unit is made, it is given LocalID 109, not LocalID 6). Each time LocalID 1699 is assigned, a table of unused LocalIDs is fetched, and subsequent units will be numbered by available LocalIDs, lowest first. If no LocalIDs are available, the "Cannot create more units." error is prompted.
QUOTE(DT_Battlekruser)
If you save your map in X-tra Editor or StarEdit, LocalIDs may be reordered (I haven't tested this) from left to right, and then if the x-coordinates are identical from bottom to top.
I think it's left to right, top to bottom. Like this:
CODE
1 2 3 4 5
6 7 8 9 10
11 12 13 14 15
16 17 18 19 20
I'll take your word for it.
Okay, thanks, then I know. Closing this thread I am.