This is basic skill for Diablo II Necromancer's Corpse Explosion
[Targetable]
View attachment CorpseExplosionSpell.w3x
Corpse Explosion
Level 1 - 200 AoE
Level 2 - 250 AoE
Level 3 - 300 AoE
Hope it helps you about targeting corpses.
Well, here is the system for: Targetable summons and corpse explosion.
This is GUI System
Corpse Targetting
Create an ability from Channel, then
Change:
Text - Name --> As you want, this is your ability anyway
Data - Base Order ID --> Any Spell that the unit won't use in the game.
Data - Disable Other Abilities --> False
Data - Follow Through time --> 1.50
Data - Options --> Visible
Data - Target Type --> Unit or Point Target
Data - Cast Range, Cooldown, Mana Cost --> As you wish.
Copy the Triggers from here:
View attachment CorpseTargettingSystem.w3x
If you are lazy to download, use these codes below, Remember, Your Ability is your own ability!
Enjoy
[Targetable]
View attachment CorpseExplosionSpell.w3x
Corpse Explosion
Level 1 - 200 AoE
Level 2 - 250 AoE
Level 3 - 300 AoE
Hope it helps you about targeting corpses.
Well, here is the system for: Targetable summons and corpse explosion.
This is GUI System
Corpse Targetting
Create an ability from Channel, then
Change:
Text - Name --> As you want, this is your ability anyway
Data - Base Order ID --> Any Spell that the unit won't use in the game.
Data - Disable Other Abilities --> False
Data - Follow Through time --> 1.50
Data - Options --> Visible
Data - Target Type --> Unit or Point Target
Data - Cast Range, Cooldown, Mana Cost --> As you wish.
Copy the Triggers from here:
View attachment CorpseTargettingSystem.w3x
If you are lazy to download, use these codes below, Remember, Your Ability is your own ability!
Enjoy
Code:
Ability Check
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Your Ability
Actions
Set CorpseArea = (Units within 200.00 of (Target point of ability being cast) matching ((((Matching unit) is A Hero) Equal to False) and (((Matching unit) is dead) Equal to True)))
-------- 200.00 up here, is the radius of corpse checking. If within 200 AoE there is no corpse, the spell will be cancelled. --------
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in CorpseArea) Equal to 0
Then - Actions
Unit - Order (Casting unit) to Stop
Game - Display to (All players matching ((Owner of (Casting unit)) Equal to (Matching player))) for 1.80 seconds the text: ...
Else - Actions
Do nothing
-------- Up here is the cancellation --------
Custom script: call DestroyGroup(udg_CorpseArea)
Code:
Ability
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Your Ability
Actions
Set CorpseArea = (Units within 250.00 of (Target point of ability being cast) matching ((((Matching unit) is A Hero) Equal to False) and (((Matching unit) is dead) Equal to True)))
-------- 250 up here, is the area where the nearest corpse will be decided. It must be bigger than the corpse checking area. --------
Set CastPos = (Target point of ability being cast)
Unit Group - Pick every unit in CorpseArea and do (Actions)
Loop - Actions
Set CorpsePos2 = (Position of (Picked unit))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Distance between CastPos and CorpsePos2) Less than (Distance between CastPos and CorpsePos)
Then - Actions
Set Corpse = (Picked unit)
Set CorpsePos = (Position of Corpse)
Else - Actions
Do nothing
-------- Pick unit group up here, is the sorting. Where the nearest corpse will be selected as Unit Variable "Corpse" --------
Unit - Remove Corpse from the game
-------- Your Ability Effects Between! --------
-------- Your Ability Effects Between! --------
Custom script: call DestroyGroup(udg_CorpseArea)
Custom script: call RemoveLocation(udg_CastPos)
Custom script: call RemoveLocation(udg_CorpsePos)
Custom script: call RemoveLocation(udg_CorpsePos2)