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.
[03:27 am]
m.0.n.3.y -- Maybe because it's an EUD map?
[03:27 am]
m.0.n.3.y -- Can't upload maps to the DB. Error says "The action you have performed caused an Error". Any word?
[2024-4-25. : 7:46 am]
RIVE -- :wob:
[2024-4-22. : 6:48 pm]
Ultraviolet -- :wob:
[2024-4-21. : 1:32 pm]
Oh_Man -- I will
[2024-4-20. : 11:29 pm]
Zoan -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
[2024-4-20. : 8:20 pm]
Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
[2024-4-20. : 8:20 pm]
Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
[2024-4-20. : 8:18 pm]
Ultraviolet -- Oh_Man
Oh_Man shouted: lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
oh ya I saw that when Armo posted it on Discord, pretty crazy
[2024-4-20. : 8:09 pm]
Vrael -- thats less than half of what I thought I'd need, better figure out how to open SCMDraft on windows 11
Please log in to shout.


Members Online: jjf28