• 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!

Very LAME problem with item event in trigger...

Status
Not open for further replies.
Level 14
Joined
Aug 8, 2010
Messages
1,022
Hello, guys! I have a problem in my lame trigger. Even the word "lame" is not enough powerful to describe my trigger. I use the "A unit Sells an item (from shop)" event in my trigger but it seems it's not the right one. I have a variable that checks the number of a item in the shop. And when that item is sold, i want the variable to decrease. Seems like i have something wrong. Here is the "trigger"
  • Pig is bought
    • Events
      • Unit - A unit Sells an item (from shop)
    • Conditions
    • Actions
      • Game - Display to (All players) the text: (Name of (Sold Item))
The item is not in the "Techtree - Items sold" and "Techtree - Items made" in the object editor where the shop is. The item is added to the shop via
  • Neutral Building - Add Item to Shop 0000 <gen> with ItemNumberOfItems[1] in stock and a max stock of 100000000
Help me guys. +rep is the reward.
 
Status
Not open for further replies.
Back
Top