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.
[10:02 pm]
Symmetry -- I was really just figuring out how to compile
[10:02 pm]
Symmetry -- I didn't make it do anything
[09:17 pm]
Ultraviolet -- hell yeah. did you have trouble making the button functional, or just haven't gotten there yet?
[08:29 pm]
Symmetry -- I made the marine shoot lasers and gave the medic a nonfunctional button
[08:07 pm]
Ultraviolet -- Symmetry
Symmetry shouted: I did my first EUD thing today. Feels like me finding arsenal at age 8 again
haha for sure. in some ways it's even more exciting because you can play EUD maps on regular battle.net, don't need to convince someone to download your mod to play with you. what did you do?
[06:47 pm]
Symmetry -- I did my first EUD thing today. Feels like me finding arsenal at age 8 again
[03:20 pm]
l)ark_ssj9kevin -- le reddit
[02:55 pm]
Moose -- >reddit :rip2:
[02:07 pm]
IskatuMesk -- reddit 💀
Please log in to shout.


Members Online: NudeRaider