how do you make it so a projectile is fired, travels a certain distance, (maybe damages things) and leaves a trail of some sort of buff behind for a limited time. Example: Dota; Mercurial's shadow dagger leaves behind a slowing effect that works if you walk through it. Im trying to make an area like that, but every few seconds it has a chance to damage units in that area and display a special effect. thanks again for all the help in advance.
The leave-slowing-things part is easy. The key is the Tornado ability, that is a slowing aura! Very useful.
Trigger 1:
Event - Spell effect
Cond - ..
Actions -
Create unit at position of trigering unit, bla bla -> this will be the projectile
Set Proj = Last Created Unit
Set Trg = Target Unit of Ability
Turn on Trigger 2
//========
Trigger 2:
Event - Every 0.1 seconds of the game
Cond - none
Actions-
Create a unit at Position of Proj for Owner of Proj (This unit must have the Tornado slow (or sthg like that) ability
If (Distance between position of Proj and position of Trg) is less than 10
Turn off This Trigger
For the damaging, i would use a trigger that runs every second, it checks the chance, picks all units that has the Tornado buff, and deals damage to picked units and creates the effect.
also an idea: rather than the tornado slow thingy, add the special effect of like NE fire and give the spawned unit immolation, i worked with that in a shockwave type spell it it was pretty dank
thanks for the idea but actually i made it so it creates a 400x1000 area (circular shaped) where it slows the units, and every 2 seconds has a % chance to deal lots of dmg to random units inside of it