Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Spawning on an attack?
Spawning on an attack?
May 22 2013, 7:58 pm
By: Omegwavex  

May 22 2013, 7:58 pm Omegwavex Post #1



I've seen this done in quite a few maps.
An example would be a reaver attacks a goliath, as soon as the scarab hits the goliath and explodes, it would spawn some wraiths to do additional damage. How is this done? Might not be a good example due to the possibility of just " 2 players bring" blahblahblah. Create wraiths.
Just for a preferance of like, a gaurdian, or a vulture or something.



None.

May 23 2013, 1:04 am Roy Post #2

An artist's depiction of an Extended Unit Death

Moved to the SC1 UMS Assistance forum.

In short, there isn't a straightforward way (that I know, at least).

In order to have a true system that functions off of damage, you'd need to either use a Virtual HP system or use EUDs to detect HP. I wouldn't recommend the EUD route unless you have some strict control of units in your map.

Like you already mentioned, there are ways to fake this behavior depending on the scenario, such as detecting when a Scarab is near an enemy unit. If the attacking unit is preplaced, you can use EUDs to detect when they attack based on the Attack Cooldown byte in the unit struct (more information on unit EUDs).

If you can use a Virtual HP system in your map, that would likely be the most elegant solution to detect through triggers when units are attacked.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[03:20 am]
Symmetry -- Dang I'm up to 155 minerals gambling really pays off guys
[2026-10-11. : 6:02 am]
Donald -- Samase
[2026-10-09. : 2:53 am]
Mr.BurnLiquid -- Symmetry
Symmetry shouted: I'll check it out this weekend!
Thanks
[2026-10-09. : 2:47 am]
Symmetry -- I'll check it out this weekend!
[2026-10-09. : 2:40 am]
Mr.BurnLiquid -- Symmetry
Symmetry shouted: Another map maker? Damn we really ARE back
I invite you to try out the map I modified. I don't have the creativity to create maps from scratch, but I do have the know-how to modify existing ones; my project is to tweak community campaigns (specifically those with errors—to make them playable.
[2026-10-09. : 2:27 am]
Symmetry -- Another map maker? Damn we really ARE back
[2026-10-09. : 1:51 am]
Mr.BurnLiquid -- Ultraviolet
Ultraviolet shouted: Mr.BurnLiquid actually yeah though I wasn't really saying it to narc on you. It just caught me off guard because I don't usually see it (because it's against the rules) "The avatar may not be bigger than 150x150 pixels". Kinda silly that it relies on users to be well behaved rather than just limiting the dimensions on uploads :lol:
Now that I wanted to change my avatar, the error image is showing up, haha.
[2026-10-09. : 1:34 am]
Mr.BurnLiquid -- Ultraviolet
Ultraviolet shouted: Mr.BurnLiquid actually yeah though I wasn't really saying it to narc on you. It just caught me off guard because I don't usually see it (because it's against the rules) "The avatar may not be bigger than 150x150 pixels". Kinda silly that it relies on users to be well behaved rather than just limiting the dimensions on uploads :lol:
Mr.BurnLiquid
Mr.BurnLiquid shouted: Ultraviolet Thanks; I'm new to the site and a Spanish speaker. I must have missed the part where it was prohibited—I'll change it now.
I invite you to try out a mission I'm modifying from *StarCraft Reversed*; I'm trying to make it more playable and challenging.
[2026-10-09. : 1:33 am]
Mr.BurnLiquid -- Ultraviolet
Ultraviolet shouted: Mr.BurnLiquid actually yeah though I wasn't really saying it to narc on you. It just caught me off guard because I don't usually see it (because it's against the rules) "The avatar may not be bigger than 150x150 pixels". Kinda silly that it relies on users to be well behaved rather than just limiting the dimensions on uploads :lol:
Thanks; I'm new to the site and a Spanish speaker. I must have missed the part where it was prohibited—I'll change it now.
Please log in to shout.


Members Online: Ultraviolet, Oh_Man, City