• 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] How do I show a dialog box when an item is bought?

Level 5
Joined
May 27, 2020
Messages
22
Here are my triggers. I want to show a dialog when I buy the item but it's not working and idk what I'm doing wrong...

  • CraftBuy
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Craft an Item
    • Actions
      • Item - Remove (Item being manipulated)
      • Set Craft_Int = (Custom value of (Hero manipulating item))
      • Dialog - Clear Craft_Dialog[Craft_Int]
      • Dialog - Change the title of Craft_Dialog[Craft_Int] to Select an item to C...
      • Dialog - Create a dialog button for Craft_Dialog[Craft_Int] labelled Lunar Spear
      • Set Craft_LunarSpr[Craft_Int] = (Last created dialog Button)
      • Dialog - Create a dialog button for Craft_Dialog[Craft_Int] labelled Deceitful Shaft
      • Set Craft_DeceitfulShaft[Craft_Int] = (Last created dialog Button)
      • Dialog - Create a dialog button for Craft_Dialog[Craft_Int] labelled Moon Blade
      • Set Craft_MoonBlade[Craft_Int] = (Last created dialog Button)
      • Dialog - Show Craft_Dialog[Craft_Int] for (Owner of (Hero manipulating item))
 
Level 5
Joined
May 27, 2020
Messages
22
Update: Fixed it. Lol.

  • CraftInit
    • Events
      • Time - Elapsed game time is 0.01 seconds
    • Conditions
    • Actions
      • Dialog - Clear Craft_Dialog
      • Dialog - Change the title of Craft_Dialog to Select an item to C...
      • Dialog - Create a dialog button for Craft_Dialog labelled Lunar Spear
      • Set Craft_Item[0] = (Last created dialog Button)
      • Dialog - Create a dialog button for Craft_Dialog labelled Deceitful Shaft
      • Set Craft_Item[1] = (Last created dialog Button)
      • Dialog - Create a dialog button for Craft_Dialog labelled Moon Blade
      • Set Craft_Item[2] = (Last created dialog Button)
  • CraftBuy
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Craft an Item
    • Actions
      • Item - Remove (Item being manipulated)
      • Dialog - Show Craft_Dialog for (Owner of (Hero manipulating item))
 
Top