I'm trying to create a no target spell, which damage every enemy units(targets) in 500 distance of caster, also damage every enemy units in 250 distance of (targets). Here's my triggers:
Sorry for my bad english.
Anyone can help ?
-
Darkness Fall Part 1
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Darkness Fall
-
Actions
- Set DarknessFallCaster = (Triggering unit)
- Set DarknessFallLoc = (Position of DarknessFallCaster)
- Special Effect - Create a special effect attached to the origin of DarknessFallCaster using war3mapImported\Desecrate.mdx
- Set DarknessFallSFX = (Last created special effect)
- Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units within 500.00 of DarkLightningLoc matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of DarknessFallCaster)) Equal to True)))) and do (Actions)
-
Loop - Actions
- Set DarknessFallTarget = (Picked unit)
- Set DarknessFallLoc2 = (Position of DarknessFallTarget)
- Special Effect - Create a special effect at DarknessFallLoc2 using war3mapImported\Doomsday.mdx
- Special Effect - Destroy (Last created special effect)
- Unit - Cause DarknessFallCaster to damage DarknessFallTarget, dealing 25.00 damage of attack type Spells and damage type Normal
- Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units within 250.00 of DarknessFallLoc2 matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of DarknessFallCaster)) Equal to True)))) and do (Actions)
-
Loop - Actions
- Unit - Cause DarknessFallCaster to damage (Picked unit), dealing (25.00 x (Real((Level of Darkness Fall for DarknessFallCaster)))) damage of attack type Spells and damage type Normal
-
Loop - Actions
- Custom script: call RemoveLocation(udg_DarknessFallLoc2)
-
Loop - Actions
- Custom script: call RemoveLocation(udg_DarknessFallLoc)
- Countdown Timer - Start DarknessFallTimer[1] as a One-shot timer that will expire in 2.00 seconds
- Countdown Timer - Create a timer window for DarknessFallTimer[1] with title Darkness Fall 1
- Set DarknessFallCTimer[1] = (Last created timer window)
- Countdown Timer - Hide DarknessFallCTimer[1]
-
Events
-
Darkness Fall Part 2
-
Events
- Time - DarknessFallTimer[1] expires
- Conditions
-
Actions
- Countdown Timer - Destroy DarknessFallCTimer[1]
- Special Effect - Destroy DarknessFallSFX
-
Events
Sorry for my bad english.
Anyone can help ?