The thing is, defskull, you can't. The only way is to simulate the effect with triggers. The damage detection system won't be that helpful either.
Here is a Critical Strike simulation as an example.
-
Trigger CS 1
-
Events
-
Unit - A unit Is attacked
-
Conditions
-
(Level of Critical Strike for (Attacking unit)) Greater than 0
-
Actions
-
Trigger - Add to Trigger CS 2 <gen> the event (Unit - (Triggering unit) Takes damage)
The above adds events to the below trigger, and the below trigger triggers the Critical Strike.
-
Trigger CS 2
-
Events
-
Conditions
-
(Level of Critical Strike 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 100) Less than 15
-
(Damage taken) Greater than or equal to 1.00
-
Then - Actions
-
-------- Stops an endless loop of damaging --------
-
Trigger - Turn off (This trigger)
-
-------- Combined with the above trigger, this trigger multiplies your damage dealt --------
-
-------- Since you already damaged this guy, you just have to decrease the life --------
-
-------- Level increases multiplier --------
-
For each (Integer A) from 1 to (Level of Critical Strike for (Damage source)), do (Actions)
-
Loop - Actions
-
Unit - Cause (Damage source) to damage (Triggering unit), dealing (Damage taken) damage of attack type Chaos and damage type Universal
-
-------- Floating Text! YAYYY! --------
-
Floating Text - Create floating text that reads (String(((Integer((Damage taken))) x ((Level of Critical Strike for (Damage source)) + 1)))) above (Triggering unit) with Z offset 64.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
-
Floating Text - Set the velocity of (Last created floating text) to 60.00 towards 90.00 degrees
-
Floating Text - Change (Last created floating text): Disable permanence
-
Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
-
Floating Text - Change the fading age of (Last created floating text) to 1.70 seconds
-
-------- Stops an endless loop of damaging --------
-
Trigger - Turn on (This trigger)
-
Else - Actions