Triggered ability help needed

Asehujiko

New Member
Reaction score
20
atm im making a costum ability for my campaign, it launches a frostbolt to all targets in range, damages them and slows them

i based the main spell on fan of knives, it does the animation and damage, and the dummy is based on cripple, and is supposed to slow

the problem is, whats the trigger to create a dummy unit that slows each unit seperatly if they gets hit by the main ability?(units standing next to the caster get hit first, units at max range get hit later)
 

Andrewgosu

The Silent Pandaren Helper
Reaction score
716
Code:
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Fan of Knives
    Actions
        Set tempforce = (Units within //The Range of Fan of Knives of (Position of (Triggering unit)) matching...
        Unit Group - Pick every unit in tempforce and do (Actions)
            Loop - Actions
                Set temppoint = (Position of (Picked unit))
                Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at temppoint facing Default building facing degrees
                Custom script:   call RemoveLocation(udg_temppoint)
                Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
                Unit - Add Cripple to (Last created unit)
                Unit - Set level of Cripple for (Last created unit) to (Level of (Ability being cast) for (Triggering unit))//Optional
                Unit - Order (Last created unit) to Undead Necromancer - Cripple (Picked unit)
        Custom script:   call DestroyGroup(udg_tempforce)

That should work perfectly fine.
 

Asehujiko

New Member
Reaction score
20
nopedoesnt work, it just slows everything once the spell is cast, because of the slow missiles and the massive range the slow wears off before the target gets hit in some cases
 

Andrewgosu

The Silent Pandaren Helper
Reaction score
716
But you could trigger the whole process...Replace Cripple with Frost Bolt and order the dummy to cast Frost Bolt. Then, make the Fan of Knives do no damage and remove the effects.
 

Asehujiko

New Member
Reaction score
20
do you have a single target spell that slows and has a projectile(so it hits units further way later then units standing next to the caster)?

the damage and the art are doing fine, its just the slow i cant get the timing right for
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top