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

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.
Top