- Joined
- Mar 16, 2014
- Messages
- 163
I have a shop that has shop sharing and shop purchase item on it. When the shop sells an item, it drops the item on the floor instead of giving it to the person I want it to be given to. I can't give the shop the select hero button (which fixes the problem), because this causes the shop to be able to sell to enemy players instead of just allied players.
I tried this:
But the event never even registers. The game message there is just a debug message to confirm the trigger didn't register.
The shop is a Hero with no inventory, which I figured might also be the problem. If this is the problem, is there any way around it, or do I have to make the shop not be a Hero?
I tried this:
Code:
Unbugged Shop Purchase
Events
Unit - A unit Sells an item (from shop)
Conditions
Actions
Game - Display to (All players) the text: (Name of (Buying unit))
Hero - Create (Item-type of (Sold Item)) and give it to (Buying unit)
Item - Remove (Sold Item)
But the event never even registers. The game message there is just a debug message to confirm the trigger didn't register.
The shop is a Hero with no inventory, which I figured might also be the problem. If this is the problem, is there any way around it, or do I have to make the shop not be a Hero?