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

[Trigger] Hero Arena Problem

Status
Not open for further replies.
Level 20
Joined
Oct 21, 2006
Messages
3,230
Duh...
It's a double post, but I just can't get the trigger to work!


I tried the following:

Events:
Unit - A unit dies

Conditions:
(Number of units in "Team1Left") Equal to 0 OR (Number of units in "Team2Right") Equal to 0

Actions:
Trigger - Turn on "Next Trigger" (teleport trigger) <gen>

I think the problem is that the trigger is counting dead units also. So is there any trigger which will count living units only for a specified player group?
 
Level 20
Joined
Oct 21, 2006
Messages
3,230
Events:
Unit - A unit Dies

Conditions:
((Matching unit) is dead) Equal to False

Actions:
Trigger - Turn on "Next Trigger" <gen>

I really think that I misunderstood something.
---

Does it now work like I wanted in my first post?
 
Last edited:
Level 20
Joined
Oct 21, 2006
Messages
3,230
Trigger for removing players from Unit Groups:

Events:
Unit - A unit Dies

Conditions:
((Dying unit) is in Team1Left) Equal to True

Actions:
Unit Group - Remove (Dying unit) from Team1Left


Trigger for moving remaining units to the shop zone and end round:

Events:
Unit - A unit Dies

Conditions:
((Number of units in Team1Left) Equal to 0) or ((Number of units in Team2Right) Equal to 0)

Actions:
Unit Group - Pick every unit in Team1Left and do (Unit - Move (Picked unit) instantly to (Center of Shop Zone <gen> ))
Unit Group - Pick every unit in Team1Left and do (Unit - Move (Picked unit) instantly to (Center of Shop Zone <gen> ))

---

It works now?
 
Status
Not open for further replies.
Top