Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Help with a trigger!
Help with a trigger!
This topic is locked. You can no longer write replies here.
Aug 28 2009, 2:46 am
By: trillion  

Aug 28 2009, 2:46 am trillion Post #1



Is it possible to subtract a unit's health? An example of that is a map called Rush 1 by tuxedo-templar. I'm making a map, and I made it so that whenever you create a marine, It will create an explosion on the player you want to hit. I already did that, but I just don't know how you subtract a unit's health whenever I do that. its a really important part in my map so it would be REALLY helpful if you help me!

Post has been edited 1 time(s), last time on Aug 28 2009, 2:52 am by trillion.



None.

Aug 28 2009, 3:15 am darksnow Post #2



well without euds, you've have to go with modifying a units health, using percentages.

Correction: You would have to modify unit health if you used EUDs, as they can merely detect the health of specific units.

Post has been edited 1 time(s), last time on Aug 28 2009, 2:40 pm by Kaias. Reason: correction of information



None.

Aug 28 2009, 3:45 am rockz Post #3

ᴄʜᴇᴇsᴇ ɪᴛ!

You have a few methods. The first has been mentioned. EUDs, but that's way out of your league. If you want to try them, I can't stop you, but there's plenty of information in the wiki and in UMS assistance. And WITH EUDs, you'll still have to go with modifying a units health, using percentages.

The second is VHP. Likewise this is in the wiki. Rush used a method of VHP where there are 5 computers, each with a different level of virtual hit points. After yellow suffers a certain number of virtual damage stored in a death counter, the dc is reset, and the yellow unit is given to white. If you do damage to multiple units, it doesn't work perfectly but it still works.

The third, and I think the best option, is Direct Damage System (DDS). Look at it here.

The fourth, is to ignore the whole "subtract damage" and set health to either 1% (very rarely will it heal the unit) or kill it outright.

Post has been edited 1 time(s), last time on Sep 4 2009, 11:03 am by NudeRaider. Reason: It's DDS FYI :P



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Aug 28 2009, 2:49 pm trillion Post #4



Okay! Thanks guys! I'll try them right away! :bye1:



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[10:41 am]
ManCubuS -- Seems like something's broken regarding the site then. Sadge...
[07:36 am]
Oh_Man -- have i ever told u guys my SC2 pro-gamer story
[2026-7-26. : 11:30 pm]
Ultraviolet -- That's strange, it looks like you targeted the base image file (sometimes people make the mistake of just using the imgur page link which doesn't work for embedding) but it still didn't work it sounds like.
[2026-7-26. : 3:34 pm]
ManCubuS -- Used : " [img=https://i.imgur.com/gpOjTuD.jpeg] "
[2026-7-26. : 3:28 pm]
ManCubuS -- Even tried with imgur, doesn't attach.
[2026-7-26. : 3:14 pm]
ManCubuS -- I should try a workaround, thanks! Sadly imgur is blocked in my country for some unknown reason.
[2026-7-26. : 3:05 pm]
NudeRaider -- I think SEN has trouble with https or hotlinking is forbidden. It certainly is nothing about the size, it just fails to get any size. You can get it working if you use imgur and include the actual image link for the img tag. Like this: [img=https://i.imgur.com/ddYqXZa.jpeg]
[2026-7-26. : 11:15 am]
ManCubuS -- Hey fellas! Anyone knows why when I try to upload an image it says "failed to get image size"? I even tried making it so small. Imgur isn't working here and I tried postimg no luck.
[2026-7-23. : 6:40 am]
Oh_Man -- true
[2026-7-23. : 3:16 am]
RIVE -- Still annoyed there was never a trigger to stop or pause wavs.
Please log in to shout.


Members Online: Zycorax