• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] Killing 1 unit from unit group.

Status
Not open for further replies.

SpasMaster

Hosted Project: SC
Level 24
Joined
Jan 29, 2010
Messages
1,986
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