Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Detecting death of that one specific, preplaced unit?
Detecting death of that one specific, preplaced unit?
Nov 16 2026, 3:14 pm
By: SPyro_Malin  

Nov 16 2026, 3:14 pm SPyro_Malin Post #1



Hello!
I have idea of making a short campaign and I'm making a secret.
Secret becomes available if a unit which you always have in starting army survives entire campaign.

Let's say it's a Ghost.
The problem are maps which would allow player to train more Ghosts. I don't know how to track that specific Ghost after entering and exiting transports.

1. I don't want this Ghost to be marked or suspicious in any way. This is meant to be a secret thing which player is meant to even discover on accident or by listening to small hints.
So no swapping him for Hero Ghost variants.

2. I want him to be playable, controllable unit.
So no leaving him at base as ally.

3. I know that preplaced units has their own ID which is easy to read, but I don't think we can use it in any way without EUDs? I would like to avoid using EUDs if possible.

I noticed that rescued units don't have exactly the same properties (splash damage). Would I be able to detect that Ghost as rescued from player of the same colour while also having other Ghosts built during the mission without EUDs?



None.

Nov 18 2026, 3:30 pm ihjel Post #2



Rescued units retain some upgrades from their donor player (movement/attack speed upgrades at least, not energy and sight range). So you could detect if a specific rescued vulture had been killed if you disabled vulture speed upgrade for the human player and then speed tested every vulture at the end.

You could also have a preplaced disabled unit sprite unit which makes it have no hit box, and then enable it, check at the end whether there is such a unit that can be moved on top of another unit. Should note that with a ghost in particular this produces a rock sprite and does crash in 1.16.1 but not in remaster. Proof of concept attached:

Triggers


Attachments:
ghost test.scx
Hits: 1 Size: 37.78kb

Post has been edited 3 time(s), last time on Nov 18 2026, 4:26 pm by ihjel.



None.

Nov 18 2026, 5:24 pm NudeRaider Post #3

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

You could have a tiny location always follow the ghost but due to the tiny hitbox it could probably escape it. It will certainly get messed up when stacked with other ghost (e.g. due to unborrowing of a spider mine, while a group of units is above) or enters a bunker or dropship with other units.

So if you want it actually reliable you'll probably have to resort to EUDs.




Nov 18 2026, 6:22 pm SPyro_Malin Post #4



The location following that specific unit was my first thought, but terran ability to enter and exit thing ruins it xD.
I really don't want to go into EUDs, but I guess I'll have to lol.

ihjel, god damn what you did there is genius.
It still an issue of Ghost which other units can pass through (but he paths normally, that's interesting) and that doodad crashing earlier versions.

It's not perfect, but your solution really made me think more creatively. Thanks for sharing that little map, it really is helpful.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[02:53 am]
Ultraviolet -- :wob:
[2026-11-27. : 10:21 am]
Zycorax -- :wob:
[2026-11-27. : 9:46 am]
UndeadStar -- :wob:
[2026-11-27. : 3:45 am]
Symmetry -- :wob:
[2026-11-24. : 7:28 pm]
Mr.BurnLiquid -- Thanks
[2026-11-24. : 7:17 pm]
NudeRaider -- you can't, just edit.
[2026-11-24. : 6:33 pm]
Mr.BurnLiquid -- Hi, how do I delete posts I’ve made? I was practicing with map editing or at least working with existing maps but I’d like to delete them; I’ve since refined my style and want to start fresh with new posts.
[2026-11-21. : 7:14 pm]
Symmetry -- so it shows the version history of temple siege
[2026-11-21. : 7:13 pm]
Symmetry -- I think he's trying to find the most popular versions of maps
[2026-11-21. : 9:24 am]
UndeadStar -- yes it helped...but I didn't understand what the picture was about lol
Please log in to shout.


Members Online: NudeRaider