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.
[2026-4-29. : 2:00 am]
l)ark_ssj9kevin -- hi jamal
[2026-4-29. : 12:18 am]
Heinermann -- memes
[2026-4-28. : 10:08 pm]
NudeRaider -- skeet-skeet, motherfucker
[2026-4-28. : 4:24 pm]
Vrael -- NudeRaider
NudeRaider shouted: Vrael boy, if you're not careful I'll moderate your sorry ass too!
gotta catch me first! skeet skeet skeet
[2026-4-26. : 1:58 pm]
lil-Inferno -- ya
[2026-4-25. : 11:50 pm]
JamaL -- Glad to see SEN will never die. Kudos to whoever is paying the hosting fees these days!
[2026-4-25. : 3:37 pm]
NudeRaider -- (-.-,)
[2026-4-25. : 3:35 pm]
Zoan -- ;o I thought that was a monkey emote
[2026-4-25. : 3:34 pm]
Zoan -- :mods:
[2026-4-25. : 3:34 pm]
Zoan -- :mods"
Please log in to shout.


Members Online: anoeth47, DarkenedFantasies