Unit Remove Spell

EatShrooms

You can change this now in User CP.
Reaction score
44
I'm looking to have a spell remove units within the radius that a spell is used. How can I go about doing this?
 

Syndrome

You can change this now in User CP.
Reaction score
126
Here's a really crude trigger:

Events:
A unit finishes casting a spell
Conditions:
Ability being cast equal to The Void
Actions:
Set temp_point at target point of ability being cast
Pick Every Unit within 500 of temp_point and do actions:
Actions:
Remove Picked Unit from the Game


But wouldn't killing look better?
 

Syndrome

You can change this now in User CP.
Reaction score
126
You know what you CAN do?

Here's an updated trigger, one that will also NOT kill/remove your own units:

Events:
A unit finishes casting an Ability
Conditions:
Ability being Cast equal to Void
Actions:
set temp_point at target point of ability being cast
Pick every unit within 500 units of temp_point and do actions:
Actions:
If:
Owner of Picked Unit not equal to Ally of Owner of Triggering Unit
Then:
Special Effect: Create a Special effect positioned at Position of Picked Unit using Undead_Building Blow Up... Thing...
Unit- Remove Picked Unit
Else:
Do Nothing
For Every Integer A from 1-40 do Actions
Actions:
Create a Special Effect at Random Point in Region centered at temp_point size [500,500] using Abolish Magic

Now that looks MUCH better
but still, killing units is MUCH more bugless and unlaggy
btw, this trigger is NOT leakfree as it was freehanded
 

vypur85

Hibernate
Reaction score
803
Code:
For Every Integer A from 1-40 do Actions
Actions:
Create a Special Effect at Random Point in Region centered at temp_point size [500,500] using Abolish Magic

Wow... You even added eyecandy for the spell :p >.<

Code:
A unit finishes casting an Ability
Not sure if this will work. I think using 'Starts the effect of ability' would be a better choice (IF you are not using channeling spell).
 

Syndrome

You can change this now in User CP.
Reaction score
126
Code:
For Every Integer A from 1-40 do Actions
Actions:
Create a Special Effect at Random Point in Region centered at temp_point size [500,500] using Abolish Magic

Wow... You even added eyecandy for the spell :p >.<

Code:
A unit finishes casting an Ability
Not sure if this will work. I think using 'Starts the effect of ability' would be a better choice (IF you are not using channeling spell).

lol, yea, would look MUCH more better then units just disappearing entirely without a trace.

and yes, the Starts the effect of ability would indeed work better, but I am not sure if he is using channel or not.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top