• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[Trigger] Some help on a Trigger

Status
Not open for further replies.
Level 3
Joined
May 1, 2007
Messages
34
Got a question about triggering guys, basicly what I want to do is:

- Every xx (I know how to set that part) seconds decrease the life of a unit by xx ammount
- (Optional) If possible, make the seconds/ammount of hp drained vary

I'm sorry if its very simple but I can't seem to do it. :emote_scared:

So help would be appreciated, this is for a campaign map i'm doing , maybe releasing it, or maybe just for 'training' my skills , if released credits will be given, and also, when I can, i'll give rep np. :emote_clap:

And finnaly, if this is on the wrong section i'm sorry, kinda undecided if put it on request or triggers :/
 
Last edited:

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,202
Requests are for recources that you can not make because eithor.
  1. They require tools that are above your price range
  2. They require high tallents (like modeling or skinning)
Any trigger questions go in the trigger sections.

You basicly need to add the unit you want's life reduced to a group and every X seconds (game event or timer) set its life equal to its life - (amount to damage). By using a custom values on the unit you can say how many times it is to be damaged and by reducing the number by one every time it is damaged untill it is 0 you can detect when to remove it from the group.

In JASS this is only 1 minutes work
 
Status
Not open for further replies.
Top