I was wondering how to create triggers that allows players to select their teams/player factions ingame? I've seen this done in one version of "Heaven's Last Defense" map - the map at the start of the game had 8 buttons with faction names that allowed players to choose one of the 8 corresponding factions.
I couldn't find any tutorials for making buttons so to sum it up, here's all you should need to know to get started:
Dialog: A square of set size and position in the screen which contains dialog items. Dialogs have to be shown for a player to see it.
Dialog Item: Items that go inside dialogs. Come in several different types, like buttons and labels. They are shown by default.
Anchor/Offset: The offset of a dialog item in relation to a point in a dialog, the anchor. Sometimes the positive/negative directions can be unintuitive so some experimentation is required for that.
So to make a button, you'll want to:
1) Make a dialog. Show it.
2) Make a dialog item inside the dialog. And save this dialog item to a variable (of type Dialog Item).
It can be fun to tinker with dialogs. The best way to learn is to tumble around with it yourself, but I'm always here for questions.
@Intranetusa: Go
...
It can be fun to tinker with dialogs. The best way to learn is to tumble around with it yourself, but I'm always here for questions.
Hey there,
I was wondering how to create triggers that allows players to select their teams/player factions ingame? I've seen this done in one version of "Heaven's Last Defense" map - the map at the start of the game had 8 buttons with faction names that allowed players to choose one of the 8 corresponding factions.
I've searched these forums and there are a few about SC2's crazy team-lobby joining system, but none that answers my question. This one seemed helpful, but how exactly do you make the clickable buttons? http://www.sc2mapster.com/forums/development/triggers/23391-team-selection/#p9
Thanks!
Buttons are made with dialogues. So check out some of those tutorials!
@MaskedImposter: Go
Tutorials here? What section of the forum is that in? Can you give me a link?
thxs
Can't find it here. Are they on these forums?
@Intranetusa: Go
I couldn't find any tutorials for making buttons so to sum it up, here's all you should need to know to get started:
Dialog: A square of set size and position in the screen which contains dialog items. Dialogs have to be shown for a player to see it.
Dialog Item: Items that go inside dialogs. Come in several different types, like buttons and labels. They are shown by default.
Anchor/Offset: The offset of a dialog item in relation to a point in a dialog, the anchor. Sometimes the positive/negative directions can be unintuitive so some experimentation is required for that.
So to make a button, you'll want to:
1) Make a dialog. Show it.
2) Make a dialog item inside the dialog. And save this dialog item to a variable (of type Dialog Item).
It can be fun to tinker with dialogs. The best way to learn is to tumble around with it yourself, but I'm always here for questions.
@Charysmatic: Go
Link for tutorials list in the wiki ; (http://www.sc2mapster.com/wiki/galaxy/tutorials/)
Specific to op ; (http://www.sc2mapster.com/forums/resources/tutorials/1216-trigger-make-a-dialog-for-race-class-selection/)
Your essentially looking for the same basis as a character selection screen.
Thanks guy, I'll try it out and return if I have any more questions.