Unit Life Trigger (simple)

Templarion

Member
Reaction score
8
I have RoC and I am using RoC's world editor.

I am trying to make six special units to die automatically when their HP drops to 1. Usually it is because they have been poisoned or diseased.

However this trigger ain't working and I have triple checked that "Marine 0024 <gen>" variable.

Kill Trigger
Events
Unit - Marine 0024 <gen>'s life becomes Less than or equal to 1.00
Conditions
Actions
Unit - Kill Marine 0024 <gen>

Why this trigger does not work? What should I do to make it work?
 

vypur85

Hibernate
Reaction score
803
Wouldn't units die automatically when their life reaches a very low amount (ie less than 1)? How did you know if the trigger did not work? Did the unit not die? Try 50.00 instead and see if the trigger works. If it doesn't, then I'm not sure what's wrong. The trigger seems fine to me. Also, try adding a game message in the trigger to make sure if the trigger runs.
 

iPeez

Hot food far all world wide!
Reaction score
165
I have RoC and I am using RoC's world editor.

I am trying to make six special units to die automatically when their HP drops to 1. Usually it is because they have been poisoned or diseased.

However this trigger ain't working and I have triple checked that "Marine 0024 <gen>" variable.



Why this trigger does not work? What should I do to make it work?


Those this only equal to this Marine or every Marine?
Every Marine -

"Unit type equal to marine"
 

Templarion

Member
Reaction score
8
This is getting interesting.

I tried value 50:
When units life dropped slowly (because of disease) to 50 it INSTANTLY dropped to 1 but unit did not die.

I have only a few other triggers and I am sure that they don't cause this because they don't mess with units life or vulnerability or anything like that.

For some reason trigger does not seem to kill the unit but just drop it's health to 1. WtF?! Units CAN be killed by anyone. I tried that ingame. After their HPs are just 1 they take one hit and die.

iPeez, it is only about this special marine and there are only 2 marines in the map so I am pretty darn sure about the correct one. Thanks for the try anyway.
 

Lightstalker

New Member
Reaction score
55
Even - [Your unit]'s life becomes less than 2
Condition - Unit-type of triggering unit is equal to [your unit]
Action - Kill triggering unit
 

Templarion

Member
Reaction score
8
Lightstalker, why should I add there a condition?

I would try it if I could but I am not at my home computer at the moment. However, I think it would not make a difference (I will try it when I get back to home). Thanks for a try, anyway.
 

Lightstalker

New Member
Reaction score
55
Lightstalker, why should I add there a condition?

I would try it if I could but I am not at my home computer at the moment. However, I think it would not make a difference (I will try it when I get back to home). Thanks for a try, anyway.

Woops. Didn't mean to put the condition there...

It works on mine. I just tried it.
 

Templarion

Member
Reaction score
8
For some strange reason it doesnt work.

Trigger only drops health to 1 and stays there. It doesnt kill unit. Maybe I should try to make other units die or try the trigger in other map...
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top