Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

aoe effect spells

Discussion in 'Triggers & Scripts' started by x-Metal-x, Oct 28, 2006.

  1. x-Metal-x

    x-Metal-x

    Joined:
    Aug 28, 2005
    Messages:
    48
    Resources:
    0
    Resources:
    0
    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.
     
  2. paskovich

    paskovich

    Joined:
    Jul 12, 2005
    Messages:
    794
    Resources:
    2
    Tutorials:
    2
    Resources:
    2
    The leave-slowing-things part is easy.
    The key is the Tornado ability, that is a slowing aura! Very useful.
    Code (Text):

    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.
     
  3. x-Metal-x

    x-Metal-x

    Joined:
    Aug 28, 2005
    Messages:
    48
    Resources:
    0
    Resources:
    0
    thanks man, with that skeleton i was able to create a really cool spell!
     
  4. Shamanruler

    Shamanruler

    Joined:
    Mar 29, 2004
    Messages:
    224
    Resources:
    1
    Maps:
    1
    Resources:
    1
    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
     
  5. x-Metal-x

    x-Metal-x

    Joined:
    Aug 28, 2005
    Messages:
    48
    Resources:
    0
    Resources:
    0
    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