Spell not dealing damage

Firezy

New Member
Reaction score
14
Basically I want the spell to deal .2x Str of the casting unit every second for 13 seconds, since that's how long the channeling spell lasts

Can anyone find out whats wrong or tell me how I can change it so that it works?

Trigger:
  • Shroud
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Shroud
    • Actions
      • Set unit_shroud = (Triggering unit)
      • Set point_shroud = (Target point of ability being cast)
      • Unit - Create 1 Dummy (Shroud Model) (Custom Campaign) for (Owner of unit_shroud) at point_shroud facing Default building facing degrees
      • Unit - Add a 13.00 second Generic expiration timer to (Last created unit)
      • Trigger - Turn on Shroud Enemy <gen>
      • Wait 13.00 seconds
      • Trigger - Turn off Shroud Enemy <gen>
      • Custom script: call RemoveLocation (udg_point_shroud)

Trigger:
  • Shroud Enemy
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Set unitgroup_shroude = (Units within 800.00 of (Target point of ability being cast) matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) belongs to an enemy of (Owner of unit_shroud)) Equal to True) and (((Matching unit) is alive) Equal to True))))
      • Unit Group - Pick every unit in unitgroup_shroude and do (Actions)
        • Loop - Actions
          • Unit - Cause unit_shroud to damage (Picked unit), dealing ((Real((Strength of unit_shroud (Include bonuses)))) x 0.20) damage of attack type Chaos and damage type Universal
      • Custom script: call DestroyGroup (udg_unitgroup_shroude)
 

Emu.Man00

New Member
Reaction score
41
Trigger:
  • Shroud Enemy
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Set unitgroup_shroude = (Units within 800.00 of (Target point of ability being cast)

The event is every 1 second; no ability is being cast.
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Freehand:
Trigger:
  • Shroud
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Shroud
    • Actions
      • Set unit_shroud = (Triggering unit)
      • Set point_shroud = (Target point of ability being cast)
      • Unit - Create 1 Dummy (Shroud Model) (Custom Campaign) for (Owner of unit_shroud) at point_shroud facing Default building facing degrees
      • Unit - Add a 15.00 second Generic expiration timer to (Last created unit)
      • Trigger - Turn on Shroud Enemy <gen>
      • Custom script: call RemoveLocation (udg_point_shroud)

Trigger:
  • Shroud Enemy
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
      • shroudTimer Less than (<) 13
    • Actions
      • Set unitgroup_shroude = (Units within 800.00 of point_shroud matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) belongs to an enemy of (Owner of unit_shroud)) Equal to True) and (((Matching unit) is alive) Equal to True))))
      • Unit Group - Pick every unit in unitgroup_shroude and do (Actions)
        • Loop - Actions
          • Unit - Cause unit_shroud to damage (Picked unit), dealing ((Real((Strength of unit_shroud (Include bonuses)))) x 0.20) damage of attack type Chaos and damage type Universal
      • Set shroudTimer = shroudTimer + 1
      • Custom script: call DestroyGroup (udg_unitgroup_shroude)

Try that :) .
Oh, and shroudTimer is an Integer variable.

EDIT: This also isn't MUI, I could help make it that way if you want.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top