- Joined
- Jul 14, 2011
- Messages
- 3,213
Hi !
I want to make all player units to have a 25% chance to miss IF they aren't within 400 Radius of a Light Source (Light Source may be a Hero with an item with 'Glowing' ability, or a Preplaced torch / fire / lamp)
I'm not sure about how to do it. I did this:
- I also have to exclude the units within a lightsource, but I don't know how to do it.
- The Dummy has no model and has locust, as a Dummy is supposed to be
- Curse has a 3.2 seg duration, and a 0.25 Chance to Miss. 9999 range to cast.
- I know I have to set the Temp_Point of the unit and remove it later, but I DON'T KNOW WHAT UNIT xD and I don't know how to set the variable either to include the position of each unit.
I want to make all player units to have a 25% chance to miss IF they aren't within 400 Radius of a Light Source (Light Source may be a Hero with an item with 'Glowing' ability, or a Preplaced torch / fire / lamp)
I'm not sure about how to do it. I did this:
-
Night effects Turn On
-
Events
- Game - The in-game time of day becomes Equal to 18.00
- Conditions
-
Actions
- Countdown Timer - Start NightCurseTimer as a Repeating timer that will expire in 3.00 seconds
-
Events
-
Night effects Turn Off
-
Events
- Game - The in-game time of day becomes Equal to 6.00
- Conditions
-
Actions
- Countdown Timer - Pause NightCurseTimer
-
Events
-
Night Blind
-
Events
- Time - NightCurseTimer expires
- Conditions
-
Actions
- Set UnitsToBlind = (Units in (Playable map area) matching (((Owner of ([I DON'T KNOW WHAT UNIT)) controller) Equal to User))
- Set IntUnitsToBlind = (Number of units in UnitsToBlind)
-
For each (Integer A) from 1 to IntUnitsToBlind, do (Actions)
-
Loop - Actions
- Unit - Create 1 Dummy Chance to Miss at Night for (NEUTRAL HOSTILE, I GUESS) at (Position of [I DON'T KNOW WHAT UNIT]) facing Default building facing degrees
- Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
- Unit - Order (Last created unit) to Undead Banshee - Curse [I DON'T KNOW WHAT UNIT]
-
Loop - Actions
-
Events
- I also have to exclude the units within a lightsource, but I don't know how to do it.
- The Dummy has no model and has locust, as a Dummy is supposed to be
- Curse has a 3.2 seg duration, and a 0.25 Chance to Miss. 9999 range to cast.
- I know I have to set the Temp_Point of the unit and remove it later, but I DON'T KNOW WHAT UNIT xD and I don't know how to set the variable either to include the position of each unit.