Synoscope
New Member
- Reaction score
- 1
Is it possible? It would make life so much easier if I could spawn in dummies and order them to cast an ability with a cooldown and then have them expire out.
thehelperskillmaketrigger
Events
Unit - A unit enters (Playable map area)
Conditions
Actions
Set temp_point[1] = (Center of (Playable map area))
Unit - Create 1 Dummy for Player 1 (Red) at temp_point[1] facing Default building facing degrees
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Unit - Add Entangling Roots to (Last created unit)
Unit - Order (Last created unit) to Night Elf Keeper Of The Grove - Entangling Roots (Triggering unit)
Custom script: call RemoveLocation(udg_temp_point[1])
thehelperskillmaketrigger
Events
Unit - A unit enters (Playable map area)
Conditions
Actions
Set temp_point[1] = (Center of (Playable map area))
Set temp_unitG[1] = (Random 1 units from (Units within 500.00 of temp_point[1]))
Unit - Create 1 Dummy for Player 1 (Red) at temp_point[1] facing Default building facing degrees
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Unit - Add Entangling Roots to (Last created unit)
Unit Group - Pick every unit in temp_unitG[1] and do (Actions)
Loop - Actions
Unit - Order (Last created unit) to Night Elf Keeper Of The Grove - Entangling Roots (Picked unit)
Custom script: call RemoveLocation(udg_temp_point[1])
Custom script: call DestroyGroup (udg_temp_unitG[1])
.Set ATHPoint[1] = (Position of (Triggering unit))
Set ATHGroup = (Units within 999.00 of ATHPoint[1] matching ((Unit-type of (Matching unit)) Equal to Trap))
Set ATHReal[1] = 1000.00
Set ATHTrap = No unit
Unit Group - Pick every unit in ATHGroup and do (Actions)
Loop - Actions
Set ATHPoint[2] = (Position of (Picked unit))
Set ATHReal[2] = (Distance between ATHPoint[1] and ATHPoint[2])
Custom script: call RemoveLocation(udg_ATHPoint[2])
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
ATHReal[2] Less than ATHReal[1]
Then - Actions
Set ATHReal[1] = ATHReal[2]
Set ATHTrap = (Picked unit)
Else - Actions
Custom script: call RemoveLocation(udg_ATHPoint[1])
Custom script: call DestroyGroup(udg_ATHGroup)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
ATHTrap Not equal to No unit
Then - Actions
Actions
Else - Actions