Event-
A unit attacks
Condition-
Unit(Attacking Unit) has ability "Passive Thunder Clap"
Actions-
Set "RandomNumber" = Math - Random number from 1 to 10.
-If
"RandomNumber" = 1
-Then
Special Effect - Create "Thunderclap" effect at unit(attacking unit).
Animation - Play (attacking unit)'s "spell" (or "stomp" if they have it)
+And here you can add the buff "stun" or add damage. ETC.+
-Else
Do Nothing.
Event
Every 1 second
Condition
Action
set Group = Units in playable area
Pick every units in Group
add event to FabiozTrigger: Picked unit takes damage
call DestroyGroup(udg_Group).
Detect
Events
Map initialization
Time - Every 0.10 seconds of game time
Conditions
Actions
Custom script: set bj_wantDestroyGroup = true
Unit Group - Pick every unit in (Units in (Entire map)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is in Detect_Group) Equal to False
Then - Actions
Trigger - Add to Damage <gen> the event (Unit - (Picked unit) Takes damage)
Else - Actions
Damage
Events
Conditions
(Level of Passive Thunder Clap for (Damage source)) Greater than 0
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 10) Equal to 1
Then - Actions
Set temp_Point = (Position of (Triggering Unit))
Special Effect - Create a special effect at temp_Point using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
Animation - Play (Damage source)'s spell animation
EGUI - Create a Passive Thunder Clap Dummy for (Owner of (Damage source)) at temp_Point facing Default building facing and order the dummy to Human Mountain King - Storm Bolt (Triggering unit). Give an expiration timer that will expire in 1.00 seconds
Else - Actions