• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 09:45
CEST 15:45
KST 22:45
  • 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
Code S Season 2 (2026): RO4 and Finals Preview7TL.net Map Contest #22 - Voting & Ladder Map Selection5Code S Season 2 (2026) - RO8 Preview5[ASL21] Finals Preview: Two Legacies21Code S Season 2 (2026) - RO12 Preview2
Community News
[BSL22] Non-Korean Championship from 13 to 28 June2Weekly Cups (May 25-31): Clem doubles, 2v2 circuit heads toward finale0StarCraft II 5.0.16 PTR Patch Notes may 26th151Weekly Cups (May 18-24): MaxPax wins doubles0Crank Gathers Season 4: BW vs SC2 Team League6
StarCraft 2
General
TL Poll: How do you feel about the 5.0.16 PTR balance changes? Code S Season 2 (2026): RO4 and Finals Preview What kind of tool would you be interested in? Oliveira Would Have Returned If EWC Continued TL.net Map Contest #22 - Voting & Ladder Map Selection
Tourneys
GSL Code S Season 2 (2026) WardiTV Mondays Maestros of The Game 2 announcement and schedule ! Crank Gathers Season 4: BW vs SC2 Team League Sparkling Tuna Cup - Weekly Open Tournament
Strategy
[G] Having the right mentality to improve
Custom Maps
[D]RTS in all its shapes and glory <3
External Content
The PondCast: SC2 News & Results Mutation # 529 Opportunities Unleashed Mutation # 528 Infection Detected Welcome to the External Content forum
Brood War
General
[BSL22] Non-Korean Championship from 13 to 28 June FlaSh's ASL S21 Finals Review BW animated web series: seeking contributors 25 Years Since Brood War Patch 1.08 FlaShFTW vs A.Alm Grudge Match Event
Tourneys
[BSL22] Grand Finals - Sunday 21:00 CEST [ASL21] Grand Finals [Megathread] Daily Proleagues Escore Tournament StarCraft Season 2
Strategy
Any training maps people recommend? Why doesn't anyone use restoration? Muta micro map competition [G] Hydra ZvZ: An Introduction
Other Games
General Games
ZeroSpace Megathread The Perfect Game Path of Exile Nintendo Switch Thread Stormgate/Frost Giant Megathread
Dota 2
Looking for a Dota Mentor Official 'what is Dota anymore' discussion
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
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas TL Mafia Community Thread Five o'clock TL Mafia
Community
General
US Politics Mega-thread Dating: How's your luck? Trading/Investing Thread How cold is too cold to be outdoors? Russo-Ukrainian War Thread
Fan Clubs
The herO Fan Club!
Media & Entertainment
[TV/BOOK] *SPOILERS* Game of Thrones Discussion Movie Discussion! [Manga] One Piece
Sports
2024 - 2026 Football Thread McBoner: A hockey love story Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread Facing Challenges in Mobile App Development
TL Community
The Automated Ban List
Blogs
I'm an arrogant trash talke…
FlaShFTW
Gauntlet SC2: A Retrospectiv…
Ctone23
Esportsmanship: How to NOT B…
TrAiDoS
Why RTS gamers make better f…
gosubay
ASL S21 English Commentary…
namkraft
StarCraft improvement
iopq
Customize Sidebar...

Website Feedback

Closed Threads



Active: 5080 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
Wardi Open
11:00
#90
IntoTheiNu 1649
WardiTV1092
Rex166
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Rex 166
Codebar 47
RushiSC 16
StarCraft: Brood War
Shuttle 2106
Hyuk 1486
EffOrt 1309
Jaedong 1281
Killer 794
Horang2 722
actioN 442
Rush 436
firebathero 407
Snow 374
[ Show more ]
Soulkey 341
Light 333
ggaemo 203
Free 81
Pusan 77
Sea.KH 53
JulyZerg 52
Backho 44
HiyA 43
JYJ 41
Hm[arnc] 37
Barracks 35
scan(afreeca) 35
sorry 31
GoRush 24
Noble 23
910 22
Shine 20
zelot 19
SilentControl 13
Movie 12
Terrorterran 10
Bale 7
Dota 2
qojqva2997
XcaliburYe175
Fuzer 122
Counter-Strike
fl0m5887
olofmeister1930
Dendi569
zeus327
markeloff80
kRYSTAL_17
Other Games
tarik_tv1879
B2W.Neo1111
Lowko829
hiko624
crisheroes299
Pyrionflax247
Mew2King56
ArmadaUGS30
SHIN 28
Organizations
Other Games
gamesdonequick569
StarCraft: Brood War
lovetv 22
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 13 non-featured ]
StarCraft 2
• iHatsuTV 4
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Nemesis2339
• TFBlade666
Upcoming Events
Monday Night Weeklies
2h 16m
Replay Cast
10h 16m
Sparkling Tuna Cup
20h 16m
Replay Cast
1d 19h
Kung Fu Cup
1d 21h
Maestros of the Game
2 days
Classic vs Lambo
Clem vs Maru
Replay Cast
2 days
The PondCast
2 days
Maestros of the Game
3 days
Serral vs Rogue
herO vs SHIN
Replay Cast
3 days
[ Show More ]
Maestros of the Game
4 days
Replay Cast
4 days
CranKy Ducklings
4 days
uThermal 2v2 Circuit
5 days
Sparkling Tuna Cup
5 days
uThermal 2v2 Circuit
6 days
Replay Cast
6 days
Wardi Open
6 days
Liquipedia Results

Completed

BSL Season 22
2026 GSL S2
Heroes Pulsing #1

Ongoing

IPSL Spring 2026
KCM Race Survival 2026 Season 2
Acropolis #4
CSCL: Masked Kings S4
YSL S3
SCTL 2026 Spring
WardiTV Spring 2026
Maestros of the Game 2
uThermal 2v2 2026 Main Event
Murky Cup 2026
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026

Upcoming

BSL 22 Non-Korean Championship
CSLAN 4
Blizzard Classic Cup 2026
Kung Fu Cup 2026 Grand Finals
CranK Gathers Season 4: BW vs SC2 Team League
HSC XXIX
Heroes Pulsing #3
Heroes Pulsing #2
Esports World Cup 2026
BLAST Bounty Summer 2026
BLAST Bounty Summer Qual
Stake Ranked Episode 3
XSE Pro League 2026
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.