• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Spell doesn't work

Status
Not open for further replies.
Level 13
Joined
Oct 25, 2009
Messages
995
[Unsolved]Spell doesn't work

Here is the trigger,object editor of dark wave original spell is Channel.
IT DOESN'T WORK!!! anyone can help ? :)
  • Dark Wave
    • Events
      • Unit - A unit starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Dark Wave
    • Actions
      • Set Dark_Wave_U1 = (Triggering unit)
      • Set Dark_Wave_Group = (Units within 175.00 of (Position of Dark_Wave_U1) matching (((Matching unit) belongs to an enemy of (Owner of Dark_Wave_U1)) Equal to True))
      • Unit Group - Pick every unit in Dark_Wave_Group and do (Actions)
        • Loop - Actions
          • Unit - Create 1 DW_Dummy for (Owner of Dark_Wave_U1) at ((Position of Dark_Wave_U1) offset by 150.00 towards (Facing of Dark_Wave_U1) degrees) facing Default building facing degrees
          • Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
          • Unit - Cause Dark_Wave_U1 to damage (Picked unit), dealing (50.00 x (Real((Level of Dark Wave for Dark_Wave_U1)))) damage of attack type Spells and damage type Normal
          • Wait 0.50 seconds
          • Unit - Create 1 DW_Dummy for (Owner of Dark_Wave_U1) at ((Position of Dark_Wave_U1) offset by 300.00 towards (Facing of Dark_Wave_U1) degrees) facing Default building facing degrees
          • Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
          • Unit - Cause Dark_Wave_U1 to damage (Picked unit), dealing (100.00 + (50.00 x (Real((Level of Dark Wave for Dark_Wave_U1))))) damage of attack type Spells and damage type Normal
          • Wait 0.50 seconds
          • Unit - Create 1 DW_Dummy for (Owner of Dark_Wave_U1) at ((Position of Dark_Wave_U1) offset by 450.00 towards (Facing of Dark_Wave_U1) degrees) facing Default building facing degrees
          • Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
          • Unit - Cause Dark_Wave_U1 to damage (Picked unit), dealing (150.00 + (50.00 x (Real((Level of Dark Wave for Dark_Wave_U1))))) damage of attack type Spells and damage type Normal
      • Custom script: call DestroyGroup(udg_Dark_Wave_Group)
 
Last edited:
Level 13
Joined
Oct 25, 2009
Messages
995
Do NOT use Waits in Loop, it can cause BUGS.

Ok,what should i do?i want after 0.5 spam next wave T_T
EDIT:Remove also doesn't work.
And the trigger i change to this also doesn't work
  • Dark Wave
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Dark Wave
    • Actions
      • Set Dark_Wave_U1 = (Triggering unit)
      • Set Dark_Wave_Group = (Units within 175.00 of (Position of Dark_Wave_U1) matching (((Matching unit) belongs to an enemy of (Owner of Dark_Wave_U1)) Equal to True))
      • Set Dark_Wave_Point[1] = ((Position of Dark_Wave_U1) offset by 150.00 towards (Facing of Dark_Wave_U1) degrees)
      • Set Dark_Wave_Point[2] = ((Position of Dark_Wave_U1) offset by 300.00 towards (Facing of Dark_Wave_U1) degrees)
      • Set Dark_Wave_Point[3] = ((Position of Dark_Wave_U1) offset by 450.00 towards (Facing of Dark_Wave_U1) degrees)
      • Unit Group - Pick every unit in Dark_Wave_Group and do (Actions)
        • Loop - Actions
          • Unit - Create 1 DW_Dummy for (Owner of Dark_Wave_U1) at Dark_Wave_Point[1] facing Default building facing degrees
          • Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
          • Unit - Cause Dark_Wave_U1 to damage (Picked unit), dealing (50.00 x (Real((Level of Dark Wave for Dark_Wave_U1)))) damage of attack type Spells and damage type Normal
          • Unit - Create 1 DW_Dummy for (Owner of Dark_Wave_U1) at Dark_Wave_Point[2] facing Default building facing degrees
          • Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
          • Unit - Cause Dark_Wave_U1 to damage (Picked unit), dealing (100.00 + (50.00 x (Real((Level of Dark Wave for Dark_Wave_U1))))) damage of attack type Spells and damage type Normal
          • Unit - Create 1 DW_Dummy for (Owner of Dark_Wave_U1) at Dark_Wave_Point[3] facing Default building facing degrees
          • Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
          • Unit - Cause Dark_Wave_U1 to damage (Picked unit), dealing (150.00 + (50.00 x (Real((Level of Dark Wave for Dark_Wave_U1))))) damage of attack type Spells and damage type Normal
      • Custom script: call DestroyGroup(udg_Dark_Wave_Group)
Like this also doesn't work....
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
  • Dark Wave
    • Events
      • Unit - A unit starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Dark Wave
    • Actions
      • Set Dark_Wave_U1 = (Triggering unit)
      • Set Dark_Wave_Group = (Units within 175.00 of (Position of Dark_Wave_U1) matching (((Matching unit) belongs to an enemy of (Owner of Dark_Wave_U1)) Equal to True))
      • Unit Group - Pick every unit in Dark_Wave_Group and do (Actions)
        • Loop - Actions
          • Unit - Create 1 DW_Dummy for (Owner of Dark_Wave_U1) at ((Position of Dark_Wave_U1) offset by 150.00 towards (Facing of Dark_Wave_U1) degrees) facing Default building facing degrees
          • Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
          • Unit - Cause Dark_Wave_U1 to damage (Picked unit), dealing (50.00 x (Real((Level of Dark Wave for Dark_Wave_U1)))) damage of attack type Spells and damage type Normal
      • Custom script: call DestroyGroup(udg_Dark_Wave_Group)
      • Wait 0.5 seconds
      • Set Dark_Wave_U1 = (Triggering unit)
      • Set Dark_Wave_Group = (Units within 175.00 of (Position of Dark_Wave_U1) matching (((Matching unit) belongs to an enemy of (Owner of Dark_Wave_U1)) Equal to True))
      • Unit Group - Pick every unit in Dark_Wave_Group and do (Actions)
        • Loop - Actions
          • Unit - Create 1 DW_Dummy for (Owner of Dark_Wave_U1) at ((Position of Dark_Wave_U1) offset by 150.00 towards (Facing of Dark_Wave_U1) degrees) facing Default building facing degrees
          • Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
          • Unit - Cause Dark_Wave_U1 to damage (Picked unit), dealing (50.00 x (Real((Level of Dark Wave for Dark_Wave_U1)))) damage of attack type Spells and damage type Normal
      • Custom script: call DestroyGroup(udg_Dark_Wave_Group)
      • Wait 0.5 seconds
      • Set Dark_Wave_U1 = (Triggering unit)
      • Set Dark_Wave_Group = (Units within 175.00 of (Position of Dark_Wave_U1) matching (((Matching unit) belongs to an enemy of (Owner of Dark_Wave_U1)) Equal to True))
      • Unit Group - Pick every unit in Dark_Wave_Group and do (Actions)
        • Loop - Actions
          • Unit - Create 1 DW_Dummy for (Owner of Dark_Wave_U1) at ((Position of Dark_Wave_U1) offset by 150.00 towards (Facing of Dark_Wave_U1) degrees) facing Default building facing degrees
          • Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
          • Unit - Cause Dark_Wave_U1 to damage (Picked unit), dealing (50.00 x (Real((Level of Dark Wave for Dark_Wave_U1)))) damage of attack type Spells and damage type Normal
      • Custom script: call DestroyGroup(udg_Dark_Wave_Group)
 
Level 13
Joined
Oct 25, 2009
Messages
995
Status
Not open for further replies.
Top