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.
[2024-5-06. : 5:02 am]
Oh_Man -- whereas just "press X to get 50 health back" is pretty mindless
[2024-5-06. : 5:02 am]
Oh_Man -- because it adds anotherr level of player decision-making where u dont wanna walk too far away from the medic or u lose healing value
[2024-5-06. : 5:01 am]
Oh_Man -- initially I thought it was weird why is he still using the basic pre-EUD medic healing system, but it's actually genius
[2024-5-06. : 3:04 am]
Ultraviolet -- Vrael
Vrael shouted: I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
With the modern EUD editors, I don't think they're calculating nearly as many offsets as you might imagine. Still some fancy ass work that I'm sure took a ton of effort
[2024-5-06. : 12:51 am]
Oh_Man -- definitely EUD
[2024-5-05. : 9:35 pm]
Vrael -- I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
[2024-5-05. : 9:35 pm]
Vrael -- that is insane
[2024-5-05. : 9:35 pm]
Vrael -- damn is that all EUD effects?
[2024-5-04. : 10:53 pm]
Oh_Man -- https://youtu.be/MHOZptE-_-c are yall seeing this map? it's insane
[2024-5-04. : 1:05 am]
Vrael -- I won't stand for people going around saying things like im not a total madman
Please log in to shout.


Members Online: DiearAnother, Moose