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?
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)
- Events
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
- Loop - Actions
- Custom script: call DestroyGroup (udg_unitgroup_shroude)
- Events