Example
Events
Unit - A unit Dies
Conditions
((Owner of (Killing unit)) Equal to Player 1 (Red)) and (((Dying unit) belongs to an ally of Player 1 (Red)) Not equal to True)
Actions
Set Kill_Count = (Kill_Count + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Kill_Count Equal to 500
Then - Actions
Unit - Create 1 Footman for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
Else - Actions
((Owner of (Killing unit)) Equal to Player 1 (Red)) and (((Dying unit) belongs to an ally of Player 1 (Red)) Not equal to True)
Set Kill_Count = (Kill_Count + 1)
Kill_Count Equal to 500
(Kill_Count + 1) = Arithmitic, allows you two +, -, x or divide two values
Kill_Count Equal to 500 = Integer comparison
((Owner of (Killing unit)) Equal to Player 1 (Red)) and (((Dying unit) belongs to an ally of Player 1 (Red)) Not equal to True)
Unit - Create 1 Unit Selector for Player 1 (Red) at (Center of Golem Parts <gen>) facing Default building facing degrees
Example
Events
Unit - A unit Dies
Conditions
Or - Any (Conditions) are true
Conditions
(Owner of (Killing unit)) Equal to Player 1 (Red)
(Owner of (Killing unit)) Equal to Player 2 (Blue)
(Owner of (Killing unit)) Equal to Player 3 (Teal)
(Owner of (Killing unit)) Equal to Player 4 (Purple)
(Owner of (Killing unit)) Equal to Player 5 (Yellow)
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Dying unit) belongs to an ally of (Owner of (Killing unit))) Not equal to True
Then - Actions
Set Kill_Count[(Player number of (Owner of (Killing unit)))] = (Kill_Count[(Player number of (Owner of (Killing unit)))] + 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Kill_Count[(Player number of (Owner of (Killing unit)))] Equal to 500
Then - Actions
Unit - Create 1 Footman for (Owner of (Killing unit)) at (Center of (Playable map area)) facing Default building facing degrees
Else - Actions
Else - Actions
Untitled Trigger 003
Events
Unit - A unit Dies
Conditions
Or - Any (Conditions) are true
Conditions
(Owner of (Killing unit)) Equal to Player 1 (Red)
(Owner of (Killing unit)) Equal to Player 2 (Blue)
(Owner of (Killing unit)) Equal to Player 3 (Teal)
(Owner of (Killing unit)) Equal to Player 4 (Purple)
(Owner of (Killing unit)) Equal to Player 5 (Yellow)
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Dying unit) belongs to an ally of (Owner of (Killing unit))) Not equal to True
Then - Actions
Set Kill_Count_GOLEMPARTS[(Player number of (Owner of (Killing unit)))] = Kill_Count_GOLEMPARTS[((Player number of (Owner of (Killing unit))) + 1)]
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Kill_Count_GOLEMPARTS[(Player number of (Owner of (Killing unit)))] Equal to 5
Then - Actions
Unit - Create 1 Unit Selector for (Owner of (Killing unit)) at (Center of Golem Parts <gen>) facing Default building facing degrees
Else - Actions
Else - Actions