- Joined
- Sep 22, 2011
- Messages
- 70
Hey, i'm trying to make a triggered DOT effect for a spell i'm making, based off how much Lumber the player that owns the unit casting the spell has.
I'm using Bladestorm (Orc hero ability) as the base for the units ability, which lasts 1 second, and deals x amount of damage, the trigger is as follows:
and even when I removed the If/Then/Else condition functions from the trigger, and simply do
I'm using Bladestorm (Orc hero ability) as the base for the units ability, which lasts 1 second, and deals x amount of damage, the trigger is as follows:
-
Divine Storm DOT
-
Events
- Time - Every 1.00 seconds of game time
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Divine Storm (Hero) for DivineStorm_Caster) Equal to 1
-
Then - Actions
- Unit Group - Pick every unit in DivineStorm_DmgTargets and do (Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - (150.00 x (0.05 x (Real(((Owner of DivineStorm_Caster) Current lumber)))))))
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Divine Storm (Hero) for DivineStorm_Caster) Equal to 2
-
Then - Actions
- Unit Group - Pick every unit in DivineStorm_DmgTargets and do (Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - (285.00 x (0.05 x (Real(((Owner of DivineStorm_Caster) Current lumber)))))))
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Divine Storm (Hero) for DivineStorm_Caster) Equal to 3
-
Then - Actions
- Unit Group - Pick every unit in DivineStorm_DmgTargets and do (Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - (329.00 x (0.05 x (Real(((Owner of DivineStorm_Caster) Current lumber)))))))
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Divine Storm (Hero) for DivineStorm_Caster) Equal to 4
-
Then - Actions
- Unit Group - Pick every unit in DivineStorm_DmgTargets and do (Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - (429.00 x (0.05 x (Real(((Owner of DivineStorm_Caster) Current lumber)))))))
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Divine Storm (Hero) for DivineStorm_Caster) Equal to 5
-
Then - Actions
- Unit Group - Pick every unit in DivineStorm_DmgTargets and do (Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - (586.00 x (0.05 x (Real(((Owner of DivineStorm_Caster) Current lumber)))))))
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Divine Storm (Hero) for DivineStorm_Caster) Equal to 6
-
Then - Actions
- Unit Group - Pick every unit in DivineStorm_DmgTargets and do (Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - (697.00 x (0.05 x (Real(((Owner of DivineStorm_Caster) Current lumber)))))))
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Divine Storm (Hero) for DivineStorm_Caster) Equal to 7
-
Then - Actions
- Unit Group - Pick every unit in DivineStorm_DmgTargets and do (Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - (754.00 x (0.05 x (Real(((Owner of DivineStorm_Caster) Current lumber)))))))
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Divine Storm (Hero) for DivineStorm_Caster) Equal to 8
-
Then - Actions
- Unit Group - Pick every unit in DivineStorm_DmgTargets and do (Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - (812.00 x (0.05 x (Real(((Owner of DivineStorm_Caster) Current lumber)))))))
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Divine Storm (Hero) for DivineStorm_Caster) Equal to 9
-
Then - Actions
- Unit Group - Pick every unit in DivineStorm_DmgTargets and do (Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - (934.00 x (0.05 x (Real(((Owner of DivineStorm_Caster) Current lumber)))))))
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Divine Storm (Hero) for DivineStorm_Caster) Equal to 10
-
Then - Actions
- Unit Group - Pick every unit in DivineStorm_DmgTargets and do (Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - (1251.00 x (0.05 x (Real(((Owner of DivineStorm_Caster) Current lumber)))))))
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
Divine Storm Damage Increase
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Divine Storm (Hero)
-
Actions
- Set DivineStorm_DmgTargets = (Units within 50.00 of (Position of (Triggering unit)) matching (((Matching unit) belongs to an enemy of (Triggering player)) Equal to True))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Triggering player) Current lumber) Greater than 0
-
Then - Actions
- Countdown Timer - Start DivineStorm_Dot as a One-shot timer that will expire in 3.00 seconds
- Trigger - Turn on Divine Storm DOT <gen>
-
Else - Actions
- Custom script: call DestroyGroup(udg_DivineStorm_DmgTargets)
-
If - Conditions
-
Events
and even when I removed the If/Then/Else condition functions from the trigger, and simply do
- Unit Group - Pick every unit in DivineStorm_DmgTargets and do Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 150.00