SC2Mapster Forums

Development > Galaxy Scripting

How to make Condition "if Player is not in game"

  • 3 posts
    #1 Nov 13, 2012 at 04:26 UTC - 0 likes

    Obviously that isn't what the Condition is called, but that's what I want it to check for. I'm trying to adjust difficulty in game by number of players. How would I do this? I am not familiar with Galaxy editor yet as I am still new to Starcraft 2. I used to use mapforge for BW and it was not that difficult to do in that.

    #2 Nov 13, 2012 at 05:37 UTC - 0 likes

    Conditions -> And -> Status of Player.

    Also, if you don't want conditions but rather Player Groups, use Player Leaves event to add/remove players from a group, whether it be Left or Playing.

    Also I think this belongs in the Trigger section. Galaxy Scripting is the JASS equivalent of Warcraft III's World Editor... or in other words, a non-GUI programming language.

    Last edited Nov 13, 2012 by Vicboy
    #3 Nov 13, 2012 at 09:49 UTC - 0 likes

    For each player from 1-14, check if they are human and if they are active. You can also check if a player is in a team. This is a boolean/test function (you put it into a condition). To make your life easier in testing and in the rest of the game: I suggest you add the players to player groups: like team1Group, team2Group and so on. Then counting team score and doing adjustments for colors is very easy :)

  • 3 posts

You must login to post a comment. Don't have an account? Register to get one!