- Joined
- Dec 3, 2012
- Messages
- 117
So, for this blind skill I want it to actually work as Blind.
So what I'm trying is when a unit is "blinded" I want the units owner to have a modified field of vision;
- Black Mask all around the unit
- Slight radius of visibility around the unit in the black
Crude Paint Example: http://imgur.com/U2p5ZmK
The problem is, I tried creating a temporary black mask for the player and then a visibility modifier radius around the unit, but it doesn't take 2 visibility masks at the same time, it seems =/
So what I'm trying is when a unit is "blinded" I want the units owner to have a modified field of vision;
- Black Mask all around the unit
- Slight radius of visibility around the unit in the black
Crude Paint Example: http://imgur.com/U2p5ZmK
The problem is, I tried creating a temporary black mask for the player and then a visibility modifier radius around the unit, but it doesn't take 2 visibility masks at the same time, it seems =/
-
Blind
-
Blind
-

Events
-


Unit - A unit Is attacked
-
-

Conditions
-


((Attacked unit) is A Hero) Equal to True
-
-

Actions
-


Set TEMPUnitGroup = (Units of type (Unit-type of HEROPlayerHero[(Player number of (Owner of (Attacked unit)))]))
-


Set TEMPPlayerGroup = (Player group((Owner of (Attacked unit))))
-


Set TEMPPlayer = (Owner of (Attacked unit))
-


-------- Blind Attack Lv 1 --------
-


-------- ---Familiar--- --------
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Unit-type of (Attacking unit)) Equal to Familiar
-
-



Then - Actions
-




Set TEMPInteger = (Random integer number between 1 and 10)
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






TEMPInteger Equal to 5
-
-





Then - Actions
-






Set TEMPInteger = 0
-






Visibility - Create an initially Enabled visibility modifier for TEMPPlayer emitting Black mask across (Current camera bounds)
-






Visibility - Create an initially Enabled visibility modifier for TEMPPlayer emitting Visibility from (Position of HEROPlayerHero[(Player number of TEMPPlayer)]) to a radius of 300.00
-






Wait 5.00 seconds
-
-





Else - Actions
-
-
-



Else - Actions
-
-
-




