- Joined
- Jul 23, 2018
- Messages
- 243
Hello everyone,
Thank you for reading this thread and helping me with my problems for the past few months and today. I made 2 triggers, one for adding units taking damage to the group when the damage source carries Deathblade. The second trigger adds damage to the item carrier when the units taking damage in the group die. However, the unit group didn't have any unit at all. Can anyone please explain why? I'm currently using Bribe's GUI Unit Event v2.5.2.0 and Damage Engine 3A.0.0.0 and 3.8.0.0
I did some research around Hive Workshop and found out unit group array with " size 1" default will cause problems. However, the way for fixing is by using jass and I do quite poorly with jass, so I posted this thread for help. All helps are appreciate.
Thank you for reading this thread and helping me with my problems for the past few months and today. I made 2 triggers, one for adding units taking damage to the group when the damage source carries Deathblade. The second trigger adds damage to the item carrier when the units taking damage in the group die. However, the unit group didn't have any unit at all. Can anyone please explain why? I'm currently using Bribe's GUI Unit Event v2.5.2.0 and Damage Engine 3A.0.0.0 and 3.8.0.0
-
Deathblade Buff
-
Events
-
Game - DamageEvent becomes Equal to 1.00
-
-
Conditions
-
(DamageEventSource has an item of type Deathblade) Equal to True
-
-
Actions
-
-------- This trigger is for identifying the enemy who has taken damage from the damage source --------
-
Set CV = (Custom value of DamageEventSource)
-
-------- The unit group array is for adding who takes damage to the group for each item carrier --------
-
Unit Group - Add DamageEventTarget to DeathBladeGroup[CV]
-
-------- This buff is for iddentifying who takes damage --------
-
Unit - Add Deathblade (Buff) to DamageEventTarget
-
Game - Display to (All players) the text: (Number of units in Deathblade group is + (String((Number of units in DeathBladeGroup[CV]))))
-
-
-
Deathblade Gain
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
(Level of Deathblade (Buff) for (Dying unit)) Equal to 0
-
-
Actions
-
Set CV = (Custom value of (Killing unit))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Dying unit) is in DeathBladeGroup[CV]) Equal to True
-
-
Then - Actions
-
Item - Set charges remaining in (Item carried by (Killing unit) of type Deathblade) to ((Charges remaining in (Item carried by (Killing unit) of type Deathblade)) + 20)
-
Game - Display to (All players) the text: (Give 20 more attack damage to + (Name of (Killing unit)))
-
Unit Group - Remove (Dying unit) from DeathBladeGroup[CV]
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in DeathBladeGroup[CV]) Equal to 0
-
-
Then - Actions
-
Custom script: call DestroyGroup(udg_DeathBladeGroup[udg_CV])
-
-
Else - Actions
-
-
-
Else - Actions
-
Game - Display to (All players) the text: fail
-
-
-
-
Last edited: