• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] Job-choosing system

Status
Not open for further replies.
Level 15
Joined
Dec 12, 2006
Messages
1,661
I'm making a map that let's you choose a profession, but I have no idea how to make it so that the players could choose a profession from a dialogue box only if someone else didn't choose that job. Any suggestions/solutions? Oh, and when you give them, be sure to tell me what exactly any variables are (I.E. integer, boolean, array, array size, initial value, etc.).
 
Assuming you know HOW to make a dialogue box:
-Make a boolean variable for each hero (or an Array "HeroPicked[number of selectable heroes]")
-Make it so when a hero is picked, it sets the HeroPicked corresponding with said unit to true.
-Make it when they are selecting their class, if they select one and the corresponding hero has it's HeroPicked = True, you bring up the box again with an error message.
~ ~ ~ ~ ~ ~ ~
You can also remove the dialogue buttons for the hero, but that's a different trigger. This one is less aesthetically pleasing, I guess, but it works.
 
And just assuming you do not know how to create a dialog search for a tutorial.
 
Status
Not open for further replies.
Back
Top