• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 10:17
CET 16:17
KST 00:17
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
ByuL: The Forgotten Master of ZvT29Behind the Blue - Team Liquid History Book19Clem wins HomeStory Cup 289HomeStory Cup 28 - Info & Preview13Rongyi Cup S3 - Preview & Info8
Community News
Team Liquid Map Contest - Preparation Notice6Weekly Cups (Feb 23-Mar 1): herO doubles, 2v2 bonanza1Weekly Cups (Feb 16-22): MaxPax doubles0Weekly Cups (Feb 9-15): herO doubles up2ACS replaced by "ASL Season Open" - Starts 21/0258
StarCraft 2
General
Vitality disbanding their sc2-team How do you think the 5.0.15 balance patch (Oct 2025) for StarCraft II has affected the game? Team Liquid Map Contest - Preparation Notice ByuL: The Forgotten Master of ZvT Nexon's StarCraft game could be FPS, led by UMS maker
Tourneys
RSL Season 4 announced for March-April Sparkling Tuna Cup - Weekly Open Tournament $5,000 WardiTV Winter Championship 2026 Sea Duckling Open (Global, Bronze-Diamond) PIG STY FESTIVAL 7.0! (19 Feb - 1 Mar)
Strategy
Custom Maps
Publishing has been re-enabled! [Feb 24th 2026] Map Editor closed ?
External Content
The PondCast: SC2 News & Results Mutation # 515 Together Forever Mutation # 514 Ulnar New Year Mutation # 513 Attrition Warfare
Brood War
General
Flash's ASL S21 & Future Plans Announcement BGH Auto Balance -> http://bghmmr.eu/ Gypsy to Korea BSL 22 Map Contest — Submissions OPEN to March 10 BW General Discussion
Tourneys
ASL Season 21 Qualifiers March 7-8 [Megathread] Daily Proleagues [BSL22] Open Qualifier #1 - Sunday 21:00 CET Small VOD Thread 2.0
Strategy
Soma's 9 hatch build from ASL Game 2 Fighting Spirit mining rates Simple Questions, Simple Answers Zealot bombing is no longer popular?
Other Games
General Games
Path of Exile PC Games Sales Thread Nintendo Switch Thread Stormgate/Frost Giant Megathread Battle Aces/David Kim RTS Megathread
Dota 2
Official 'what is Dota anymore' discussion The Story of Wings Gaming
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Mafia Game Mode Feedback/Ideas Vanilla Mini Mafia TL Mafia Community Thread
Community
General
US Politics Mega-thread Mexico's Drug War Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine YouTube Thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Manga] One Piece [Req][Books] Good Fantasy/SciFi books Anime Discussion Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion TL MMA Pick'em Pool 2013
World Cup 2022
Tech Support
Laptop capable of using Photoshop Lightroom?
TL Community
The Automated Ban List
Blogs
FS++
Kraekkling
Shocked by a laser…
Spydermine0240
Gaming-Related Deaths
TrAiDoS
ONE GREAT AMERICAN MARINE…
XenOsky
Unintentional protectionism…
Uldridge
ASL S21 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1880 users

[G] Unit/Structure Selection Priority - Page 2

Forum Index > StarCraft 2 Strategy
Post a Reply
Prev 1 2 All
Kalamity
Profile Joined June 2012
4 Posts
March 17 2013 09:26 GMT
#21
On March 17 2013 17:00 Kaitlin wrote:
Based on what ?


Based on how the game does it.

Read the selection buffer and check each unit (structure) index via:

UnitArrayIndexPosition = ReadMemory(B_SelectionStructure + O_scUnitIndex + i * S_scStructure) >> 18

B_SelectionStructure := SC2EXE + 0x0215BF90
S_scStructure := 0x4
O_scUnitIndex := 0x8

where 'i' is the iteration number of the selected units (beginning at 0).


You will then observer what I surmised in my previous post.
Orek
Profile Joined February 2012
1665 Posts
March 17 2013 18:29 GMT
#22
On March 17 2013 15:47 Kalamity wrote:
+ Show Spoiler +
Thank you for this very helpful guide. I was looking for this exact info. As for

