Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Is it possible to make illusions deal damage somehow?
Is it possible to make illusions deal damage somehow?
Mar 31 2025, 2:42 pm
By: SPyro_Malin  

Mar 31 2025, 2:42 pm SPyro_Malin Post #1



Just like in title, is it possible to make hallucinated units deal damage? Preferably lower than normal units, but anything works really.
There is so much weird bs one can do with EUDs, maybe this is a thing as well?



None.

Apr 4 2025, 1:00 am Sie_Sayoka Post #2



Not without EUDs since you would need to either detect when the hallucination is attacking or disable the thing that prevents hallucinations doing damage. With the latter I'm unsure how the interaction works.

There are a few things I can think of that would allow you to do it (poorly) without EUDs but they would only be useful in very specific circumstances. What did you need this for in your map?



None.

Apr 4 2025, 2:31 pm SPyro_Malin Post #3



I would like to achieve something like in SC2 LotV mission when you have waves of 'terrazine ghost' enemies - look similar to normal units, but have less hp and deal less damage so you can actually swarm with them without instakilling the player.

Some of enemies being normal, some being weaker (Hallucinations taking double damage, disappearing in puff of smoke and being destroyed by spells is perfect).
I know you can edit unit stats with EUDs, but I am not sure you can make them die like Hallucinations do?

These would be spawned with triggers.

If you have EUD and nonEUD ideas I am all ears. I prefer to not use them if I don't have to, but adding a working attack onto Hallucinated units would be the best if it's possible with EUDs.
I really like them dying from spells and with hallucination animation.



None.

Apr 4 2025, 7:24 pm NudeRaider Post #4

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

Maybe it's easier to take real units and make them look like hallucinations with EUDs?




Apr 4 2025, 9:10 pm Sie_Sayoka Post #5



For what you want it will have to be with EUDs. We will have to address each requirement separately as there isn't a clean 1 size fits all solution.
  1. Different stats than other units.
  2. Puff of smoke when killed.
  3. Spells instantly kill unit.
  4. If hallucinated, allow to deal damage.

NudeRaider's suggestion of using a different unit type is a good one and one I would recommend as being the easiest to implement. It will only have the first requirement but you can change the draw function of the unit's image to make it appear blue or transparent to distinguish it from 'normal' units.

With CUnit triggers you can fulfill the other requirements. Second requirement can be done by preventing the unit from dying and removing it then placing a hallucination death sprite in its location. This will only leave the 3rd requirement unfulfilled but this too can be done for some spells that leave status effects like ensnare but not for things such as EMP probably.

The other way would be to detect when a hallucinated unit attacks then apply damage, either directly to the targeted unit's hp with triggers or indirectly through some sort of DDS or a specific targeting system. Keep in mind that hallucinated units take double damage and do not have unit size received damage modifiers.

You can ask on the Discord and someone more versed in EUD triggers will help you out if you run into any trouble trying to implement things.



None.

Apr 5 2025, 11:32 am SPyro_Malin Post #6



Thanks for replies I will try to tinker with it in the free time, now that I know where and what to look for it should be doable.

I did not know that hallucinated units don't have unit size received damage modifiers.
I also did not know this preventing unit deaths thingy, this is such a game changer and has so many applications in other things I wanted to do in the past! Thank you so much for mentioning it.



None.

Apr 5 2025, 2:19 pm Sie_Sayoka Post #7



I forgot to mention that preventing deaths doesn't always work for melee. Hallucinations also do not have armor.

Also instead of removing the unit and replacing it with a smoke puff it might be better to just enable the hallucination flags and let it die. This might work but what do I know.

Post has been edited 1 time(s), last time on Apr 5 2025, 11:00 pm by Sie_Sayoka.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[12:07 am]
Vrael -- NudeRaider
NudeRaider shouted: Vrael ranting still is though
you're a gentleman and a scholar, thank you
[10:07 pm]
NudeRaider -- ya why phone people when you can just write letters
[09:37 pm]
IskatuMesk -- I have never and will never own a phone
[09:15 pm]
NudeRaider -- Vrael ranting still is though
[09:14 pm]
ClansAreForGays -- anticapitalism isnt edgy anymore
[03:31 pm]
Vrael -- it only costs 50% of my post-tax salary for life and in return I get to also become a drone whose sole purpose is CAPITALISM
[03:30 pm]
Vrael -- pssht, you're still using a phone? I just record 100% of my life using my ElonBrainChip
[02:13 pm]
NudeRaider -- bro I don't go anywhere without my phone to record anything significant
[01:28 pm]
Vrael -- Zoan
Zoan shouted: not if u wer there
id say even if you were there its tricky, human memory can be very faulty
[2026-4-12. : 11:55 pm]
Zoan -- not if u wer there
Please log in to shout.


Members Online: jy2413804, giddyroute59