A basic setup for checking for certain units within a region. If i have two teams of 5 (teamA consisting of players1-5 and teamB consisting of players 6-10) how do i make the "player c" (shown above) refer to at least 1 player in teamA and 1 player in teamB?
I'm trying to setup a trigger for a king of the hill match and I wan't certain actions to be taken if both opposing teams are in the same region at once? I have it setup so that if anyone from team A is in the hill then variableA is modified by +1 and visa versa for teamB but i dont want the variables to be modified if at least 1 player from each team is in a given region at the same time.
Variable - Set AllyUnits = (Number of Living units in (Units in 1 having alliance Ally with player (Triggering player) matching Excluded: Missile, Dead, Hidden, with at most Any Amount))
Variable - Set EnemyUnits = (Number of Living units in (Units in 1 having alliance Enemy with player (Triggering player) matching Excluded: Missile, Dead, Hidden, with at most Any Amount))
Thank you so much this makes good sense indeed. I created this post because I felt the variable one might be to difficult to understand. And I wasn't sure how to delete it. Thank you
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Here is an action I'm currently using:
A basic setup for checking for certain units within a region. If i have two teams of 5 (teamA consisting of players1-5 and teamB consisting of players 6-10) how do i make the "player c" (shown above) refer to at least 1 player in teamA and 1 player in teamB?
I'm trying to setup a trigger for a king of the hill match and I wan't certain actions to be taken if both opposing teams are in the same region at once? I have it setup so that if anyone from team A is in the hill then variableA is modified by +1 and visa versa for teamB but i dont want the variables to be modified if at least 1 player from each team is in a given region at the same time.
@Etravex: Go
integer AllyUnits = 0
integer EnemyUnits = 0
Variable - Set AllyUnits = (Number of Living units in (Units in 1 having alliance Ally with player (Triggering player) matching Excluded: Missile, Dead, Hidden, with at most Any Amount))
Variable - Set EnemyUnits = (Number of Living units in (Units in 1 having alliance Enemy with player (Triggering player) matching Excluded: Missile, Dead, Hidden, with at most Any Amount))
If (AllyUnits > 0 && EnemyUnits > 0)
variableA = variableA
Else
variableA = variableA + 1
There's my mixture of code, pseudocode; that's basically how you would do it if I am understanding your question correctly.
@xenrathe: Go
Thank you so much this makes good sense indeed. I created this post because I felt the variable one might be to difficult to understand. And I wasn't sure how to delete it. Thank you