• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Why doesn't my trigger work.

Status
Not open for further replies.
Level 3
Joined
Jul 2, 2006
Messages
35
  • Chain Lightning
    • Events
      • Unit - A unit Begins channeling an ability
    • Conditions
      • (Ability being cast) Equal to Chain Lightning
    • Actions
      • Set ArcLightningTarget = (Target point of ability being cast)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Chain Lightning for (Triggering unit)) Equal to 1
        • Then - Actions
          • Set ArcLightningMain = (Real((Intelligence of (Triggering unit) (Include bonuses))))
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Chain Lightning for (Triggering unit)) Equal to 2
            • Then - Actions
              • Set ArcLightningMain = ((Real((Intelligence of (Triggering unit) (Include bonuses)))) x 2.00)
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Level of Chain Lightning for (Triggering unit)) Equal to 3
                • Then - Actions
                  • Set ArcLightningMain = ((Real((Intelligence of (Triggering unit) (Include bonuses)))) x 3.00)
                • Else - Actions
                  • Do nothing
      • Wait 0.20 seconds
      • Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (ArcLightningMain x 0.20) damage of attack type Magic and damage type Lightning
      • Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at ArcLightningTarget facing Default building facing degrees
      • Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
      • Unit Group - Pick every unit in (Units within 250.00 of (Position of (Target unit of ability being cast)) matching ((((Picked unit) is A structure) Equal to False) and (((Picked unit) is Mechanical) Equal to False))) and do (Do nothing)
      • Unit - Add Chain Lightning(dummy) to (Last created unit)
      • Unit - Order (Last created unit) to Orc Far Seer - Chain Lightning (Picked unit)
      • Wait 0.20 seconds
      • Unit - Cause (Last created unit) to damage (Picked unit), dealing (ArcLightningMain x 0.80) damage of attack type Magic and damage type Lightning
      • Custom script: call RemoveLocation(udg_ArcLightningTarget)
Basically, this spell makes team kill to units around ArcLightningTarget, it doesn't show the chain lightning that is meant to come out of the target unit too. Why???
 
Level 13
Joined
Nov 20, 2006
Messages
553
maybe the range of your chain lightning skill not far than your target point, its impossible your dummy can chain lightning the enemy.

Or When Unit Group pick every unit, you must use looping action, the order
Unit - Order (Last created unit) to Orc Far Seer - Chain Lightning (Picked unit) must be in looping action unit group pick. and don't forget to set dummy first, don't use last created unit.
 
Quite simple, create a dummy in loop so each targeted unit will get casted chain lightning. Only move
  • Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (ArcLightningMain x 0.20) damage of attack type Magic and damage type Lightning
  • Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at ArcLightningTarget facing Default building facing degrees
  • Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
  • in the loop of (after you used pick every unit and do multiple actions ) :
  • Unit Group - Pick every unit in (Units within 250.00 of (Position of (Target unit of ability being cast)) matching ((((Picked unit) is A structure) Equal to False) and (((Picked unit) is Mechanical) Equal to False))) and do (Do nothing)
Then it should work! :grin:
 
Status
Not open for further replies.
Top