• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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,231
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