Good day to you, again!
Please, can someone help me with the following problem I have? In one trigger, which is run without "event" and "conditions" (it is run by "Run trigger" function) and only has "actions", I have created actions where units are being created. It is about 15 units in total. After each "Unit - Create units" I have placed an "action" "Add last created unit to unit group", while at the case of one specific unit, it is meant to be added to two groups (I have this pictured in the image I have attached to this message).
Then, there is an another trigger, which means to recognize if all units in the respective unit groups are dead (if the unit group is empty). If they are, then respective actions should take place.
Problem is that those actions in the second trigger are not working, while everything else is. I have tried to replace the condition in the second trigger by "Unit-type comparison", and set it to "Unit-type of dying unit is Quilboar Brute", in which case it is working. Therefore, I think that the triggers are not recognizing the existence of the units in my unit groups.
I am looking forward to your replies.
P.S.: My apologies, all creatures are being added to two Unit Groups.
Please, can someone help me with the following problem I have? In one trigger, which is run without "event" and "conditions" (it is run by "Run trigger" function) and only has "actions", I have created actions where units are being created. It is about 15 units in total. After each "Unit - Create units" I have placed an "action" "Add last created unit to unit group", while at the case of one specific unit, it is meant to be added to two groups (I have this pictured in the image I have attached to this message).
Then, there is an another trigger, which means to recognize if all units in the respective unit groups are dead (if the unit group is empty). If they are, then respective actions should take place.
Problem is that those actions in the second trigger are not working, while everything else is. I have tried to replace the condition in the second trigger by "Unit-type comparison", and set it to "Unit-type of dying unit is Quilboar Brute", in which case it is working. Therefore, I think that the triggers are not recognizing the existence of the units in my unit groups.
-
Release Quillboar Brute Wave
-
Events
-
Conditions
-
Actions
-
Trigger - Turn off (This trigger)
-
-------- 1 --------
-
Unit - Create 1 Quillboar Scout for Player 12 (Brown) at (Center of Northern Spawn <gen>) facing 270.00 degrees
-
Unit Group - Add (Last created unit) to Current_Wave
-
Unit Group - Add (Last created unit) to Fleeing_Enemies
-
Unit - Create 1 Quillboar Scout for Player 12 (Brown) at (Center of Eastern Spawn <gen>) facing 180.00 degrees
-
Unit Group - Add (Last created unit) to Current_Wave
-
Unit Group - Add (Last created unit) to Fleeing_Enemies
-
Unit - Create 1 Quillboar Scout for Player 12 (Brown) at (Center of Western Spawn <gen>) facing 0.00 degrees
-
Unit Group - Add (Last created unit) to Current_Wave
-
Unit Group - Add (Last created unit) to Fleeing_Enemies
-
Wait 0.50 seconds
-
-------- 2 --------
-
Unit - Create 1 Quillboar Scout for Player 12 (Brown) at (Center of Northern Spawn <gen>) facing 270.00 degrees
-
Unit Group - Add (Last created unit) to Current_Wave
-
Unit Group - Add (Last created unit) to Fleeing_Enemies
-
Unit - Create 1 Quillboar Scout for Player 12 (Brown) at (Center of Eastern Spawn <gen>) facing 180.00 degrees
-
Unit Group - Add (Last created unit) to Current_Wave
-
Unit Group - Add (Last created unit) to Fleeing_Enemies
-
Unit - Create 1 Quillboar Scout for Player 12 (Brown) at (Center of Western Spawn <gen>) facing 0.00 degrees
-
Unit Group - Add (Last created unit) to Current_Wave
-
Unit Group - Add (Last created unit) to Fleeing_Enemies
-
Wait 0.50 seconds
-
-------- 3 --------
-
Unit - Create 1 Quillboar Brute for Player 12 (Brown) at (Center of Northern Spawn <gen>) facing 270.00 degrees
-
Unit Group - Add (Last created unit) to Boss_Unit_Group
-
Unit Group - Add (Last created unit) to Current_Wave
-
Unit - Create 1 Quillboar Thrower for Player 12 (Brown) at (Center of Eastern Spawn <gen>) facing 180.00 degrees
-
Unit Group - Add (Last created unit) to Current_Wave
-
Unit Group - Add (Last created unit) to Fleeing_Enemies
-
Unit - Create 1 Quillboar Thrower for Player 12 (Brown) at (Center of Western Spawn <gen>) facing 0.00 degrees
-
Unit Group - Add (Last created unit) to Current_Wave
-
Unit Group - Add (Last created unit) to Fleeing_Enemies
-
-------- Other --------
-
Trigger - Turn on Boss Sound <gen>
-
-
-
Victory Cheer Boss
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
((Dying unit) is in Boss_Unit_Group) Equal to True
-
-
Actions
-
Unit Group - Remove (Dying unit) from Boss_Unit_Group
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in Boss_Unit_Group) Equal to 0
-
-
Then - Actions
-
Item - Create Rune of Lesser Healing at (Position of (Dying unit))
-
Wait 0.50 seconds
-
Sound - Play OgreEventCheerUnique <gen> at 100.00% volume, located at (Center of Orc Cheer NE <gen>) with Z offset 0.00
-
Sound - Play OgreEventCheerUnique <gen> at 100.00% volume, located at (Center of Orc Cheer NW <gen>) with Z offset 0.00
-
Sound - Play OgreEventCheerUnique <gen> at 100.00% volume, located at (Center of Orc Cheer SE <gen>) with Z offset 0.00
-
Sound - Play OgreEventCheerUnique <gen> at 100.00% volume, located at (Center of Orc Cheer SW <gen>) with Z offset 0.00
-
-
Else - Actions
-
Do nothing
-
-
-
-
I am looking forward to your replies.
P.S.: My apologies, all creatures are being added to two Unit Groups.
Last edited: