• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 05:33
CET 11:33
KST 19:33
  • 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
SC2 All-Star Invitational: Tournament Preview5RSL Revival - 2025 Season Finals Preview8RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2
Community News
BSL Season 2025 - Full Overview and Conclusion6Weekly Cups (Jan 5-11): Clem wins big offline, Trigger upsets4$21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7)16Weekly Cups (Dec 29-Jan 4): Protoss rolls, 2v2 returns7[BSL21] Non-Korean Championship - Starts Jan 105
StarCraft 2
General
Stellar Fest "01" Jersey Charity Auction SC2 All-Star Invitational: Tournament Preview Weekly Cups (Jan 5-11): Clem wins big offline, Trigger upsets When will we find out if there are more tournament SC2 Spotted on the EWC 2026 list?
Tourneys
SC2 All-Star Invitational: Jan 17-18 Sparkling Tuna Cup - Weekly Open Tournament SC2 AI Tournament 2026 $21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7) OSC Season 13 World Championship
Strategy
Simple Questions Simple Answers
Custom Maps
Map Editor closed ?
External Content
Mutation # 508 Violent Night Mutation # 507 Well Trained Mutation # 506 Warp Zone Mutation # 505 Rise From Ashes
Brood War
General
BW General Discussion BSL Season 2025 - Full Overview and Conclusion Video Footage from 2005: The Birth of G2 in Spain [ASL21] Potential Map Candidates Fantasy's Q&A video
Tourneys
[BSL21] Grand Finals - Sunday 21:00 CET [Megathread] Daily Proleagues [BSL21] Non-Korean Championship - Starts Jan 10 Small VOD Thread 2.0
Strategy
Soma's 9 hatch build from ASL Game 2 Simple Questions, Simple Answers Game Theory for Starcraft Current Meta
Other Games
General Games
Stormgate/Frost Giant Megathread Beyond All Reason Awesome Games Done Quick 2026! Nintendo Switch Thread Mechabellum
Dota 2
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
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread Canadian Politics Mega-thread European Politico-economics QA Mega-thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece
Sports
2024 - 2026 Football Thread
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
My 2025 Magic: The Gathering…
DARKING
Physical Exercise (HIIT) Bef…
TrAiDoS
Life Update and thoughts.
FuDDx
How do archons sleep?
8882
James Bond movies ranking - pa…
Topin
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2038 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
All-Star Invitational
03:00
Day 2
WardiTV1166
IndyStarCraft 245
LiquipediaDiscussion
Sparkling Tuna Cup
10:00
Weekly #117
CranKy Ducklings98
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
IndyStarCraft 245
MindelVK 95
EmSc Tv 15
StarCraft: Brood War
Rain 4614
firebathero 1124
Shuttle 701
Hyuk 691
Larva 574
BeSt 421
Stork 358
actioN 346
Hm[arnc] 251
Soma 221
[ Show more ]
Mini 148
Hyun 142
Light 132
Rush 116
sorry 114
Leta 103
Last 97
Sharp 96
Shine 63
ToSsGirL 46
Free 38
yabsab 32
HiyA 27
NotJumperer 23
Sacsri 18
Noble 15
zelot 14
Terrorterran 6
NaDa 3
Dota 2
XcaliburYe338
League of Legends
JimRising 543
C9.Mang0464
Counter-Strike
allub407
Other Games
Sick245
crisheroes154
Mew2King65
Organizations
Other Games
gamesdonequick2296
StarCraft 2
EmSc Tv 15
EmSc2Tv 15
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 17 non-featured ]
StarCraft 2
• Berry_CruncH107
• naamasc229
• Kozan
• Migwel
• AfreecaTV YouTube
• sooper7s
• intothetv
• IndyKCrew
• LaughNgamezSOOP
• Laughngamez YouTube
StarCraft: Brood War
• blackmanpl 25
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• lizZardDota290
League of Legends
• Jankos2138
• Stunt557
Upcoming Events
OSC
1h 27m
Shameless vs NightMare
YoungYakov vs MaNa
Nicoract vs Jumy
Gerald vs TBD
Creator vs TBD
BSL 21
9h 27m
Bonyth vs Sziky
Mihu vs QiaoGege
Sziky vs XuanXuan
eOnzErG vs QiaoGege
Mihu vs DuGu
Dewalt vs Bonyth
IPSL
9h 27m
Dewalt vs Sziky
Replay Cast
22h 27m
Wardi Open
1d 1h
Monday Night Weeklies
1d 6h
The PondCast
2 days
Big Brain Bouts
5 days
Serral vs TBD
BSL 21
6 days
Liquipedia Results

Completed

Escore Tournament S1: W4
Big Gabe Cup #3
NA Kuram Kup

Ongoing

C-Race Season 1
IPSL Winter 2025-26
BSL 21 Non-Korean Championship
CSL 2025 WINTER (S19)
KCM Race Survival 2026 Season 1
OSC Championship Season 13
SC2 All-Star Inv. 2025
Underdog Cup #3
BLAST Bounty Winter Qual
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025

Upcoming

Escore Tournament S1: W5
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Rongyi Cup S3
Nations Cup 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League Season 23
ESL Pro League Season 23
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 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.