!!! This is my first submission, I've made many things but never submitted anything because I thought they were rather crap. Be harsh whatever, because all said will be taken as constructive criticism to me !!!
=== No SCREEN SHOTS: because there is no fancy SFX's ===
DESCRIPTION
Narcolepsy Aura - Enemy attackers have a chance to fall asleep.
MUI: Yes.
Laggless: I think so.
Leakless: I think so.
CHANGES
- Now MUI
- Now affects nearby allied units
- Renamed to Narcolepsy Aura (Thanks Ghostwind)
CODE
=== No SCREEN SHOTS: because there is no fancy SFX's ===
DESCRIPTION
Narcolepsy Aura - Enemy attackers have a chance to fall asleep.
MUI: Yes.
Laggless: I think so.
Leakless: I think so.
CHANGES
- Now MUI
- Now affects nearby allied units
- Renamed to Narcolepsy Aura (Thanks Ghostwind)
CODE
Trigger:
- Sleeplord Narcolepsy Aura
- Events
- Unit - A unit Is attacked
- Conditions
- Or - Any (Conditions) are true
- Conditions
- ((Attacking unit) has buff Narcolepsy Aura 1 ) Equal to True
- ((Attacking unit) has buff Narcolepsy Aura 2 ) Equal to True
- ((Attacking unit) has buff Narcolepsy Aura 3 ) Equal to True
- ((Attacking unit) has buff Narcolepsy Aura 4 ) Equal to True
- Conditions
- Or - Any (Conditions) are true
- Actions
- Set SleepLoc = (Position of (Attacked unit))
- Set SleepPercent = (Random integer number between 1 and 100)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Attacking unit) has buff Narcolepsy Aura 1 ) Equal to True
- SleepPercent Less than or equal to 5
- Then - Actions
- Unit - Create 1 Dummy Sleep Caster for (Owner of (Attacked unit)) at SleepLoc facing Default building facing degrees
- Unit - Order (Last created unit) to Undead Dreadlord - Sleep (Attacking unit)
- Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
- Else - Actions
- Do nothing
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Attacking unit) has buff Narcolepsy Aura 2 ) Equal to True
- SleepPercent Less than or equal to 10
- Then - Actions
- Unit - Create 1 Dummy Sleep Caster for (Owner of (Attacked unit)) at SleepLoc facing Default building facing degrees
- Unit - Order (Last created unit) to Undead Dreadlord - Sleep (Attacking unit)
- Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
- Else - Actions
- Do nothing
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Attacking unit) has buff Narcolepsy Aura 3 ) Equal to True
- SleepPercent Less than or equal to 15
- Then - Actions
- Unit - Create 1 Dummy Sleep Caster for (Owner of (Attacked unit)) at SleepLoc facing Default building facing degrees
- Unit - Order (Last created unit) to Undead Dreadlord - Sleep (Attacking unit)
- Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
- Else - Actions
- Do nothing
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Attacking unit) has buff Narcolepsy Aura 4 ) Equal to True
- SleepPercent Less than or equal to 20
- Then - Actions
- Unit - Create 1 Dummy Sleep Caster for (Owner of (Attacked unit)) at SleepLoc facing Default building facing degrees
- Unit - Order (Last created unit) to Undead Dreadlord - Sleep (Attacking unit)
- Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
- Else - Actions
- Do nothing
- If - Conditions
- Custom script: call RemoveLocation( udg_SleepLoc )
- Events