Wolf Knight
New Member
- Reaction score
- 3
I don't get why my triggers won't work in the way i wanted them to
Any ideas?
Any ideas?
Trigger:
- Setting Random Variables 1
- Events
- Time - Elapsed game time is 1.00 seconds
- Conditions
- Actions
- Set RandomGame = (Number of players in (All players matching (((Matching player) slot status) Equal to Is playing)))
- Set RandomTeam1 = ((RandomGame / 2) + 1)
- Set RandomTeam2 = (RandomGame - RandomTeam1)
- Trigger - Run Setting Random Variables 2 <gen> (checking conditions)
- Events
Trigger:
- Setting Random Variables 2
- Events
- Conditions
- Actions
- Wait 0.50 seconds
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- RandomTeam2 Equal to 3
- Then - Actions
- Set PlayerNumber1 = (Random integer number between 1 and RandomGame)
- Set PlayerNumber2 = (Random integer number between 1 and RandomGame)
- Set PlayerNumber3 = (Random integer number between 1 and RandomGame)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- RandomTeam2 Equal to 3
- PlayerNumber1 Not equal to PlayerNumber2
- PlayerNumber1 Not equal to PlayerNumber3
- PlayerNumber2 Not equal to PlayerNumber3
- Then - Actions
- Trigger - Run Setting Random Teams <gen> (checking conditions)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- RandomTeam2 Equal to 3
- Or - Any (Conditions) are true
- Conditions
- PlayerNumber1 Equal to PlayerNumber2
- PlayerNumber1 Equal to PlayerNumber3
- PlayerNumber2 Equal to PlayerNumber3
- Conditions
- Then - Actions
- Trigger - Run (This trigger) (checking conditions)
- Else - Actions
- If - Conditions
Trigger:
- Setting Random Teams
- Events
- Conditions
- Actions
- Player Group - Pick every player in (All players) and do (Actions)
- Loop - Actions
- Player - Make (Picked player) treat Player 1 (Red) as an Ally with shared vision
- Player - Make (Picked player) treat Player 2 (Blue) as an Ally with shared vision
- Player - Make (Picked player) treat Player 3 (Teal) as an Ally with shared vision
- Player - Make (Picked player) treat Player 4 (Purple) as an Ally with shared vision
- Player - Make (Picked player) treat Player 5 (Yellow) as an Ally with shared vision
- Player - Make (Picked player) treat Player 6 (Orange) as an Ally with shared vision
- Player - Make (Picked player) treat Player 7 (Green) as an Ally with shared vision
- Player - Make (Picked player) treat Player 8 (Pink) as an Ally with shared vision
- Player - Make (Picked player) treat Player 9 (Gray) as an Ally with shared vision
- Player - Make (Picked player) treat Player 10 (Light Blue) as an Ally with shared vision
- Player - Make (Picked player) treat Player 11 (Dark Green) as an Ally with shared vision
- Player - Make (Picked player) treat Player 12 (Brown) as an Ally with shared vision
- Loop - Actions
- Player Group - Pick every player in (All players) and do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Picked player) slot status) Equal to Is playing
- ((Owner of (Picked unit)) slot status) Not equal to Is playing
- ((Picked player) controller) Equal to User
- Then - Actions
- Player Group - Add (Picked player) to RandomTeam1Group
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- RandomTeam2 Equal to 3
- Then - Actions
- Player Group - Add SetUp[PlayerNumber1] to RandomTeam2Group
- Player Group - Remove SetUp[PlayerNumber1] from RandomTeam1Group
- Player Group - Add SetUp[PlayerNumber2] to RandomTeam2Group
- Player Group - Remove SetUp[PlayerNumber2] from RandomTeam1Group
- Player Group - Add SetUp[PlayerNumber3] to RandomTeam2Group
- Player Group - Remove SetUp[PlayerNumber3] from RandomTeam1Group
- Else - Actions
- If - Conditions
- Trigger - Run Giving Random Units <gen> (checking conditions)
- Player Group - Pick every player in (All players) and do (Actions)
Trigger:
- Giving Random Units
- Events
- Conditions
- Actions
- Set Game_Preset = 1
- Player Group - Pick every player in RandomSheepGroup and do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Picked player) slot status) Equal to Is playing
- ((Owner of (Picked unit)) slot status) Not equal to Is playing
- ((Picked player) controller) Equal to User
- Then - Actions
- Unit - Create 1 Dead Sheep Spirit for (Picked player) at (Center of Sheep <gen>) facing Default building facing degrees
- Camera - Pan camera for (Picked player) to (Position of (Last created unit)) over 1.00 seconds
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- Player Group - Pick every player in RandomShepGroup and do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Picked player) slot status) Equal to Is playing
- ((Owner of (Picked unit)) slot status) Not equal to Is playing
- ((Picked player) controller) Equal to User
- Then - Actions
- Unit - Create 1 Dead Sheep Spirit for (Picked player) at (Center of Shepherds <gen>) facing Default building facing degrees
- Camera - Pan camera for (Picked player) to (Position of (Last created unit)) over 1.00 seconds
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Owner of (Picked unit)) slot status) Not equal to Is playing
- (Owner of (Picked unit)) Not equal to Neutral Passive
- Then - Actions
- Unit - Remove (Picked unit) from the game
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- Edit: Posted 2 trigger 3s changed to the fourth