• 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 faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Creating starting units by clicking on dialog

Status
Not open for further replies.
Level 4
Joined
Mar 12, 2008
Messages
89
I have dialog...I can choose in it race..night elf ,human,orc etc. If I click on .. night elf I want to create in one place town hall and hero and some footmen,I know how do it but don´t know how do it if in game will be 3 players ,need help with who clicked on dialog night elf to take that units and building for him ... :cry:
 
Level 20
Joined
Oct 21, 2006
Messages
3,230
I already started to make this and dont want to waste it. :s

  • Show Dialog
    • Events
      • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • Dialog - Create a dialog button for Race labelled Human
      • Set Human = (Last created dialog Button)
      • -------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- --------
      • Dialog - Create a dialog button for Race labelled Orc
      • Set Orc = (Last created dialog Button)
      • -------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- --------
      • Dialog - Create a dialog button for Race labelled Undead
      • Set Undead = (Last created dialog Button)
      • -------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- --------
      • Dialog - Create a dialog button for Race labelled Night Elf
      • Set Night_Elf = (Last created dialog Button)
      • -------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- --------
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • Dialog - Show Race for (Picked player)
  • Dialog Clicked
    • Events
      • Dialog - A dialog button is clicked for Race
    • Conditions
    • Actions
      • Set Point = ((Triggering player) start location)
      • -------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to Human
        • Then - Actions
          • Unit - Create 1 Town Hall for (Triggering player) at Point facing Default building facing degrees
          • Unit - Create 5 Peasant for (Triggering player) at Point facing Default building facing degrees
        • Else - Actions
      • -------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to Orc
        • Then - Actions
          • Unit - Create 1 Great Hall for (Triggering player) at Point facing Default building facing degrees
          • Unit - Create 5 Peon for (Triggering player) at Point facing Default building facing degrees
        • Else - Actions
      • -------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to Undead
        • Then - Actions
          • Unit - Create 1 Necropolis for (Triggering player) at Point facing Default building facing degrees
          • Unit - Create 3 Acolyte for (Triggering player) at Point facing Default building facing degrees
          • Unit - Create 1 Ghoul for (Triggering player) at Point facing Default building facing degrees
        • Else - Actions
      • -------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Clicked dialog button) Equal to Night_Elf
        • Then - Actions
          • Unit - Create 1 Tree of Life for (Triggering player) at Point facing Default building facing degrees
          • Unit - Create 5 Wisp for (Triggering player) at Point facing Default building facing degrees
        • Else - Actions
      • -------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- --------
      • Custom script: call RemoveLocation(udg_Point)
 
Level 4
Joined
Mar 12, 2008
Messages
89
yea I have this I needed just to own unit who clicked on that dialog :)

EDIT:
how can I edit threat to make in its titled solved ?

Do NOT double-post. Use the Edit button.
~Posts Merged
 
Last edited by a moderator:
Status
Not open for further replies.
Top