AoE Net
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to AoE Net
Actions
Unit - Create 1 Dummy for (Owner of (Casting unit)) at (Target point of ability being cast) facing Default building facing degrees
Unit Group - Pick every unit in (Units within 250.00 of (Position of (Summoned unit)) matching (((Picked) belongs to an enemy of (Owner of (Casting unit))) Equal to True)) and do (Actions)
Loop - Actions
Unit - Order (Summoned unit) to Orc Raider - Ensnare (Picked unit)
Unit - Remove (Summoned unit) from the game
Net Init
Events
Map initialization
Conditions
Actions
Set Abi_Net = Net
Set Abi_Net_EntanglingRoots = Entangling Roots
Set UnitType_Net_Dummy = Dummy
Set Real_Net_NetMoveRate = 6.00
Net
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Abi_Net
Actions
Set Pt_Net_TriggerPos = (Position of (Triggering unit))
Set Pt_Net_TargetPos = (Target point of ability being cast)
Unit - Create 1 UnitType_Net_Dummy for (Owner of (Triggering unit)) at Pt_Net_TriggerPos facing (Facing of (Triggering unit)) degrees
Unit - Set the custom value of (Last created unit) to (Integer(((Distance between Pt_Net_TriggerPos and Pt_Net_TargetPos) / Real_Net_NetMoveRate)))
Unit - Add Abi_Net to (Last created unit)
Unit - Set level of Abi_Net for (Last created unit) to (Level of Abi_Net for (Triggering unit))
Unit Group - Add (Last created unit) to Unitgp_Net_PickedUnit
Unit - Turn collision for (Last created unit) Off
Trigger - Turn on Net Movement <gen>
Custom script: call RemoveLocation (udg_Pt_Net_TriggerPos)
Custom script: call RemoveLocation (udg_Pt_Net_TargetPos)
Net Movement
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in Unitgp_Net_PickedUnit and do (Actions)
Loop - Actions
Game - Display to (All players) the text: (String((Custom value of (Picked unit))))
Set Unit_Net_PickedUnit = (Picked unit)
Set Pt_Net_TriggerPos = (Position of (Picked unit))
Set Pt_Net_TargetPos = (Pt_Net_TriggerPos offset by Real_Net_NetMoveRate towards (Facing of (Picked unit)) degrees)
Unit - Move (Picked unit) instantly to Pt_Net_TargetPos
Unit - Set the custom value of (Picked unit) to ((Custom value of (Picked unit)) - 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Custom value of (Picked unit)) Less than 0
Then - Actions
Set Unitgp_Net_AOEunit = (Units within 300.00 of Pt_Net_TriggerPos matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) belongs to an enemy of (Owner of (Picked unit))) Equal to True) and (((Matching unit) is alive) Equal to True))))
Unit Group - Pick every unit in Unitgp_Net_AOEunit and do (Actions)
Loop - Actions
Unit - Create 1 UnitType_Net_Dummy for (Owner of Unit_Net_PickedUnit) at Pt_Net_TriggerPos facing Default building facing degrees
Unit - Add Abi_Net_EntanglingRoots to (Last created unit)
Unit - Set level of Abi_Net_EntanglingRoots for (Last created unit) to (Level of Abi_Net for Unit_Net_PickedUnit)
Unit - Order (Last created unit) to Night Elf Keeper Of The Grove - Entangling Roots (Picked unit)
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Unit - Hide (Last created unit)
Unit - Remove (Picked unit) from the game
Custom script: call DestroyGroup (udg_Unitgp_Net_AOEunit)
Else - Actions
Custom script: call RemoveLocation (udg_Pt_Net_TriggerPos)
Custom script: call RemoveLocation (udg_Pt_Net_TargetPos)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in Unitgp_Net_PickedUnit) Equal to 0
Then - Actions
Trigger - Turn off (This trigger)
Else - Actions
How about first, using a AoE spell like flamestrike. Then removing all effects damage etc. then making a dummy to cast ensnare.
Example:
Code:AoE Net Events Unit - A unit Starts the effect of an ability Conditions (Ability being cast) Equal to AoE Net Actions Unit - Create 1 Dummy for (Owner of (Casting unit)) at (Target point of ability being cast) facing Default building facing degrees Unit Group - Pick every unit in (Units within 250.00 of (Position of (Summoned unit)) matching (((Picked) belongs to an enemy of (Owner of (Casting unit))) Equal to True)) and do (Actions) Loop - Actions Unit - Order (Summoned unit) to Orc Raider - Ensnare (Picked unit) Unit - Remove (Summoned unit) from the game
This might just work :l haven't tried myself though :l and it requires that you know dummies i guess.
The Ensnare spells is simply the raiders standard spell, try setting the cooldown to 0 and cost to 0. Hope this works :l and good luck
wouldnt this work just fine as long as you set teh cooldown for ensare to 0?
But what about the movement of the net? I mean, like it shouldn't just be at the position of the flame strike but moves there and anything in it's way gets ensnared? This is kinda the same as Invoker's Wind skill.
Hehe tested my version of the net, daem not working ^^ and major lagg creation ^^ Warning! do not use my trigger
you order to snare is not in the loop, just btw
and instead of instantly remove it, add a 1 sec expiaration timer to the unit, so it has time to cast (even no casting time is not totally instant (animations etc))
> Ithladir
Actually, there is no summoned unit in the trigger. You probably should use 'Last created unit' instead.
Is there a fast way to post full code into a message like this? If so please tell me