I'm having a problem with my team setting trigger, the function of the trigger is to Pick all players in one team and cause them to treat all players in another team as a enemy. Currently my trigger looks like this (see below), but since the numbers of all picked players aren't stored within a new loop function i encounter a problem where only one player is remembered after the loop.
Player Group - Pick each player in Team 1 and do (Actions)
Actions
General - Pick each integer from 1 to (Number of players in (Active Players)), and do (Actions)
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Player (Picked integer) from Team 2) == (Convert Boolean To Integer(true))
Then
Player - Make player (Picked player) and player (Player (Picked integer) from Team 2) treat each other as Enemy
Else
This trigger doesn't work properly because the "Picked Player" won't be remembered in the loop "Pick each integer from X to Y", therefor player 1 will remain as the only player out of all the "picked players" and only player 1 will become an enemy of team 2.
Is it possible to create a function that causes all players in Team 1 to treat all players in Team 2 as either enemies or allied? If not, how can i make a system that tracks the player number of each player within a team?
I'm having a hard time to figure out what to do to solve this issue, please help :)
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I'm having a problem with my team setting trigger, the function of the trigger is to Pick all players in one team and cause them to treat all players in another team as a enemy. Currently my trigger looks like this (see below), but since the numbers of all picked players aren't stored within a new loop function i encounter a problem where only one player is remembered after the loop.
Player Group - Pick each player in Team 1 and do (Actions)
Actions
General - Pick each integer from 1 to (Number of players in (Active Players)), and do (Actions)
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Player (Picked integer) from Team 2) == (Convert Boolean To Integer(true))
Then
Player - Make player (Picked player) and player (Player (Picked integer) from Team 2) treat each other as Enemy
Else
This trigger doesn't work properly because the "Picked Player" won't be remembered in the loop "Pick each integer from X to Y", therefor player 1 will remain as the only player out of all the "picked players" and only player 1 will become an enemy of team 2.
Is it possible to create a function that causes all players in Team 1 to treat all players in Team 2 as either enemies or allied? If not, how can i make a system that tracks the player number of each player within a team?
I'm having a hard time to figure out what to do to solve this issue, please help :)