I want a group of players to be able to click a neutral unit and train a single unit per player from that neutral unit. There will be 9 people in total. I want them to get spread evenly to 3 locations (so 3 per point).
From a player perspective: You click a unit and choose a hero by clicking the icon for the hero and he appears at one of 3 locations. After everyone picked their hero there are 3 heros at every location. If there are less players than 9 it should still attempt to spread them evenly.
You could do it in triggers where you have separate buildings for each player off of the map and when a player clicks the neutral unit have a trigger that will select the building for that player. The structures off the map would have the buttons on the command card to spawn heroes and will be stored in an array called something like HeroSpawnStructure. Could go like this:
Event - Player (PlayerNumber) selects Unit (Neutral Unit [xx,yy])
Action - Select Unit (HeroSpawnStructure[PlayerNumber]) for Player (PlayerNumber)
The structures would need to be deselected and removed after the player trains a hero so people don't put it into a control group and train all the heroes. Also, whether the ability trains the hero or the ability runs a trigger that spawns the hero is up to you.
Edit: If you want players to not have the same heroes you could have the abilities have charges and when a hero is trained take the charges away from the training structures for the corresponding hero, making that hero unable to be picked by anyone else
Seems like a basic dialog box would work so much better, imo.
"Pick your hero, pick your spawn location" A button to ping and move the map to the location, so you can see it before you pick it. the hero selection dialog could look a lot like the dummy spawn unit ability on a building anyway; except it would be trigger based.
I want a group of players to be able to click a neutral unit and train a single unit per player from that neutral unit. There will be 9 people in total. I want them to get spread evenly to 3 locations (so 3 per point).
From a player perspective: You click a unit and choose a hero by clicking the icon for the hero and he appears at one of 3 locations. After everyone picked their hero there are 3 heros at every location. If there are less players than 9 it should still attempt to spread them evenly.
@Scythe1250: Go
now I haven't tried this, but I would do something like this:
event: player clicks [neutral training unit] action: change ownership of [neutral training unit] to triggering player
(in the data, make some dummy abilities from barracks train or something.) name the dummy abilities like hero1S, hero2S, hero3S
event: unit uses ability [hero1S] action: spawn [hero1] for [owner of triggering unit] at point [whatever you want]
and u can repeat that formula for the other heros
-that's how I'd try to do it at least
@Scythe1250: Go
You could do it in triggers where you have separate buildings for each player off of the map and when a player clicks the neutral unit have a trigger that will select the building for that player. The structures off the map would have the buttons on the command card to spawn heroes and will be stored in an array called something like HeroSpawnStructure. Could go like this:
Event - Player (PlayerNumber) selects Unit (Neutral Unit [xx,yy])
Action - Select Unit (HeroSpawnStructure[PlayerNumber]) for Player (PlayerNumber)
The structures would need to be deselected and removed after the player trains a hero so people don't put it into a control group and train all the heroes. Also, whether the ability trains the hero or the ability runs a trigger that spawns the hero is up to you.
Edit: If you want players to not have the same heroes you could have the abilities have charges and when a hero is trained take the charges away from the training structures for the corresponding hero, making that hero unable to be picked by anyone else
Seems like a basic dialog box would work so much better, imo.
"Pick your hero, pick your spawn location" A button to ping and move the map to the location, so you can see it before you pick it. the hero selection dialog could look a lot like the dummy spawn unit ability on a building anyway; except it would be trigger based.
Would be smoother and save time, imo.
Skype: [email protected] Current Project: Custom Hero Arena! US: battlenet:://starcraft/map/1/263274 EU: battlenet:://starcraft/map/2/186418
Yeah if someone would do that for me. I really don't have time to do a dialog.