• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 03:43
CEST 09:43
KST 16:43
  • 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
BGE Stara Zagora 2025: Info & Preview27Code S RO12 Preview: GuMiho, Bunny, SHIN, ByuN3The Memories We Share - Facing the Final(?) GSL46Code S RO12 Preview: Cure, Zoun, Solar, Creator4[ASL19] Finals Preview: Daunting Task30
Community News
[BSL20] ProLeague: Bracket Stage & Dates8GSL Ro4 and Finals moved to Sunday June 15th12Weekly Cups (May 27-June 1): ByuN goes back-to-back0EWC 2025 Regional Qualifier Results26Code S RO12 Results + RO8 Groups (2025 Season 2)3
StarCraft 2
General
BGE Stara Zagora 2025: Info & Preview The SCII GOAT: A statistical Evaluation Magnus Carlsen and Fabi review Clem's chess game. Jim claims he and Firefly were involved in match-fixing GSL Ro4 and Finals moved to Sunday June 15th
Tourneys
Bellum Gens Elite: Stara Zagora 2025 Master Swan Open (Global Bronze-Master 2) $5,100+ SEL Season 2 Championship (SC: Evo) SOOPer7s Showmatches 2025 Cheeseadelphia 2025 - Open Bracket LAN!
Strategy
[G] Darkgrid Layout Simple Questions Simple Answers [G] PvT Cheese: 13 Gate Proxy Robo
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 476 Charnel House Mutation # 475 Hard Target Mutation # 474 Futile Resistance Mutation # 473 Cold is the Void
Brood War
General
Will foreigners ever be able to challenge Koreans? [BSL20] ProLeague: Bracket Stage & Dates BGH auto balance -> http://bghmmr.eu/ BW General Discussion I made an ASL quiz
Tourneys
[ASL19] Grand Finals [Megathread] Daily Proleagues [BSL20] ProLeague Bracket Stage - Day 2 [BSL20] ProLeague Bracket Stage - Day 1
Strategy
I am doing this better than progamers do. [G] How to get started on ladder as a new Z player
Other Games
General Games
Stormgate/Frost Giant Megathread What do you want from future RTS games? Path of Exile Nintendo Switch Thread Mechabellum
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
LiquidLegends to reintegrate into TL.net
Heroes of the Storm
Heroes of the Storm 2.0 Simple Questions, Simple Answers
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread Vape Nation Thread European Politico-economics QA Mega-thread
Fan Clubs
Maru Fan Club Serral Fan Club
Media & Entertainment
Korean Music Discussion [Manga] One Piece
Sports
2024 - 2025 Football Thread Formula 1 Discussion NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread Cleaning My Mechanical Keyboard
TL Community
The Automated Ban List
Blogs
Cognitive styles x game perf…
TrAiDoS
StarCraft improvement
iopq
Heero Yuy & the Tax…
KrillinFromwales
I was completely wrong ab…
jameswatts
Need Your Help/Advice
Glider
Trip to the Zoo
micronesia
Poker
Nebuchad
Customize Sidebar...

Website Feedback

Closed Threads



Active: 25469 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
Next event in 1h 17m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
EnDerr 44
StarCraft: Brood War
Mong 394
TY 331
Killer 307
soO 70
ggaemo 58
PianO 58
Leta 55
Mind 44
Bale 3
Dota 2
XcaliburYe170
League of Legends
JimRising 711
Counter-Strike
Stewie2K2416
Heroes of the Storm
Khaldor222
Other Games
summit1g6255
shahzam973
WinterStarcraft550
SC2_NightMare2
Organizations
StarCraft: Brood War
UltimateBattle 30
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 12 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• lizZardDota2178
League of Legends
• Stunt490
Upcoming Events
SOOP
1h 17m
Classic vs GuMiho
Sparkling Tuna Cup
2h 17m
AllThingsProtoss
3h 17m
Fire Grow Cup
7h 17m
BSL: ProLeague
10h 17m
HBO vs Doodle
spx vs Tech
DragOn vs Hawk
Dewalt vs TerrOr
Replay Cast
16h 17m
Replay Cast
1d 16h
Replay Cast
2 days
WardiTV Invitational
2 days
WardiTV Invitational
2 days
[ Show More ]
GSL Code S
3 days
Rogue vs GuMiho
Maru vs Solar
Replay Cast
3 days
GSL Code S
4 days
herO vs TBD
Classic vs TBD
The PondCast
4 days
Replay Cast
4 days
GSL Code S
5 days
WardiTV Invitational
5 days
Korean StarCraft League
5 days
CranKy Ducklings
6 days
WardiTV Invitational
6 days
Cheesadelphia
6 days
Cheesadelphia
6 days
Liquipedia Results

Completed

CSL Season 17: Qualifier 1
BGE Stara Zagora 2025
Heroes 10 EU

Ongoing

JPL Season 2
BSL 2v2 Season 3
BSL Season 20
KCM Race Survival 2025 Season 2
NPSL S3
Rose Open S1
CSL Season 17: Qualifier 2
2025 GSL S2
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
ECL Season 49: Europe
BLAST Rivals Spring 2025
MESA Nomadic Masters
CCT Season 2 Global Finals
IEM Melbourne 2025
YaLLa Compass Qatar 2025
PGL Bucharest 2025
BLAST Open Spring 2025

Upcoming

CSL 17: 2025 SUMMER
Copa Latinoamericana 4
CSLPRO Last Chance 2025
CSLPRO Chat StarLAN 3
K-Championship
SEL Season 2 Championship
Esports World Cup 2025
HSC XXVII
Championship of Russia 2025
Murky Cup #2
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
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.