-
Events
-
Unit - A unit Learns a skill
-
-
Conditions
-
(Learned Hero Skill) Equal to Wracking Pains
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Wracking Pains for (Triggering unit)) Equal to 1
-
-
Then - Actions
-
Set sDoBReals[3] = 0.02
-
Trigger - Turn on Wracking Attack <gen>
-
Skip remaining actions
-
-
Else - Actions
-
Do nothing
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Wracking Pains for (Triggering unit)) Equal to 2
-
-
Then - Actions
-
Set sDoBReals[3] = 0.05
-
Skip remaining actions
-
-
Else - Actions
-
Do nothing
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Wracking Pains for (Triggering unit)) Equal to 3
-
-
Then - Actions
-
Set sDoBReals[3] = 0.09
-
Skip remaining actions
-
-
Else - Actions
-
Do nothing
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Wracking Pains for (Triggering unit)) Equal to 4
-
-
Then - Actions
-
Set sDoBReals[3] = 0.14
-
Skip remaining actions
-
-
Else - Actions
-
Do nothing
-
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Wracking Pains for (Triggering unit)) Equal to 5
-
-
Then - Actions
-
Set sDoBReals[3] = 0.20
-
Skip remaining actions
-
-
Else - Actions
-
Do nothing
-
-
-
-
Events
-
Unit - A unit Is attacked
-
-
Conditions
-
(Attacking unit) Equal to Disciple of Blightcrawler 0103 <gen>
-
-
Actions
-
Trigger - Add to Wracking Damage <gen> the event (Unit - sDoBUnits[3] Takes damage)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Triggering unit) Equal to sDoBUnits[3]
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
sDoBReals[6] Greater than 1.00
-
-
Then - Actions
-
Set sDoBReals[6] = 1.00
-
-
Else - Actions
-
Set sDoBReals[6] = (sDoBReals[6] + sDoBReals[3])
-
-
-
-
Else - Actions
-
Set sDoBUnits[3] = (Attacked unit)
-
Set sDoBReals[6] = 0.00
-
-
-
-
Events
-
Conditions
-
Actions
-
Set sDoBIntegers[5] = ((Integer((Damage taken))) x sDoBIntegers[6])
-
Set sDoBReals[5] = ((Damage taken) x sDoBReals[6])
-
Unit - Cause Disciple of Blightcrawler 0103 <gen> to damage (Triggering unit), dealing sDoBReals[5] damage of attack type Hero and damage type Normal
-
Special Effect - Create a special effect attached to the chest of sDoBUnits[3] using Abilities\Weapons\LocustMissile\LocustMissile.mdl
-
Special Effect - Destroy (Last created special effect)
-
The hero attacks a target,
trigger checks if the target is the same as the last attacked target,
if target is the same, takes in the damage dealt, and dishes out a fraction of that damage again.
This is a stackable damage effect, that stacks up to 100% additional damage.
In game, when my hero attacks for the second time, the game will just up and shut down. My assumption is that this is in regards to the "Add event to trigger, xUnit takes damage."
But I've seen it done it triggers before, what am I doing wrong?