- Joined
- Jul 19, 2007
- Messages
- 857
I have imported Enchantress "Nature Attendants" spell from a Dota Spellpack and yes I have imported everything that is required for it and checked everything in the triggers but it seems like the spell doesn't work like it should even in the spellpack because the spirits doesn't heal anyone which it's supposed to do... What could be wrong?
-
Constantes Habilidades Enchantress
-
Events
-
Map initialization
-
-
Conditions
-
Actions
-
Set VariableSet HealingWisp_Ability = Healing Spirits
-
-
-
Healing Wisps
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to HealingWisp_Ability
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
HW_Enteros[1] Equal to 0
-
-
Then - Actions
-
Trigger - Turn on Healing Wisps Loop <gen>
-
-
Else - Actions
-
-
Set VariableSet HW_Enteros[1] = (HW_Enteros[1] + 1)
-
Set VariableSet HW_Enteros[2] = (HW_Enteros[2] + 1)
-
Set VariableSet HW_Caster[HW_Enteros[2]] = (Triggering unit)
-
Set VariableSet HW_Numero[HW_Enteros[2]] = (2 + (2 x (Level of (Ability being cast) for (Triggering unit))))
-
Set VariableSet HW_Duracion[HW_Enteros[2]] = 10.00
-
-
-
Healing Wisps Loop
-
Events
-
Time - Every 0.04 seconds of game time
-
-
Conditions
-
Actions
-
For each (Integer HW_Enteros[3]) from 1 to HW_Enteros[2], do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
HW_Caster[HW_Enteros[3]] Not equal to No unit
-
-
Then - Actions
-
Set VariableSet HW_Duracion[HW_Enteros[3]] = (HW_Duracion[HW_Enteros[3]] - 0.04)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(HW_Duracion[HW_Enteros[3]] mod 1.00) Equal to 0.00
-
-
Then - Actions
-
Set VariableSet Punto = (Position of HW_Caster[HW_Enteros[3]])
-
For each (Integer A) from 1 to HW_Numero[HW_Enteros[3]], do (Actions)
-
Loop - Actions
-
Set VariableSet Grupo = (Units within 300.00 of Punto matching (((((Matching unit) is A structure) Equal to False) and ((Life of (Matching unit)) Less than (Max life of (Matching unit)))) and ((((Matching unit) is Mechanical) Equal to False) and (((Matching unit) belongs to an enemy
-
Set VariableSet DummyHS = (Random unit from Grupo)
-
Unit - Set life of DummyHS to ((Life of DummyHS) + 10.00)
-
Custom script: call DestroyGroup(udg_Grupo)
-
-
-
Custom script: call RemoveLocation(udg_Punto)
-
-
Else - Actions
-
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
HW_Duracion[HW_Enteros[3]] Less than or equal to 0.00
-
-
Then - Actions
-
Set VariableSet HW_Caster[HW_Enteros[3]] = No unit
-
Set VariableSet HW_Enteros[1] = (HW_Enteros[1] - 1)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
HW_Enteros[1] Equal to 0
-
-
Then - Actions
-
Set VariableSet HW_Enteros[2] = 0
-
Trigger - Turn off (This trigger)
-
-
Else - Actions
-
-
-
Else - Actions
-
-
-
Else - Actions
-
-
-
-
-