• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Solved] Killing 1 unit from unit group.

Status
Not open for further replies.

SpasMaster

Hosted Project: SC
Level 23
Joined
Jan 29, 2010
Messages
1,969
Hello guys!

Does anyone know how to damage/kill a single unit within a group/region.
Pick Random Unit from Unit group does not seem to do the trick.

Suggestions?

Note: The trigger is simple. A unit starts the effect of an ability ---> Kill a unit from Unit group.
[trigger=""]Shadow Power Consume Soul
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Shadow Power
Actions
Set Soul_Group = (Units in SoulsLoc <gen>)
Unit - Cause |c00f6df3eKergaloth|r 0922 <gen> to damage (Random unit from Soul_Group), dealing 10.00 damage of attack type Spells and damage type Normal
[/trigger]

This does NOT work. (Units in the unit group have 2 health)
 
Status
Not open for further replies.
Top