Spell only works once

feelthless

New Member
Reaction score
1
Trigger:
  • Shadow 0
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Shadow Blast
    • Actions
      • Set shadow_unit = (Casting unit)
      • Animation - Play shadow_unit's attack animation
      • Animation - Change shadow_unit's animation speed to 60.00% of its original speed
      • Set shadow_level = (Level of Shadow Blast for shadow_unit)
      • Set shadow_point = (Position of shadow_unit)
      • Unit - Add Crow Form to shadow_unit
      • Unit - Remove Crow Form from shadow_unit
      • Special Effect - Create a special effect attached to the hand,left of shadow_unit using Abilities\Weapons\SludgeMissile\SludgeMissile.mdl
      • Set shadow_effects[1] = (Last created special effect)
      • Special Effect - Create a special effect attached to the hand,right of shadow_unit using Abilities\Weapons\SludgeMissile\SludgeMissile.mdl
      • Set shadow_effects[2] = (Last created special effect)
      • Trigger - Turn on Shadow 1 <gen>
      • Wait 0.50 seconds
      • Special Effect - Destroy shadow_effects[1]
      • Special Effect - Destroy shadow_effects[2]
      • Trigger - Turn off Shadow 1 <gen>
      • For each (Integer A) from 1 to 24, do (Actions)
        • Loop - Actions
          • Unit - Create 1 Shadow for (Owner of shadow_unit) at (shadow_point offset by 100.00 towards ((Facing of shadow_unit) + (15.00 x (Real((Integer A))))) degrees) facing Default building facing degrees
          • Unit Group - Add (Last created unit) to shadow_group
      • Trigger - Turn on Shadow 2 <gen>
      • Trigger - Turn on Shadow 3 <gen>
      • Wait 0.50 seconds
      • Trigger - Turn off Shadow 3 <gen>
      • Wait 0.50 seconds
      • Trigger - Turn off Shadow 2 <gen>
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in shadow_group and do (Actions)
        • Loop - Actions
          • Unit - Kill (Picked unit)
      • Custom script: call RemoveLocation(udg_shadow_point)

Trigger:
  • Shadow 1
    • Events
      • Time - Every 0.01 seconds of game time
    • Conditions
    • Actions
      • Animation - Change shadow_unit flying height to ((Current flying height of shadow_unit) + 2.00) at 0.00

Trigger:
  • Shadow 2
    • Events
      • Time - Every 0.01 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in shadow_group and do (Actions)
        • Loop - Actions
          • Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by 6.00 towards (Angle from shadow_point to (Position of (Picked unit))) degrees)

Trigger:
  • Shadow 3
    • Events
      • Time - Every 0.01 seconds of game time
    • Conditions
    • Actions
      • Animation - Change shadow_unit flying height to ((Current flying height of shadow_unit) - 2.00) at 0.00



Guys... these are the triggers for magi - shadow blast... but i've got a problem. The first cast goes well, but the second cast is a complete fail. The dummys don't move, and the hero no longer plays his attack animation. Help plz :(
 

Moon_Raven

New Member
Reaction score
8
Sorry,y my mistake, wanted to say that you can't cast it two times at the SAME moment. Are you casting them at the same time while testing?
 

feelthless

New Member
Reaction score
1
Nope. The first time i cast this it is ok, the next time the dummies don't move the attack animation doesnot play
..damnit
This is a magic for my test map so GUI is not necessary.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top