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

Whats wrong with this?

Status
Not open for further replies.
Level 3
Joined
Sep 29, 2012
Messages
37
When I purchase the recipe it didnt remove from my inventory. It is suppose to remove from my inventory.

  • Recipe
    • Events
      • Unit - A unit Acquires an item
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Item-type of (Item being manipulated)) Equal to Swift Blade (Recipe)
        • Then - Actions
          • Item - Remove (Item being manipulated)
          • Game - Display to (All players) for 5.00 seconds the text: You don't need to p...
        • Else - Actions
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
Probably because the Item Acquisition happens before the item is in the inventory; so, the item to be removed is not yet on the inventory.

Try adding a Wait 0.00 action before removing the item.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,257
Does the text display?
If not then one of the following might be the case...
- The trigger is not being created due to a initialization thread crash for exceeding the opperation limit.
- The "Item being manipulated" is returning null.

First problem is caused by too many triggers or too many variables (especially arrays where you use the GUI size field to some large value).
Second problem could be caused by getting the wrong event object (maybe there is no item being manipuleted?).
 
Status
Not open for further replies.
Top