As obvious as it sounds, units/structures of the same type have exactly the same priority. However, I do not know how they are ordered among them at the bottom of the screen. Order of birth seems irrelevant.


They are ordered by their relative positions in the unit array structure (in the memory), which is a function of when they are created - for example:
index = unit
0 = zergling
1 = queen
2 = drone
3 = baneling
4 = hatchery

But, when a unit dies, it's spot becomes free and the next made (completed) unit will be placed there.
So if the drone dies, and then a hydra is made the array index would be:

0 = zergling
1 = queen
2 = hydra
3 = baneling
4 = hatchery

Cheers.
On March 17 2013 18:26 Kalamity wrote:
+ Show Spoiler +
On March 17 2013 17:00 Kaitlin wrote:
Based on what ?


Based on how the game does it.

Read the selection buffer and check each unit (structure) index via:

UnitArrayIndexPosition = ReadMemory(B_SelectionStructure + O_scUnitIndex + i * S_scStructure) >> 18

B_SelectionStructure := SC2EXE + 0x0215BF90
S_scStructure := 0x4
O_scUnitIndex := 0x8

where 'i' is the iteration number of the selected units (beginning at 0).


You will then observer what I surmised in my previous post.

Hi OP here. I'm not a map editor expert, so I don't quite understand what you wrote. Do you mean that's how the priority is decided among, say, Marine A, Marine B, Marine C, Marine D, and Marine E? That's what I wanted to know, and I'm not sure how your example with different units explains it. Did you actually mean
0 = Marine A
1 = Marine B
2 = Marine C
3 = Marine D
4 = Marine E
?
Otherwise, different units will be prioritiezed differently anyways as listed in the OP. I don't think dead drone is replaced by a hydralisk which has entirely different priority, unless we are misunderstanding each other.
Kalamity
Profile Joined June 2012
4 Posts
Last Edited: 2013-03-17 22:07:29
March 17 2013 22:06 GMT
#23
On March 18 2013 03:29 Orek wrote:

Hi OP here. I'm not a map editor expert, so I don't quite understand what you wrote. Do you mean that's how the priority is decided among, say, Marine A, Marine B, Marine C, Marine D, and Marine E? That's what I wanted to know, and I'm not sure how your example with different units explains it. Did you actually mean
0 = Marine A
1 = Marine B
2 = Marine C
3 = Marine D
4 = Marine E
?
Otherwise, different units will be prioritiezed differently anyways as listed in the OP. I don't think dead drone is replaced by a hydralisk which has entirely different priority, unless we are misunderstanding each other.



Sorry, I didn't really explain that well...was posting between games haha. Yes, that is correct - when units have the same priority, they are then ranked according to their positions in the unit array.

If you have two units in the unit array:

0 = Marine A
1 = Marine B

and you make a new Marine (c), the unit array becomes

0 = Marine A
1 = Marine B
2 = Marine C

if Marine B dies, and you make a new Marine (D), the array (and hence the selection order) becomes:

0 = Marine A
1 = Marine D
2 = Marine C

Cheers.
Forsy
Profile Joined May 2011
Canada36 Posts
March 17 2013 22:37 GMT
#24
On a side note of unit selection, is there a way to prevent one mouse click from selecting 2 or 3 units at a time? This is most prevalent when clicking on a worker in a mineral line, and you click once and somehow multiple workers are selected.
Kaitlin
Profile Joined December 2010
United States2958 Posts
March 18 2013 03:34 GMT
#25
On March 18 2013 07:37 Forsy wrote:
On a side note of unit selection, is there a way to prevent one mouse click from selecting 2 or 3 units at a time? This is most prevalent when clicking on a worker in a mineral line, and you click once and somehow multiple workers are selected.


