so you want a checker every 20 seconds to be positive until a unit comes within range. When that checker is positive, you want all units NOT ALREADY within range to be killed when they come within range?.. That would be rather difficult to explain in a tool tip.. but if that's what you want.. :S
Not all, just 1 random unit from the unit group. Also, I was hoping you could check for the units every 20 seconds from the time the first unit enters (therefore any enemy non-hero unit that came within range will eventually die anyways if they stay long enough).
@bumbaclo
You can just make the ward have a low attack with a 20 sec cool down and when a unit is attacked by it, kill it, splode it w/e.
The problem is I want the kill to be random; if it were an attack the player could target it to kill the "high priority" units first =p.
Okey this might be boring and too simple, but please respond so I know if it's something you asked / didn't ask for.
An passive skill which applies to normal attacks. Has a 10% chance to shoot shockwave to random 360 degrees direction.
Do you have GDD?
Its a great form of damage detection that makes spell triggering alot easier. Once you have it do this:
Trigger:
- Untitled Trigger 001
- Events
- Game - GDD_Event becomes Equal to 0.00
- Conditions
- (Unit-type of GDD_DamageSource) Equal to Footman
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Random real number between 0.00 and 100.00) Less than or equal to 10.00
- Then - Actions
- Trigger - Turn off (This trigger)
- Unit - Create 1 Dummy Stomp for (Owner of GDD_DamageSource) at (Position of GDD_DamageSource) facing Default building facing degrees
- Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
- Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave ((Position of (Last created unit)) offset by 500.00 towards (Random real number between 0.00 and 360.00) degrees)
- Trigger - Turn on (This trigger)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
Replace the Footman with your unit.
The "Dummy Stomp" is a dummy unit with the shockwave you want.
The "500" doesn't really matter, since its the angle you want; but it shouldnt be further than the casting range of the shockwave.
Edit: Forgot expiration timer. Also, you can use the "Event - A unit is attacked" (change conditions/actions accordingly) but this event can be easily exploited.