• 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.

[Trigger] Job-choosing system

Status
Not open for further replies.
Level 15
Joined
Dec 12, 2006
Messages
1,664
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.).
 
Level 10
Joined
Mar 9, 2008
Messages
669
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.
 
Level 12
Joined
Apr 27, 2008
Messages
1,228
And just assuming you do not know how to create a dialog search for a tutorial.
 
Status
Not open for further replies.
Top