A click will only select one unit. If you're selecting 2 or 3 units, you are inadvertently boxing. Keep your mouse still while clicking is the solution.
Salv
Profile Blog Joined December 2007
Canada3083 Posts
March 20 2013 16:19 GMT
#26
On March 18 2013 07:37 Forsy wrote:
On a side note of unit selection, is there a way to prevent one mouse click from selecting 2 or 3 units at a time? This is most prevalent when clicking on a worker in a mineral line, and you click once and somehow multiple workers are selected.


Don't hold ctrl while clicking?
Forsy
Profile Joined May 2011
Canada36 Posts
Last Edited: 2013-03-21 04:02:45
March 21 2013 03:48 GMT
#27
On March 18 2013 12:34 Kaitlin wrote:
Show nested quote +
On March 18 2013 07:37 Forsy wrote:
On a side note of unit selection, is there a way to prevent one mouse click from selecting 2 or 3 units at a time? This is most prevalent when clicking on a worker in a mineral line, and you click once and somehow multiple workers are selected.


A click will only select one unit. If you're selecting 2 or 3 units, you are inadvertently boxing. Keep your mouse still while clicking is the solution.

I'm fairly certain that I'm not boxing or holding ctrl. It's a glitch that just sometimes happens. Probably when miners are crossing over each other
Prev 1 2 All
Please log in or register to reply.
Live Events Refresh
WardiTV Winter Champion…
12:00
Playoffs
Classic vs Rogue
Solar vs Gerald
Bunny vs Nicoract
ByuN vs Zoun
herO vs Clem
MaxPax vs Cure
WardiTV1221
TKL 299
IndyStarCraft 230
EnkiAlexander 56
IntoTheiNu 11
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Lowko429
TKL 299
IndyStarCraft 240
Rex 134
SC2Nice 24
StarCraft: Brood War
Britney 28804
Sea 26309
firebathero 603
Pusan 53
[sc1f]eonzerg 43
yabsab 36
NaDa 35
Rock 24
Icarus 7
Dota 2
Gorgc5945
monkeys_forever187
Counter-Strike
fl0m1201
Super Smash Bros
Mew2King63
Heroes of the Storm
Khaldor165
Other Games
B2W.Neo1343
DeMusliM270
Fuzer 145
KnowMe109
QueenE49
Organizations
Dota 2
PGL Dota 2 - Main Stream7785
PGL Dota 2 - Secondary Stream2050
StarCraft: Brood War
CasterMuse 15
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 17 non-featured ]
StarCraft 2
• 3DClanTV 31
• IndyKCrew
• sooper7s
• AfreecaTV YouTube
• Migwel
• intothetv
• LaughNgamezSOOP
• Kozan
• iHatsuTV 0
StarCraft: Brood War
• blackmanpl 17
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
League of Legends
• Nemesis6958
• Jankos2065
• TFBlade808
• Stunt602
Upcoming Events
AI Arena Tournament
4h 43m
Patches Events
7h 43m
Replay Cast
8h 43m
Sparkling Tuna Cup
18h 43m
RSL Revival
18h 43m
Classic vs TriGGeR
Cure vs Cham
WardiTV Winter Champion…
20h 43m
OSC
21h 13m
BSL
1d 4h
Replay Cast
1d 8h
Replay Cast
1d 17h
[ Show More ]
Monday Night Weeklies
2 days
OSC
2 days
Replay Cast
4 days
The PondCast
4 days
Replay Cast
5 days
Replay Cast
6 days
CranKy Ducklings
6 days
Liquipedia Results

Completed

Proleague 2026-03-05
PiG Sty Festival 7.0
Underdog Cup #3

Ongoing

KCM Race Survival 2026 Season 1
Jeongseon Sooper Cup
Spring Cup 2026
ASL Season 21: Qualifier #1
RSL Revival: Season 4
WardiTV Winter 2026
Nations Cup 2026
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual

Upcoming

ASL Season 21: Qualifier #2
ASL Season 21
Acropolis #4 - TS6
Acropolis #4
IPSL Spring 2026
CSLAN 4
HSC XXIX
uThermal 2v2 2026 Main Event
Bellum Gens Elite Stara Zagora 2026
NationLESS Cup
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.