• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

how to target a unit but still use dialog?

Status
Not open for further replies.
Level 4
Joined
Mar 27, 2009
Messages
66
ok here is my base stuff.

  • Axe main
    • Events
      • Dialog - A dialog button is clicked for Dialog
    • Conditions
      • (Clicked dialog button) Equal to Dialogarray[2]
    • Actions
      • Item - Remove (Item carried by (Triggering unit) of type Vines)
      • Item - Remove (Item carried by (Triggering unit) of type Rock)
      • Item - Remove (Item carried by (Triggering unit) of type Stick)
      • Hero - Create Axe and give it to (Triggering unit)
      • Dialog - Clear Dialog
i see why my command isnt working...because it is triggering unit and no unit is triggering anything...any way to fix this and keep the dialog event?
 
Last edited:
so will i have to make 13 triggers per person then...or is there a way to check which player selected a dialog button....then select his unit?
 
Last edited:
alright mate. there is one little trigger you need. create a variable thats an array(it can be checked in the box when creating the variable). when the unit is created, set the unit to your Variable and make the array (Player number of (Your event like last created unit or the certain unit) unit). then when it gives the item, make it give it to Your Variable with the array of (Player Number of (Triggering Player))
 
alright mate. there is one little trigger you need. create a variable thats an array(it can be checked in the box when creating the variable). when the unit is created, set the unit to your Variable and make the array (Player number of (Your event like last created unit or the certain unit) unit). then when it gives the item, make it give it to Your Variable with the array of (Player Number of (Triggering Player))

i wish you had posted a little sooner, i figured it out just a second ago. thanks for the help anyways :)
 
Status
Not open for further replies.
Back
Top