- Joined
- Jun 2, 2009
- Messages
- 1,193
In my map you cannot attack allied units unless their hit points below 150.
Now i have created item that allows you attack them when their hit points below 200.
I am currently working like this but i am totally confused.
Now i have created item that allows you attack them when their hit points below 200.
-
Ally no attack
-
Events
- Unit - A unit Is attacked
-
Conditions
- ((Owner of (Attacked unit)) is an ally of (Owner of (Attacking unit))) Equal to True
- (Life of (Attacked unit)) Greater than or equal to 150.00
-
Actions
- Unit - Order (Attacking unit) to Stop
-
Events
I am currently working like this but i am totally confused.
-
Ally no attack creep Copy
-
Events
- Unit - A unit Is attacked
-
Conditions
- ((Owner of (Attacked unit)) is an ally of (Owner of (Attacking unit))) Equal to True
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Life of (Attacked unit)) Greater than or equal to 150.00
-
And - All (Conditions) are true
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
- ((Attacking unit) has an item of type Dagger of Sacrifice) Equal to False
- ((Attacking unit) has an item of type Enchanted Spear) Equal to False
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
Then - Actions
- Unit - Order (Attacking unit) to Stop
- Game - Display to (All players) for 5.00 seconds the text: HP greater than 150...
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Life of (Attacked unit)) Less than or equal to 200.00
-
And - All (Conditions) are true
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
- ((Attacking unit) has an item of type Dagger of Sacrifice) Equal to True
- ((Attacking unit) has an item of type Enchanted Spear) Equal to True
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
Then - Actions
- Unit - Order (Attacking unit) to Stop
- Game - Display to (All players) for 5.00 seconds the text: HP greater than 200...
- Else - Actions
-
If - Conditions
-
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