- Joined
- May 11, 2012
- Messages
- 2,108
Hello Hivers!
I need help in calculating gradual growth of the damage.
This is the trigger I currently have:
The spell can be channeled up to 3 seconds. During that channel, the damage increases up to "((Real(T_SpellLvl[TF_Loop])) x 1000.00)", so up to 1000, 2000, 3000, 4000, 5000 if casted all 3 seconds. What should I do to make it how do I say... grow properly, equal to the amount of duration channeled, up to "((Real(T_SpellLvl[TF_Loop])) x 1000.00)"? By what should I divide that number?
Tell me if you didn't understand it, I'll try to explain better.
I need help in calculating gradual growth of the damage.
This is the trigger I currently have:
-
Telekinesis Loop
-

Events
-


Time - Every 0.03 seconds of game time
-


Unit - A unit Is issued an order targeting an object
-


Unit - A unit Is issued an order targeting a point
-


Unit - A unit Is issued an order with no target
-
-

Conditions
-

Actions
-


-------- ================================================ --------
-


For each (Integer T_Loop) from 1 to T_MaxIndex, do (Actions)
-



Loop - Actions
-




-------- ================================================ --------
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






T_Time[T_Loop] Greater than or equal to 99.00
-






(Ordered unit) Equal to T_TrigUnit[T_Loop]
-
-





Then - Actions
-





Else - Actions
-






-------- ================================================ --------
-






Set T_Time[T_Loop] = (T_Time[T_Loop] + 0.03)
-






Set T_MaxDamage[T_Loop] = (((Real(T_SpellLvl[TF_Loop])) x 1000.00) / 33.30)
-






-------- ================================================ --------
-
-
-
-
-


-------- ================================================ --------
-
-
Tell me if you didn't understand it, I'll try to explain better.
Last edited:



