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