• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

aoe effect spells

Status
Not open for further replies.
Level 3
Joined
Aug 28, 2005
Messages
48
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.
 
Level 11
Joined
Jul 12, 2005
Messages
764
The leave-slowing-things part is easy.
The key is the Tornado ability, that is a slowing aura! Very useful.
Code:
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.
 
Level 3
Joined
Aug 28, 2005
Messages
48
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
 
Status
Not open for further replies.
Top