• 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] Unit Creation from Dialog

Status
Not open for further replies.
Level 4
Joined
Aug 7, 2007
Messages
71
i need to create a unit from someone clicking a dialog box and i havent gotten it to work very well, theres 4 choices and 4 players that can pick, how would i make it so that if someone picks a unit theyd get the unit they picked without other getting the same unit, because i dont want to do this in 16 different triggers

Heres how far i got

  • Event
  • Dialog - A dialog button is clicked for Infernal
  • Conditions
  • (Elapsed time for InfernalTimer) Greater than or equal to 45.00
  • (Clicked dialog button) Equal to Int
  • Actions
  • Unit - Create 1 Frosty for (Triggering player) at (Center of Fire Start <gen>) facing Default building facing degrees
but it dont work



yes this is for a tree tag...
 
Last edited:
Level 5
Joined
Jan 11, 2006
Messages
110
This should work(Its been tested and works), just set a variable for a player that recieves the menu to replace P1 and your Infernal type to replace Infernal, you can get rid of the camera movement as well

  • Menu 1
    • Events
      • Dialog - A dialog button is clicked for Dialog_Victory
    • Conditions
      • (Clicked dialog button) Equal to DialogButtons_Victory[1]
    • Actions
      • Unit - Create 1 Infernal for P1 at (Center of Forest <gen>) facing (Random angle) degrees
      • Camera - Pan camera for Player_Victor to ((Position of (Last created unit)) offset by 50.00 towards 90.00 degrees) over 0.50 seconds
 
Level 4
Joined
Sep 9, 2004
Messages
112
Just make your dialog an array and set the array to the number of players (4) and then just set it so it shows a different one of the dialog for each person..
 
Status
Not open for further replies.
Top