• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 19:50
CEST 01:50
KST 08:50
  • 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
TL.net Map Contest #21: Voting5[ASL20] Ro4 Preview: Descent11Team TLMC #5: Winners Announced!3[ASL20] Ro8 Preview Pt2: Holding On9Maestros of the Game: Live Finals Preview (RO4)5
Community News
Weekly Cups (Oct 6-12): Four star herO65.0.15 Patch Balance Hotfix (2025-10-8)74Weekly Cups (Sept 29-Oct 5): MaxPax triples up3PartinG joins SteamerZone, returns to SC2 competition325.0.15 Balance Patch Notes (Live version)119
StarCraft 2
General
TL.net Map Contest #21: Voting 5.0.15 Patch Balance Hotfix (2025-10-8) The New Patch Killed Mech! Ladder Impersonation (only maybe) Weekly Cups (Oct 6-12): Four star herO
Tourneys
LiuLi Cup - September 2025 Tournaments Sparkling Tuna Cup - Weekly Open Tournament Master Swan Open (Global Bronze-Master 2) Tenacious Turtle Tussle WardiTV Mondays
Strategy
Custom Maps
External Content
Mutation # 495 Rest In Peace Mutation # 494 Unstable Environment Mutation # 493 Quick Killers Mutation # 492 Get Out More
Brood War
General
Pros React To: BarrackS + FlaSh Coaching vs SnOw Whose hotkey signature is this? BW caster Sayle BW General Discussion ASL20 General Discussion
Tourneys
[Megathread] Daily Proleagues [ASL20] Semifinal A [ASL20] Semifinal B [ASL20] Ro8 Day 4
Strategy
Current Meta BW - ajfirecracker Strategy & Training Siegecraft - a new perspective TvZ Theorycraft - Improving on State of the Art
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread ZeroSpace Megathread Dawn of War IV Path of Exile
Dota 2
Official 'what is Dota anymore' discussion LiquidDota to reintegrate into TL.net
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
SPIRED by.ASL Mafia {211640} TL Mafia Community Thread
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread Men's Fashion Thread Sex and weight loss
Fan Clubs
The herO Fan Club! The Happy Fan Club!
Media & Entertainment
[Manga] One Piece Anime Discussion Thread Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion MLB/Baseball 2023 NBA General Discussion TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Recent Gifted Posts
Blogs
Inbreeding: Why Do We Do It…
Peanutsc
From Tilt to Ragequit:The Ps…
TrAiDoS
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1590 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
Replay Cast
23:00
PiGosaur Cup #53
CranKy Ducklings121
Liquipedia
OSC
23:00
OSC Masters Cup #150 Qual #1
davetesta17
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
ProTech81
StarCraft: Brood War
Larva 1338
Leta 357
ZZZero.O 46
NaDa 31
Counter-Strike
fl0m664
Super Smash Bros
hungrybox315
Other Games
summit1g4735
Grubby2134
shahzam849
Day[9].tv454
PiGStarcraft264
ViBE251
C9.Mang0225
Maynarde114
Skadoodle74
fpsfer 2
Organizations
Other Games
gamesdonequick590
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 21 non-featured ]
StarCraft 2
• Hupsaiya 40
• Kozan
• sooper7s
• Migwel
• AfreecaTV YouTube
• LaughNgamezSOOP
• intothetv
• IndyKCrew
StarCraft: Brood War
• HerbMon 24
• mYiSmile17
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• WagamamaTV452
• Ler77
League of Legends
• Doublelift6414
• imaqtpie3001
• HappyZerGling156
Other Games
• Scarra915
• Shiphtur590
• Day9tv454
Upcoming Events
The PondCast
10h 10m
OSC
12h 10m
Wardi Open
1d 11h
CranKy Ducklings
2 days
Safe House 2
2 days
Sparkling Tuna Cup
3 days
Safe House 2
3 days
Tenacious Turtle Tussle
6 days
Liquipedia Results

Completed

Acropolis #4 - TS2
WardiTV TLMC #15
HCC Europe

Ongoing

BSL 21 Points
ASL Season 20
CSL 2025 AUTUMN (S18)
C-Race Season 1
IPSL Winter 2025-26
EC S1
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025

Upcoming

SC4ALL: Brood War
BSL Season 21
BSL 21 Team A
RSL Offline Finals
RSL Revival: Season 3
Stellar Fest
SC4ALL: StarCraft II
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
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 © 2025 TLnet. All Rights Reserved.