• 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.

"Number of units in a group" is not dynamic ?

Status
Not open for further replies.
Level 2
Joined
Jun 24, 2004
Messages
6
Hello,
First, i want to excuse me for my bad english because i am french.
In my new campaign "The fall of Nùmenor : Akallabeth", at the beginning of the chapter 2, a new quest must be completed when we have killed a group of ennemy units. I have so create a new group at the "initialization" and i want that the quest were completed when "number of units in this group" become 0.
But i realize that the "number of units in this group" does not decrease when we kill the ennemies. Is it a bug or is it normal ?
Thanks ( and congratulation if you understand )
 
Level 13
Joined
May 5, 2004
Messages
1,330
wait a mom, writing the trigger

btw prob your problem is that you said "number of units is 0" -> you have to use a boolean comparison" -> "Unit Group - Units of Unit group Are Dead" Equal To True

trigger example

Trigger01
Events
Unit - A unit owned by [Here The Player that owns the units] Dies
Conditions
(All units of [Here the group (variable)] are dead) Equal to True
Actions
-> Following Actions


btw your english is not bad, it's quite good
 
Level 2
Joined
Jun 24, 2004
Messages
6
Thanks,
I was mistaken because my trigger looked like :
Events
Unit - A unit owned by [Here The Player that owns the units] Dies
Conditions
Number of Units in (variable) is Equal to 0
Actions
-> Following Actions

but when a unit die, it don't disappear from his group.
I had not made map for a long time and i didn't remember this boolean comparison existed.
Thx
 
Status
Not open for further replies.
Top