- Joined
- Jun 2, 2009
- Messages
- 1,233
One of my players requested skill from one of the moba games. I have created it but still not works properly.
Hero creates spikes at targeted area. Units trying to get in or out stuns for x seconds.
When units contacts with spikes (check the attachment) i want to run actions for any unit who contacted.
How can i make it properly? I believe i have messed up. It works but not properly. I have messed up because of changing system many times.
Additionally i am sharing map file if you want. But it is 1.26 version.
Hero creates spikes at targeted area. Units trying to get in or out stuns for x seconds.
When units contacts with spikes (check the attachment) i want to run actions for any unit who contacted.
How can i make it properly? I believe i have messed up. It works but not properly. I have messed up because of changing system many times.
Additionally i am sharing map file if you want. But it is 1.26 version.
-
Veigar E Cast Copy
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Thorns // Dryad
-
-
Actions
-
Set TempPointVeigarE = (Target point of ability being cast)
-
Set Veigar_E_Caster = (Casting unit)
-
Set VeigarE_Prison = 0.00
-
Set DENEME = ((Target point of ability being cast) offset by 115.00 towards 0.00 degrees)
-
Set DENEME2 = ((Target point of ability being cast) offset by 185.00 towards 0.00 degrees)
-
For each (Integer A) from 1 to 12, do (Actions)
-
Loop - Actions
-
Special Effect - Create a special effect at (TempPointVeigarE offset by 250.00 towards VeigarE_Prison degrees) using Abilities\Spells\Orc\SpikeBarrier\SpikeBarrier.mdl
-
Unit - Create 1 DUMMY [JFA] for (Owner of Hero_Veigar) at (TempPointVeigarE offset by 250.00 towards VeigarE_Prison degrees) facing Default building facing degrees
-
Set VeigarEffect = (VeigarEffect + 1)
-
Set Veigar_Dummy_E[VeigarEffect] = (Last created unit)
-
Set VeigarEffect2[VeigarEffect] = (Last created special effect)
-
Set VeigarE_Prison = (VeigarE_Prison + 30.00)
-
-
-
Wait 1.00 seconds
-
Trigger - Turn on Veigar E Stun Copy <gen>
-
Wait 4.00 seconds
-
For each (Integer A) from 1 to 12, do (Actions)
-
Loop - Actions
-
Special Effect - Destroy VeigarEffect2[(Integer A)]
-
Unit - Kill Veigar_Dummy_E[(Integer A)]
-
Unit - Remove Veigar_Dummy_E[(Integer A)] from the game
-
-
-
Set VeigarEffect = 0
-
Custom script: call RemoveLocation(udg_TempPointVeigarE)
-
Trigger - Turn off Veigar E Stun Copy <gen>
-
-
-
Veigar E Stun Copy
-
Events
-
Time - Every 0.15 seconds of game time
-
-
Conditions
-
Actions
-
For each (Integer A) from 1 to 12, do (Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units of type DUMMY [JFA]) and do (Actions)
-
Loop - Actions
-
For each (Integer A) from 1 to 12, do (Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units within 75.00 of ((Position of (Picked unit)) offset by 0.00 towards 0.00 degrees)) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) is A structure) Equal to False
-
((Picked unit) is Mechanical) Equal to False
-
((Picked unit) is alive) Equal to True
-
((Picked unit) belongs to an enemy of (Owner of Veigar_E_Caster)) Equal to True
-
-
Then - Actions
-
Unit - Order Veigar_Dummy_E[VeigarEffect] to Human Mountain King - Storm Bolt (Picked unit)
-
-
Else - Actions
-
-
-
-
-
-
-
-
-
-
-