Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
I need a trigger so that every hit of 1 dammage, a player will get 1 gold, an also only if you hit a building. it has to work with 2 dmg, so u get 2 gold, too. help pls?
You can make a poor damage detection system in GUI, but only if the unit is preplaced in the World Editor.
You'll need to use the Unit State Event - Unit's life becomes greater than 0.
Actually, emperor, it is possible to use a variable in damage detection instead of a preplaced unit . there is a function that says Add Event, which adds an even for a new unit variable in whichtrigger, altho it is not possible to remove it after it has been added. Before I started learning JASS I used this system fairly often, trying not to stack on the trigger tho. My damage detection system rocked ass, I'll give you some details when I get back from work.
Well, its possible for if its in certain damage amounts/% of total health, ut then you need lots of triggers (not to mention time) to do it. So my suggestion: try another way of doing it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.