Loading...
  OR  Zero-K Name:    Password:   

Widget Wanted: Selection Scope

3 posts, 560 views
Post comment
Filter:    Player:  
sort


4 years ago
I use autogroup to assign raiders to Group 1, skirms to Group 2, etc. This works really well for microing battles, where I can do things like instantly select my raiders and pull them off to the side and then instantly select my skirms to focus on the enemy riots.

The problem is that this only works if there's only one battle.

Here's what I'd like to do:
  • Box-select a bunch of units (say, my mixed army of Glaives and Ronin in the north) while holding a hotkey such as Space or Alt or somesuch
  • From that point forward, pressing a number key to select a group ONLY selects those members of that group that were included in the box-select
  • Press 1 - my Glaives in the north army are selected, but Glaives elsewhere are not
  • Press 2 - my Ronin in the north army are selected, but Ronin elsewhere are not
  • Box-select a different bunch of units (say, the south army) while holding the hotkey
  • Press 1 - now only the south army Glaives are selected
  • etc

The selection scope could be reset to "all units" by box-selecting (normal box-selection, without the scoping hotkey) a set of units that includes at least one unit not already in the selection scope.

There are some other ways to do something kind-of like what I'm wanting to do, but none of them are as convenient as my suggestion:
  • Zoom in, press a group number key, press ctrl-X
  • Zoom in, double-click on a unit of the desired type
  • Box-select, then left-click or right-click on unit type groups in the selection panel to narrow down the selection by unit type (assuming you have "group by unit type" turned on in the selection panel options)

I'd like to be able to select all the raiders in one area, then select all the skirms in that same area, and rapidly switch between the two selections, without zooming in (I play mostly zoomed-out), and without having to do a lot of clicking or keypressing each time I switch between them.

Does anyone have a bit of time to write such a widget? Alternately, can anyone tell me if something like this already exists?
+1 / -0

4 years ago
Have a look https://github.com/lhog/ZK-Widgets/blob/master/graphic_unit_selector.lua
This is a heavily reworked Selection widget from Shaman. Perhaps in can be improved if someone cares.

It works by long pressing keys from 1 to 9(?).
+0 / -0


4 years ago
Thanks, I'll check it out! Probably not what I was looking for, but might be useful for me anyway.
+0 / -0