- Joined
- May 6, 2007
- Messages
- 87
Hey guys... I'm trying to create something that stops a player from attacking an allied player, but it isn't working.
Player 1, 2, and 3 are all human players.
Player 4 is a computer.
Any ideas?
Thanks in advance.
Player 1, 2, and 3 are all human players.
Player 4 is a computer.
-
Friendly Fire
-
Events
- Unit - A Unit is issued an order targeting an object
-
Conditions
-
And - All (Conditions) are true
-
Conditions
- (Issued Order) Equal to (Order(attack))
-
Or - Any (Conditions) are true
-
Conditions
- (Owner of (Target unit of issued order)) Equal to Player 1 (Red)
- (Owner of (Target unit of issued order)) Equal to Player 2 (Blue)
- (Owner of (Target unit of issued order)) Equal to Player 3 (Teal)
- (Owner of (Target unit of issued order)) Equal to Player 4 (Purple)
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Owner of (Ordered unit)) Equal to Player 1 (Red)
- (Owner of (Ordered unit)) Equal to Player 2 (Blue)
- (Owner of (Ordered unit)) Equal to Player 3 (Teal)
-
Conditions
-
Conditions
-
And - All (Conditions) are true
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
And - All (Conditions) are true
-
Conditions
- (Owner of (Target unit of issued order)) Equal to Player 4 (Purple)
- (Percentage life of (Target unit of issued order)) Less than or equal to 15.00
-
Conditions
-
And - All (Conditions) are true
-
Then - Actions
- Do nothing
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
And - All (Conditions) are true
-
Conditions
- (Owner of (Target unit of issued order)) Equal to Player 4 (Purple)
- (Percentage life of (Target unit of issued order)) Greater than 15.00
-
Conditions
-
And - All (Conditions) are true
-
If - Conditions
-
Then - Actions
- Unit - Order (Ordered unit) to Stop
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Owner of (Target unit of issued order)) Equal to Player 1 (Red)
- (Owner of (Target unit of issued order)) Equal to Player 2 (Blue)
- (Owner of (Target unit of issued order)) Equal to Player 3 (Teal)
-
Conditions
-
Or - Any (Conditions) are true
-
If - Conditions
-
Then - Actions
- Unit - Order (Ordered unit) to Stop
-
Else - Actions
- Do nothing
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
Any ideas?
Thanks in advance.