Remove item then purchased error

Lord Regno

Active Member
Reaction score
19
Function: Removes item from the shop then a player buy it.
Problem: Item does not get removed.

The Shop Abilitys: Shop sharing, Sell Items, Shop Purchase Item, Invulnerable (Neutral)

Trigger:
  • Item Int
    • Events
      • Map initialization
      • Conditions
      • Actions
        • Set item_level[1] = Enchanted Gemstone
        • Set item_level[2] = Enchanted Gemstone
        • Set item_level[3] = Enchanted Gemstone
        • Set item_level[4] = Enchanted Gemstone
        • Set item_level[5] = Enchanted Gemstone


Trigger:
  • Purchased
    • Events
      • Unit - A unit Pawns / Sells an item (from/to shop)
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Item-type of (Sold Item)) Equal to item_level[1]
          • (Item-type of (Sold Item)) Equal to item_level[2]
          • (Item-type of (Sold Item)) Equal to item_level[3]
          • (Item-type of (Sold Item)) Equal to item_level[4]
          • (Item-type of (Sold Item)) Equal to item_level[5]
    • Actions
      • Neutral Building - Remove (Item-type of (Sold Item)) from (Sold/Selling unit)


EDIT: I made the description simpler.
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
you didnt tell us what its doing or what its supposed to do so how can we help? please get more in depth
 

Lord Regno

Active Member
Reaction score
19
Well then a unit buying a item in a shop the item will get removed from there. Now the item will not get removed then I buy the item that is the bug, so it wont work at all.
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
have you tried just using item type of item being manipulated, rather than sold?
 

Lord Regno

Active Member
Reaction score
19
Yes and triggering unit on the shop to doesn't work. The model I using on the shop are a Enchanted Gemstone can it be that who is the problem?
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
set the selling unit to a variable and reference that variable, if that doesnt work you are doing something wrong that we cant see from looking at your trigger text, what other triggers do you have running that may be interfering
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top