Dummy Spell Only Targets Neutral Hostile?

ZiggyMcjoney

Data editor?! AAAHHHHH!
Reaction score
95
I ran some tests of this spell, and it DOES work...

...but it only hits one target. The only time it will hit two, or more, is when the target units are Neutral Hostile, and not the computer-controlled Player 8 (Pink) which all of the enemy units in this map will belong to.

What this spell is supposed to do is basically fire off Shadow Bolts (based off Storm Bolt) at more than one target, with certain properties depending on level.

Can anyone tell me why this spell wouldn't be working against Player 8? The dummy spell and the actual spell have the same Targets Allowed, and the actual spell DOES fire off a storm bolt...so why doesn't the dummy one work? D:

Here's the code:

Trigger:
  • Shadowbolt
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Shadow Bolt
    • Actions
      • Set Shadowbolt_Target = (Target unit of ability being cast)
      • Set Temp_Point = (Position of (Triggering unit))
      • -------- Set Stun Duration --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Shadow Bolt for (Triggering unit)) Less than or equal to 3
        • Then - Actions
          • Set Temp_Integer = 1
        • Else - Actions
          • Set Temp_Integer = 2
      • -------- Set Damage --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Shadow Bolt for (Triggering unit)) Less than or equal to 2
        • Then - Actions
          • Set Temp_Real = 2.00
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Level of Shadow Bolt for (Triggering unit)) Greater than 2) and ((Level of Shadow Bolt for (Triggering unit)) Less than or equal to 4)
            • Then - Actions
              • Set Temp_Real = 3.00
            • Else - Actions
              • Set Temp_Real = 4.00
      • -------- Set Number of Attacks --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Shadow Bolt for (Triggering unit)) Equal to 1
        • Then - Actions
          • Set TempInt2 = 1
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • (Level of Shadow Bolt for (Triggering unit)) Equal to 2
                  • (Level of Shadow Bolt for (Triggering unit)) Equal to 3
            • Then - Actions
              • Set TempInt2 = 2
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Level of Shadow Bolt for (Triggering unit)) Equal to 4
                • Then - Actions
                  • Set TempInt2 = 3
                • Else - Actions
                  • Set TempInt2 = 4
      • Set Shadowbolt_Group = (Units within 650.00 of Temp_Point matching (((((Matching unit) is A structure) Equal to False) and ((Matching unit) Not equal to Shadowbolt_Target)) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of (Trigg
      • Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing ((Real((Intelligence of (Casting unit) (Include bonuses)))) x Temp_Real) damage of attack type Spells and damage type Normal
      • For each (Integer A) from 1 to TempInt2, do (Actions)
        • Loop - Actions
          • Unit - Create 1 Dummy Unit (General) for (Owner of (Triggering unit)) at Temp_Point facing Default building facing degrees
          • Unit - Add Shadow Bolt Dummy to (Last created unit)
          • Unit - Set the custom value of (Last created unit) to ((Intelligence of (Triggering unit) (Include bonuses)) x (Integer(Temp_Real)))
          • Unit - Set level of Shadow Bolt Dummy for (Last created unit) to Temp_Integer
          • Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
          • Unit - Order (Last created unit) to Human Mountain King - Storm Bolt (Random unit from Shadowbolt_Group)
      • Custom script: call RemoveLocation (udg_Temp_Point)
      • Custom script: call DestroyGroup (udg_Shadowbolt_Group)


Trigger:
  • Shadowbolt 2
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Shadow Bolt Dummy
    • Actions
      • Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (Real((Custom value of (Triggering unit)))) damage of attack type Spells and damage type Normal
 
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