I've seen this come up a lot in several places. I suppose if it's indexed here someone who needs it will eventually find it. The purpose of this tutorial is to efficiently and easily set up teams without writing several duplicate lines of code. First off, I'd like to answer that newbie question: No, there is no menu to set teams. It must be done in the trigger editor. That being said, lets begin.
This tutorial uses raw settings, so set this by pressing Ctrl+D.
Note: If you are familiar with triggering you may want to skip to the bottom and look at the full trigger.
val2: (No Value)
Comparison((PlayerStatus(1)), ==, c_playerStatusActive)
Our trigger now checks to see if players 1-13 are playing or not, if you start now however, nothing will happen.
Under actions we need to set up our force now.
That's it, exit out of raw data mode by pressing Ctrl+D again and check your work with the triggers shown below.
A = 0 <Integer>
Team = (Empty player group) <Player Group>
General - For each integer A from 1 to 14 with increment 1, do (Actions)
General - If (Conditions) then do (Actions) else do (Actions)
(Status of player A) == Playing
Player Group - Add player A to Team
Player - Make all players in Team treat each other as Ally With Shared Vision
And that's it, if you've done everything right then you should have players 1-13 on one team opposing player 14.
There's no "find feature" at the top right in the trigger module..
i think he means when you make a new action you can search for a specific one in the text box at the top
I attached a screenshot of the initialization of 2 teams of 2 players each (1&2 vs 3&4), done in a simple way... if you have minimum intuition or practice with the trigger editor, it will be easy. Just remember that "find" is your friend ;)
(I suggest using the "Ally With Shared Vision" setting, mine is "Ally" because i don't want allies share vision in the map i used this trigger)
Ahh. Thanks so much. And Templar4522, I thank you so much for that image. Made things much easier :P
This trigger has one problem:
The player numbers thing. You have the first 13 players joined opposing the 14th now. Not as the teams shown in the menu or similar.
Why are you bothering with the whole "if player is playing, then add him to the team" instead of simply adding the player to the team regardless of whether he is playing. Is there a downside of adding a nonplaying player to an alliance? Or is there an upside of not adding a nonplaying player to an alliance?
Thanks alot i'm gonna try this one for my 2vs2vs2 team setup i'll post a screenshot later if this works :)
Gonna try it out later on :)
Currently creating a Hero Line war style map for Starcraft II
You must login to post a comment. Don't have an account? Register to get one!