Here is the basic idea of the spell I am trying to create.
Monster casts his ability; Hypnotic Void (Based on Channel)
After successfully channelling for 2 seconds, a huge AOE debuff (which pierces spell immunity) silences every unit in a 1200 radius for 8 seconds.
While silenced, Hero units vision is reduced to 400, and non-hero units vision is reduced to 0 (So you completely lose vision over your non-hero units). This is done using the "Unit - Set Unit: (Picked unit)'s Real Field: Sight Radius ('usir') to Value: 0.00".
After the 8 second duration, all the affected units vision is returned to their original values.
Here is what I have as a very basic test to see if the vision and silence part works.
Edit: I started making an attempt at converting this into an MUI spell. I just got a little lost with the stating of the variables. I have only ever successfully created a single targeted MUI spell (which didn't involve Dummy units). Was not sure what is the best way to go about making an MUI spell that is AOE.
Monster casts his ability; Hypnotic Void (Based on Channel)
After successfully channelling for 2 seconds, a huge AOE debuff (which pierces spell immunity) silences every unit in a 1200 radius for 8 seconds.
While silenced, Hero units vision is reduced to 400, and non-hero units vision is reduced to 0 (So you completely lose vision over your non-hero units). This is done using the "Unit - Set Unit: (Picked unit)'s Real Field: Sight Radius ('usir') to Value: 0.00".
After the 8 second duration, all the affected units vision is returned to their original values.
Here is what I have as a very basic test to see if the vision and silence part works.
-
HypnoticVoidCast
-
Events
-
Unit - A unit Finishes casting an ability
-
-
Conditions
-
(Ability being cast) Equal to Hypnotic Void
-
-
Actions
-
Set hvCast = (Casting unit)
-
Set hvGroup = (Units within 1200.00 of (Position of hvCast) matching ((((Matching unit) is Mechanical) Equal to False) and ((((Matching unit) is A structure) Equal to False) and (((Matching unit) belongs to an ally of (Owner of hvCast)) Equal to False))))
-
Unit - Create 1 Dummy (Hypnotic Void) for (Owner of hvCast) at (Position of hvCast) facing (Position of hvCast)
-
Unit - Add Hypnotic Void (Dummy Ability) to (Last created unit)
-
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
-
Unit - Set level of Hypnotic Void (Dummy Ability) for (Last created unit) to (Level of Hypnotic Void for hvCast)
-
Unit - Order (Last created unit) to Neutral Dark Ranger - Silence (Position of hvCast)
-
Trigger - Turn on HypnoticVoidEffect <gen>
-
-
-
HypnoticVoidEffect
-
Events
-
Time - Every 0.20 seconds of game time
-
-
Conditions
-
Actions
-
Unit Group - Pick every unit in hvGroup and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) has buff Silence) Equal to True
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) is An Ancient) Equal to False
-
-
Then - Actions
-
Unit - Set Unit: (Picked unit)'s Real Field: Sight Radius ('usir') to Value: 0.00
-
-
Else - Actions
-
Unit - Set Unit: (Picked unit)'s Real Field: Sight Radius ('usir') to Value: 400.00
-
-
-
-
Else - Actions
-
Trigger - Turn off (This trigger)
-
-
-
-
-
-
Edit: I started making an attempt at converting this into an MUI spell. I just got a little lost with the stating of the variables. I have only ever successfully created a single targeted MUI spell (which didn't involve Dummy units). Was not sure what is the best way to go about making an MUI spell that is AOE.
Last edited: