- Joined
- Jul 26, 2010
- Messages
- 167
the part I comented is where the spell charges, but while it does, the unit still attacks and make it looks weird while casting. How I fix it? :/
-
CertainDeath loop
-
Acontecimientos
- Time - Every 0.01 seconds of game time
- Condiciones
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Si: Condiciones
- DistanciaCD Mayor que o igual (>=) a 2000
-
Entonces: Acciones
- Custom script: call RemoveLocation(udg_TempPointCD[1])
- Custom script: call RemoveLocation(udg_TempPointCD[2])
-
Unit group - Pick every unit in targetsCD[1] and do (Actions)
-
Loop: Acciones
- Unit group - Remove (Picked unit) from targetsCD[1]
-
Loop: Acciones
-
Unit group - Pick every unit in GroupDmgCD and do (Actions)
-
Bucle: Acciones
- Unit group - Remove (Picked unit) from GroupDmgCD
-
Bucle: Acciones
- Trigger - Turn off (This trigger)
- Otros: Acciones
-
Si: Condiciones
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Si: Condiciones
- ContCD[2] Mayor que o igual (>=) a 400
-
Entonces: Acciones
- Set DistanciaCD = (DistanciaCD + 20)
- Set TempPointCD[3] = (TempPointCD[1] offset by (Real(DistanciaCD)) towards AnguloCD degrees)
- Unit - Create 1 blastCD for (Owner of casterCD) at TempPointCD[3] facing AnguloCD degrees
- Unit - Add a 0.20 second Genérico expiration timer to (Last created unit)
- Set targetsCD[1] = (Units within 100.00 of TempPointCD[3] matching (((Matching unit) belongs to an enemy of (Owner of casterCD)) Igual a True))
- Custom script: call RemoveLocation(udg_TempPointCD[3])
-
Unit group - Pick every unit in targetsCD[1] and do (Actions)
-
Loop: Acciones
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Si: Condiciones
- ((Picked unit) is in GroupDmgCD) Igual a False
-
Entonces: Acciones
- Unit group - Add (Picked unit) to GroupDmgCD
- Unit - Cause casterCD to damage (Picked unit), dealing 2500.00 damage of attack type Conjuros and damage type Normal
- Efecto especial - Create a special effect at (Position of (Picked unit)) using Objects\Spawnmodels\Human\HumanBlood\BloodElfSpellThiefBlood.mdl
- Otros: Acciones
-
Si: Condiciones
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop: Acciones
- Custom script: call DestroyGroup(udg_targetsCD[1])
-
Otros: Acciones
- -------- ----------HERE IS WHERE I NEED IT TO DONT ATTACK--------------- --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Si: Condiciones
- ContCD[1] Mayor que o igual (>=) a 100
-
Entonces: Acciones
- Set TempPointCD[3] = (TempPointCD[1] offset by (Real(DistanciaCD)) towards AnguloCD degrees)
- Unit - Create 1 charging for (Owner of casterCD) at TempPointCD[3] facing AnguloCD degrees
- Unit - Add a 2.00 second Genérico expiration timer to (Last created unit)
- Set ContCD[1] = 0
- Custom script: call RemoveLocation(udg_TempPointCD[3])
-
Otros: Acciones
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Si: Condiciones
- ContCD[1] Menor que o igual a 100
-
Entonces: Acciones
- Animation - Play casterCD's stand ready animation
- Set ContCD[1] = (ContCD[1] + 1)
- Set ContCD[2] = (ContCD[2] + 1)
- Otros: Acciones
-
Si: Condiciones
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Si: Condiciones
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Si: Condiciones
- ContCD[2] Igual (==) a 400
-
Entonces: Acciones
- Animation - Play casterCD's attack animation
- Otros: Acciones
-
Si: Condiciones
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Si: Condiciones
- ContCD[2] Igual (==) a 297
-
Entonces: Acciones
- Unit - Create 1 charging2 for (Owner of casterCD) at (Position of casterCD) facing Vista edificio predeterminada degrees
- Unit - Add a 1.00 second Genérico expiration timer to (Last created unit)
- Otros: Acciones
-
Si: Condiciones
-
Si: Condiciones
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Acontecimientos