Staredit Network > Forums > SC1 UMS Theory and Ideas > Topic: Selection Detection(EUD)
Selection Detection(EUD)
Jun 23 2009, 1:14 am
By: Morphling  

Oct 20 2019, 9:02 pm Zoan Post #21

Math + Physics + StarCraft = Zoan

Hey, look, a thread from almost 10 years ago!

Anyway, I'm playing with the supported eud actions, and I realized that this particular address is slightly different than described (I think). I set it to have me select unit id 1 constantly, but instead of actually selecting it, it just made it so that all of my commands are issued to that unit. So I can order it around to move and attack while having an entirely different unit selected. Weird.



\:rip\:ooooo\:wob\:ooooo \:angel\: ooooo\:wob\:ooooo\:rip\:

Oct 21 2019, 10:23 pm Roy Post #22

An artist's depiction of an Extended Unit Death

Quote from Zoan
Anyway, I'm playing with the supported eud actions, and I realized that this particular address is slightly different than described (I think). I set it to have me select unit id 1 constantly, but instead of actually selecting it, it just made it so that all of my commands are issued to that unit. So I can order it around to move and attack while having an entirely different unit selected. Weird.
This address is exactly as described, which is why your commands are issued to the unit when you set its value. The reason it doesn't look like the unit is selected is because just setting the address value directly doesn't update any of the UI components.

In other words, when you select a unit in SC, the code updates a bunch of values to show that the unit is selected. Part of this is updating the selected unit group values (described in this thread). You'd need to update many more addresses to emulate what an in-game selection does.




Oct 22 2019, 2:38 pm Zoan Post #23

Math + Physics + StarCraft = Zoan

Ah, makes sense. Any idea what address I should use to make it show me the selected units stats and stuff?

I ask because I’d like to be able to walk into fog of war without it auto deselecting the unit. When you do, as is it makes you unable to issue commands after you lose selection if the unit. I guess you technically have the unit selected through manipulating this address, but you can’t order it to move or anything without selecting another unit.



\:rip\:ooooo\:wob\:ooooo \:angel\: ooooo\:wob\:ooooo\:rip\:

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[07:10 am]
sraw531 -- ungh, looks like im going to have to do a binary count off for death messages, they aren't properly being displayed to everybody :(
[04:22 am]
sraw531 -- maybe I should just test what happens if you teleport(move) the command centers to a location off the map every cycle while they are flying.
[04:22 am]
sraw531 -- if you do a for each loop, then youd likely have deselection issues, if you dont youd likely have issues with non-prebuilt command centers
[04:21 am]
sraw531 -- UndeadStar
UndeadStar shouted: @sraw531: what happen if you continuously (through trigger) order it to move to its own location?Close to what you need?Or just bug/bad?
That might work for one command center, but it wouldn't work for multiple. If you were to do it for multiple youd need 1-2 locations for each, and thats not easy.
[03:30 am]
UndeadStar -- @sraw531: what happen if you continuously (through trigger) order it to move to its own location?Close to what you need?Or just bug/bad?
[2020-9-22. : 12:08 pm]
IlyaSnopchenko -- sraw531
sraw531 shouted: is there an "easy" (without modding/EUD) way to make flying command centers have a movement speed of ~0 when trying to fly, but can still land/lift?
Funny that it was just what I did when trying to prevent flying buildings from flying... though that was still through iscript/AICE - set the flingy speed to 0 after each liftoff (as it's reset to a hardcoded value each time the building lifts off)
[2020-9-22. : 5:01 am]
Oh_Man -- https://youtu.be/eG9lTgu0R-M This guy must have got sued by like 5 different companies. 🤣
[2020-9-22. : 1:00 am]
sraw531 -- is there an "easy" (without modding/EUD) way to make flying command centers have a movement speed of ~0 when trying to fly, but can still land/lift?
[2020-9-22. : 12:50 am]
sraw531 -- surprisingly easy to change all the hero marines into normal marines, and vice versa, across the map though.
[2020-9-22. : 12:10 am]
sraw531 -- really hate when SCMdraft replaces deaths with " Memory(17, At least, 1);", makes it so I can't do mass replace for triggers when it changes to memory type :(
Please log in to shout.


Members Online: Roy, jun3hong