- Joined
- Dec 22, 2008
- Messages
- 490
Q1. I have some problems with the conditions for anti-teamkilling and they stand like that:
In the second one I wanted the Titan or Minion not be able to kill each other.
What did I do wrong?
Q2. The second question is how to get experience for killing structures? I did enable that option in Gameplay Constants, but, unlike units, I cannot set a proper level for the buildings to show how much xp the killer recieves. Do I need to work this manually with triggers? Like, if building is destroyed, give 200xp to the attacking unit?
-
Teamkill Protection
-
Events
- Unit - A unit Is attacked
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Unit-type of (Triggering unit)) Equal to |cfffaf7a5Murloc Tiderunner|r) or ((Unit-type of (Triggering unit)) Equal to |cff45c8f2Naga Siren|r)
- ((Unit-type of (Attacking unit)) Equal to |cffff8000Ancient Titan of the Seas|r) or ((Unit-type of (Attacking unit)) Equal to |cffff8000Minion of the Seas|r)
-
Then - Actions
- Do nothing
-
Else - Actions
- Unit - Order (Attacking unit) to Stop
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Unit-type of (Triggering unit)) Equal to |cffff8000Ancient Titan of the Seas|r) or ((Unit-type of (Attacking unit)) Equal to |cffff8000Minion of the Seas|r)
- ((Unit-type of (Attacking unit)) Equal to |cffff8000Ancient Titan of the Seas|r) or ((Unit-type of (Attacking unit)) Equal to |cffff8000Minion of the Seas|r)
-
Then - Actions
- Unit - Order (Attacking unit) to Stop
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
In the second one I wanted the Titan or Minion not be able to kill each other.
What did I do wrong?
Q2. The second question is how to get experience for killing structures? I did enable that option in Gameplay Constants, but, unlike units, I cannot set a proper level for the buildings to show how much xp the killer recieves. Do I need to work this manually with triggers? Like, if building is destroyed, give 200xp to the attacking unit?