- Joined
- Sep 5, 2007
- Messages
- 358
Okay, I've created a really simple damage over time system for my own spells but it for some reason is dealing damage every 0.25 seconds instead of every 1 second. I also compared the triggering to one similar system from a tutorial, which works buglessly, it was just like it except for the variable names and it still doesn't work.
Here is the trigger:
Wizzy..
Here is the trigger:
-
Damage Over Time
-
Events
-
Time - Every 0.25 seconds of game time
-
-
Conditions
-
Actions
-
For each (Integer DOT_i_Index[3]) from 1 to DOT_i_Index[2], do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
DOT_r_Duration[DOT_i_Index[3]] Greater than 0.00
-
-
Then - Actions
-
Set DOT_r_Duration[DOT_i_Index[3]] = (DOT_r_Duration[DOT_i_Index[3]] - 0.25)
-
Set DOT_r_IntervalCheck[DOT_i_Index[3]] = (DOT_r_IntervalCheck[DOT_i_Index[3]] + 0.25)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
DOT_r_IntervalCheck[DOT_i_Index[3]] Greater than or Equal to 1.00
-
-
Then - Actions
-
Set DOT_r_IntervalCheck[DOT_i_Index[3]] = 0.00
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(DOT_u_TargetUnit[DOT_i_Index[3]] is alive) Equal to True
-
-
Then - Actions
-
Unit - Cause DOT_u_SourceUnit[DOT_i_Index[3]] to damage DOT_u_TargetUnit[DOT_i_Index[3]], dealing DOT_r_DamagePerInterval[DOT_i_Index[3]] damage of attack type Spells and damage type Normal
-
Special Effect - Create a special effect attached to the chest of DOT_u_TargetUnit[DOT_i_Index[3]] using DOT_s_Effect[DOT_i_Index[3]]
-
Special Effect - Destroy (Last created special effect)
-
-
Else - Actions
-
Set DOT_r_Duration[DOT_i_Index[3]] = 0.00
-
-
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
DOT_r_Duration[DOT_i_Index[3]] Equal to 0.00
-
-
Then - Actions
-
Set DOT_i_Index[1] = (DOT_i_Index[1] - 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
DOT_i_Index[1] Equal to 0
-
-
Then - Actions
-
Set DOT_i_Index[2] = 0
-
Trigger - Turn off (This trigger)
-
-
Else - Actions
-
-
-
Else - Actions
-
-
-
Else - Actions
-
-
-
-
-
Wizzy..