Code:
Headshot Trigger
Events
Unit - A unit Is attacked
Conditions
Actions
Set Integer = (Random integer number between 1 and 100)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Or - Any (Conditions) are true
Conditions
Integer Equal to 1
Integer Equal to 2
Integer Equal to 3
Integer Equal to 4
Integer Equal to 5
Then - Actions
Unit - Kill (Attacked unit)
Game - Display to (All players) the text: (Player_Names[(Player number of (Owner of (Attacking unit)))] + (Has HeadShot + Player_Colors[(Player number of (Owner of (Attacked unit)))]))
Else - Actions
Code:
If - Conditions
Or - Any (Conditions) are true
Conditions
Integer Equal to 1
Integer Equal to 2
Integer Equal to 3
Integer Equal to 4
Integer Equal to 5
YOu see this trigger? The more
Integer Equal to (##) you add, the more %'age you have to kill the
Attacking Unit. So if you have 10 of those conditions, you have a 10/100 chance to kill the
Attacking Unit, or a 10% chance, GOt it now?