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!
This only works if a Player has only 1 Unit with this skill.
INITSample
Events
Map initialization
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
Trigger - Add to Sample <gen> the event (Unit - (Picked unit) Takes damage)
Sample
Events
Conditions
(Level of <SKILLNAME> for (Damage source)) Greater than 0
Actions
Set Skill_DamageDealt[(Player number of (Owner of (Damage source)))] = (Skill_DamageDealt[(Player number of (Owner of (Damage source)))] + (Damage taken))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Skill_DamageDealt[(Player number of (Owner of (Damage source)))] Greater than or equal to <DAMAGEAMOUNT>
Then - Actions
Do your stuff...
Set Skill_DamageDealt[(Player number of (Owner of (Damage source)))] = 0.00
Else - Actions
If you want to have multiple units per player to have this skill you have to work with Custom Value of Unit:
(NOTE: A Unit can only have ONE Custom Value, so you can't use it for other triggers)
Unit - Set the custom value of (Damage source) to ((Custom value of (Damage source)) + (Integer((Damage taken))))
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.