Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: EUD Selection Address For specific Units
EUD Selection Address For specific Units
This topic is locked. You can no longer write replies here.
Oct 23 2009, 8:54 pm
By: samsizzle  

Oct 23 2009, 8:54 pm samsizzle Post #1



I was wondering if there were specific EUD addresses for specific units being selected. And i also wanted to know if there's a difference between the address if its the players unit or an enemy unit. Right now i need the address for enemy marines being selected, if anyone knows how to get those.



None.

Oct 23 2009, 8:58 pm Morphling Post #2



Use the search function please. If you are confused about it don't hesitate to ask.



None.

Oct 23 2009, 9:01 pm samsizzle Post #3



alright, but what would i put for deaths if i wanted to detect a terran marine



None.

Oct 23 2009, 9:03 pm Morphling Post #4



Are you trying to detect a single unit or a lot of units?



None.

Oct 23 2009, 9:04 pm samsizzle Post #5



a single enemy unit.



None.

Oct 23 2009, 9:12 pm Morphling Post #6



If the unit preplaced and won't die and be recreated and know what the unit number is then you can easily create the trigger. By unit number I mean the first unit placed on the map has a unit Id of 1700, the second unit has an Id of 1, and the third unit has an Id of 2 and so on. If you do not know the number then you can find the death value at address 6284E8 through 628638 in artmoney.



None.

Oct 23 2009, 9:14 pm samsizzle Post #7



what about detecting units that have been created later on in the map with triggers



None.

Oct 23 2009, 9:16 pm Morphling Post #8



Then my method won't work, unless the unit's Id is the same every game. I'll try to find another EUD method for you.



None.

Oct 23 2009, 9:19 pm samsizzle Post #9



alright, does the unit id in the unit properties have anything to do with this?



None.

Oct 23 2009, 9:35 pm Roy Post #10

An artist's depiction of an Extended Unit Death

I use this address to detect the UnitID of the selected unit: 68C14C

To detect if a Marine (Unit ID: 0) is selected, the condition would look like this:

Code
    Memory(264058, Exactly, 0);

264058 = Address 68C14C
0 = Unit ID

Oddly enough, the ID for no unit selected is 228...

This won't detect if the selected unit is an enemy, though.




Oct 23 2009, 9:41 pm samsizzle Post #11



holy crap thank you, it works perfectly! So i'm guessing that if i stuck a different unit id in there it would detect a different unit.



None.

Oct 23 2009, 9:47 pm Morphling Post #12



I found another method.

Memory(-13043, Exactly, 0);
This EUD detects when you select your own unit. (green selection circle)
Memory(-13043, Exactly, 1);
This EUD detects when you select an enemy. (red selection circle)
Memory(-13043, Exactly, 2);
This EUD detects when you select an ally or player 12. (yellow selection circle)

Memory(264058, Exactly, 0);
This EUD detects the currently selected unit number (Marine=0, Ghost=1, and so on)

Note: With selection circle detection you have to click the unit twice it to recognize the change in value.



None.

Oct 23 2009, 9:53 pm samsizzle Post #13



thanks morph that's is gonna be real good for testing, and thanks roy. This topic has served its purpose.



None.

Oct 23 2009, 10:02 pm Morphling Post #14



Oops... I didn't even see Roy's post. This would have saved me a whole two minutes of testing the selected unit number.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[02:28 am]
Symmetry -- :wob:
[02:26 am]
Apos -- :wob:
[09:16 am]
NimoStar -- ever wanted to play melee in installation tileset? Now you can https://staredit.net/topic/18929/
[2026-9-11. : 2:29 am]
Symmetry -- TFW you google a problem and find the answer in a post you made yourself
[2026-9-11. : 1:46 am]
Oh_Man -- How can i change my name here to put [TFE] on the end will thr website let me
[2026-9-10. : 6:02 pm]
Zoan -- of course it isn't full understanding. You could ask "is the mechanism by which this counterexample blows up the ONLY mechanism possible for an initial configuration to blow up?"
[2026-9-10. : 5:48 pm]
Zoan -- ppl do it all the time in PDEs
[2026-9-10. : 5:47 pm]
Zoan -- Heinermann
Heinermann shouted: it also didn't solve that problem but hey as long as the investors are pleased
Constructing a counterexample is answering the question: "Is Navier Stokes well posed?" in the negative
[2026-9-10. : 5:44 pm]
NudeRaider -- I only heard about it, didn't any news article, so what did it do then?
[2026-9-10. : 5:43 pm]
Heinermann -- it also didn't solve that problem but hey as long as the investors are pleased
Please log in to shout.


Members Online: Symmetry, Oh_Man