• 0

    posted a message on Add a timer in a leaderboard

    In short it could look like this. Just create your dialog and dialog items and do something along these lines:

     

    https://www.sc2mapster.com/forums/development/triggers/230046-how-to-create-a-faction-customization-screen?comment=8

     

    Its not a tutorial properly speaking, but it gives an idea.

    Posted in: Triggers
  • 0

    posted a message on Can anyone make 3 triggers or 1 of them for me pls?

    You can read through this thread to have a global idea of how to do that, but you will need some tweaks to fit your needs.

     

    https://www.sc2mapster.com/forums/development/triggers/230046-how-to-create-a-faction-customization-screen

    Posted in: Triggers
  • 0

    posted a message on Help...

    Short recap:

    • You have buttons in a command card
    • They have charges
    • They have a cooldown

    What happends is: The cooldown is only for the use of the button and not the charges themself.

    What you want: The cooldown to finish then get charges.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Weekly Terraining Exercise #279: Whooooooops

    Posted in: Terrain
  • 0

    posted a message on How to create a faction customization screen?

    Good'old well thought questionnairy would be nice to make and share to see the status of mapmaking. Sharing across mapster, teamliquid, blizzard's forum, hiveworkshop, and even in-game when playing to get people that are not necessairly interested into mapmaking already. Someone that is on mapsters is there for a reason. The more I think of it, the more I see a well made questionnary with google doc or something so people can leave comments, etc.

    Posted in: Triggers
  • 0

    posted a message on How to create a faction customization screen?

    How could we reach more people to get into mapmaking? Starcraft 2 really need more people to get involved into this... we should make some sort of questionary about why people does not do mapmaking, and why they should and how they could.

    Posted in: Triggers
  • 0

    posted a message on How to create a faction customization screen?
    Quote from DrSuperEvil >>

    In reply to sc2ggamer:

     
    How did I miss this thread? Anyhow I have emailed you a demo map for making dialogs aimed at faction selection.
     
     I don't know lol, you are litteraly everywhere on mapster's forum (almost). It's hard to awnswer someone before you do lol
    Posted in: Triggers
  • 0.963343108504399

    posted a message on How to create a faction customization screen?

    With this example with the trigger Game Initialization you can then pick eatch player and create their unit based on the race they choosed (the variable "Player Has Choosed")

     

    Feel free to PM me if you need so. You can also write back here and hopefully I'll get the notice. Dialogs is one part in the triggers that I'm very familiar with, except for custom dialogs appearance. But I guess at that point it would be easy to learn.

    Posted in: Triggers
  • 0

    posted a message on How to change the names of races shown in the lobby?

    Hummm... not sure. I guess you might be able to get what the player variant was picked in data but I don't know how. Someone more experienced in data could probably answer that question.

    Posted in: Data
  • 0.962962962962963

    posted a message on How to create a faction customization screen?

    I made one example of how you could do it. There are probably better ways, more efficient, etc. But it still gives you a first glimpse and can improve it as you go.

     

    Map example:

    https://ufile.io/cuhi3

    Posted in: Triggers
  • 0

    posted a message on How to change the names of races shown in the lobby?

    1: Open Game Attributes

     

    2: Create a Player Attribute and add the value of your races

     

    3: Create a Game Variant.

     

    You can hide the default race selection in top right and you can choose the Player Attribute you created in the bottom. At that point I think it should show up in the lobby. Might still have to mess around with it, that part is kinda annoying, to have to login to galaxy, upload, loging to sc2, test, repeat if its not like you want.. Then you can track in triggers which Player attribute a player picked.

    Posted in: Data
  • 0.963289280469897

    posted a message on How to create a faction customization screen?

    I'll elaborate a bit.

    The variable Player has voted would be the number of players for your map.

     

    So now, you have a new triggers, let's call it "Player choosing". As event you would have, dialog item used, as condition which dialog item was used (the button).

     

    In the actions, you would have a set variable for "Player has voted [triggering player]" == true.

     

    Then something along the lines of a For eatch int from 1 to (your number of players). (You could add a local variable for temporary counting, say "Votes")

    If Player has voted [int] == true

    Then set variable votes +1

    Else (nothing)

     

    Then another if then else:

    If number of active players == Votes (which means all active players voted)

    Then do the actions to start the game and stop the timer.

     

    So everytime a player votes, it will cycle through the array and see if everyone voted. It probably not "the most efficient way" but its not a big enough trigger to have any noticeable lags or issues. It's not trying to cycle through thousands of stuff you know...

     

    Is that better?

    Posted in: Triggers
  • 0.962686567164179

    posted a message on How to create a faction customization screen?

    It's kind of tricky to know why the default units spawn without seeing the triggers.

     

    I want to point out though that in the trigger you show here there is:

    • Show "User Interface" for All Players
      • and right after
    • Show "Last created dialog" for All Players
      • which refers exacly to the same dialog because last created dialog is what you set to "User Interface"

    You could simply keep one of those two and it should still work fine.

    Posted in: Triggers
  • 0.962630792227205

    posted a message on How to create a faction customization screen?

    1: If something is created, it means you might still have on map initialization the actions that creates the starting structures for all players (you know the default triggers you can see when making a new map) Then, if nothing appears other than your dialogs to pick a faction / race, you create the unit for it when voting is finish.

     

    2: There are many ways of doing this, the examples I give might not be the "optimal" ones, but ones that can work. There are always better or different ways of doing thing based on your needs. To make what you wish here you need at least:

     

    • Some sort of Timer. Can be the default one that can be found in the action list about timers or you can make your own using dialogs and dialog items Label and variables and some basic mathematics such as
      • Set X = 30
        • Repeat forever: (Note: Could also be repeat X number of times)
          • If: X > 30
          • Then: set the dialog item text to X
          •            wait 1 sec
          •            set variable X -1. 
          • Else: Timer is over.
    • A condition that checks if all players voted when a player votes. So the last player that votes will make the game starts. Using variable, like an Boolean (True/False)  Array "Player has voted". When a player votes it sets that player to true. Then you run a loop to check if eatch value is an active player (to prevent leavers) and if it's set to true. Then this means all players voted and the trigger can continue on making the game start.
    • About the end of the timer, you check if eatch player is an active player, and if it has voted to true, if not, you can do a simple local variable integer that you can do "Set variable random integer between X and Y" based on the number of races you have. Then you assign that race based on the random int.

    Note:

    1. You might enconter some minor bugs. For example: make sure that if all players votes and the game starts, to stop the timer, otherwise it will keep going down and spawn once again the starting structures.
    2. You might want to have an action that disables the triggers about winning/losing conditions for example if a player has no building end game. Since during voting in the beginning no players have structure it would end right there.

    You will most likely go through some stupid / annoying bugs just like anyone ;) If you need a more specefic example using the editor just ask. But I think you might be able to understand the idea. Hopefully my explainations are clear enough.

     

    Note: Are you on discord? I'm Fenix there. https://www.sc2mapster.com/forums/general/general-chat/184298-sc2mapster-discord

     

    Posted in: Triggers
  • 0

    posted a message on Do you miss StarParty?

    One and a half year later, I'm still at that point where I'm thrilled to continue, but lack time to invest... so it did not advance as much as I would have hoped. Yesterday, I went back into it and fixed some bugs again. Feel Great. Would anyone be interested with some decent trigger and data knowledge in helping out?

    Posted in: General Chat
  • To post a comment, please or register a new account.