nabbig2
New Member
- Reaction score
- 43
I want to make an ability, probably based off silence or cluster rockets perhaps, that slows the enemies it hits in the circular AOE. How would I go about doing that?
How would I set the variable to the area of effect that the spell casts? I have no clue how to do it.
Event:
A unit starts casting a ability of "your ability"
Condition:
Picked unit is equal to enemy of triggering player.
Action:
Pick every unit(Every unit within AOE of triggering unit) and do Actions
Loop actions
Unit: Do slow poisen to picked unit
Mass Sleep
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Mass Slow
Actions
Unit Group - Pick every unit in 300 radius of (Target point of ability being cast) and do (Actions)
Loop - Actions
Unit - Create 1 Dummy for (Owner of (Triggering unit)) at (Position of (Picked unit)) facing 0.00 degrees
Unit - Add Sleep (Mass Slow) to (Last created unit)
Unit - Order (Last created unit) to Human Sorceress - Slow (Picked unit)
Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
infernals ability
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Infernal's Move
Actions
Unit Group - Pick every unit in (Units within 55.00 of (Target point of ability being cast)) and do (Actions)
Loop - Actions
Unit - Create 1 Dummy slow infernal for (Owner of (Triggering unit)) at (Position of (Picked unit)) facing Default building facing degrees
Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
Unit - Set level of Slow for infernals ability for (Last created unit) to 1
Unit - Order (Last created unit) to Human Sorceress - Slow (Picked unit)
Thankyou for helping, but is this right? Because it's not working.
Code:infernals ability Events Unit - A unit Starts the effect of an ability Conditions (Ability being cast) Equal to Infernal's Move Actions Unit Group - Pick every unit in (Units within 55.00 of (Target point of ability being cast)) and do (Actions) Loop - Actions Unit - Create 1 Dummy slow infernal for (Owner of (Triggering unit)) at (Position of (Picked unit)) facing Default building facing degrees Unit - Add a 5.00 second Generic expiration timer to (Last created unit) [COLOR="red"]Unit - Add Sleep (Mass Sleep) to (Last created unit) [/COLOR] Unit - Set level of Slow for infernals ability for (Last created unit) to 1 [COLOR="Red"]dont need this it default level 1[/COLOR] Unit - Order (Last created unit) to Human Sorceress - Slow (Picked unit) [/COLOR]
Nice :thup:You do know you already have abilities in the Object Editor that can slow in an AOE either channeling or instant cast? Cause Silence can slow and it's instant cast, you can also take off the stop spell casting thing if you want. And if you want chanelling just go to Earthquake or Cloud, they'll do the same stuff for you, no need to go into triggers for that you know.
Nice :thup:
But the trigger that was posted alows more learning and variations.