SpasMaster
Hosted Project: SC
- Joined
- Jan 29, 2010
- Messages
- 1,986
Hello, everyone!
I am trying to make an ability that has the following effect:
"Instantly deals moderate damage to the target and leaves a debuff on it. The debuff lasts for 8 seconds. Any damage dealt to the target while it has the debuff will accumulate. After the debuff ends, the target will take 50%/100% of the acumulated damage."
Basically the only thing that doesn't work is that no damage is dealt when the debuff is gone.
I will post triggers below and I just want to mention that only One unit will use this ability, so it doesn't need to be MUI. There is a wait action, don't freak out. The spell has 100 seconds cooldown cause it's an ultimate.
Help will be appreciated.
Triggers:
P.S. I will be able to respond tommorow.
I am trying to make an ability that has the following effect:
"Instantly deals moderate damage to the target and leaves a debuff on it. The debuff lasts for 8 seconds. Any damage dealt to the target while it has the debuff will accumulate. After the debuff ends, the target will take 50%/100% of the acumulated damage."
Basically the only thing that doesn't work is that no damage is dealt when the debuff is gone.
I will post triggers below and I just want to mention that only One unit will use this ability, so it doesn't need to be MUI. There is a wait action, don't freak out. The spell has 100 seconds cooldown cause it's an ultimate.
Help will be appreciated.
Triggers:
[trigger="Initially ON"]Mutilate
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Mutiliate
Actions
Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing ((150.00 x (Real((Level of Mutiliate for (Triggering unit))))) + (2.00 x (Real((Agility of (Triggering unit) (Include bonuses)))))) damage of attack type Spells and damage type Normal
Trigger - Turn on Mutiliate Damage <gen>
Wait 7.50 seconds
Trigger - Turn off Mutiliate Damage <gen>
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Target unit of ability being cast) has buff Mutilate ) Equal to True
Then - Actions
Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing ((0.50 x (Real((Level of Mutiliate for (Triggering unit))))) x Mutiliate_DamageDealt) damage of attack type Spells and damage type Normal
Set Mutiliate_DamageDealt = 0.00
Special Effect - Create a special effect attached to the origin of (Target unit of ability being cast) using Objects\Spawnmodels\Orc\OrcSmallDeathExplode\OrcSmallDeathExplode.mdl
Special Effect - Destroy (Last created special effect)
Else - Actions
[/trigger]
[trigger="Initially ON"]Mutiliate Detect
Events
Unit - A unit enters (Playable map area)
Conditions
Actions
Trigger - Add to Mutiliate Damage <gen> the event (Unit - (Entering unit) Takes damage)
[/trigger]
[trigger="Initially ON"]Mutiliate Check
Events
Map initialization
Conditions
Actions
Set Mutilate_Group = (Units in (Playable map area))
Unit Group - Pick every unit in Mutilate_Group and do (Trigger - Add to Mutiliate Damage <gen> the event (Unit - (Picked unit) Takes damage))
Custom script: call DestroyGroup(udg_Mutilate_Group)
[/trigger]
[trigger="Initially OFF"]Mutiliate Damage
Events
Conditions
And - All (Conditions) are true
Conditions
(Unit-type of (Damage source)) Equal to |c00ff3366Marauder|r
((Triggering unit) has buff Mutilate ) Equal to True
Actions
Set Mutiliate_DamageDealt = (Mutiliate_DamageDealt + (Damage taken))
[/trigger]
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Mutiliate
Actions
Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing ((150.00 x (Real((Level of Mutiliate for (Triggering unit))))) + (2.00 x (Real((Agility of (Triggering unit) (Include bonuses)))))) damage of attack type Spells and damage type Normal
Trigger - Turn on Mutiliate Damage <gen>
Wait 7.50 seconds
Trigger - Turn off Mutiliate Damage <gen>
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Target unit of ability being cast) has buff Mutilate ) Equal to True
Then - Actions
Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing ((0.50 x (Real((Level of Mutiliate for (Triggering unit))))) x Mutiliate_DamageDealt) damage of attack type Spells and damage type Normal
Set Mutiliate_DamageDealt = 0.00
Special Effect - Create a special effect attached to the origin of (Target unit of ability being cast) using Objects\Spawnmodels\Orc\OrcSmallDeathExplode\OrcSmallDeathExplode.mdl
Special Effect - Destroy (Last created special effect)
Else - Actions
[/trigger]
[trigger="Initially ON"]Mutiliate Detect
Events
Unit - A unit enters (Playable map area)
Conditions
Actions
Trigger - Add to Mutiliate Damage <gen> the event (Unit - (Entering unit) Takes damage)
[/trigger]
[trigger="Initially ON"]Mutiliate Check
Events
Map initialization
Conditions
Actions
Set Mutilate_Group = (Units in (Playable map area))
Unit Group - Pick every unit in Mutilate_Group and do (Trigger - Add to Mutiliate Damage <gen> the event (Unit - (Picked unit) Takes damage))
Custom script: call DestroyGroup(udg_Mutilate_Group)
[/trigger]
[trigger="Initially OFF"]Mutiliate Damage
Events
Conditions
And - All (Conditions) are true
Conditions
(Unit-type of (Damage source)) Equal to |c00ff3366Marauder|r
((Triggering unit) has buff Mutilate ) Equal to True
Actions
Set Mutiliate_DamageDealt = (Mutiliate_DamageDealt + (Damage taken))
[/trigger]
P.S. I will be able to respond tommorow.