Hi.
The question is simple. I have a neutral building that sell items. I want to remove N items from the stock of each type in that shop using triggers or jass. Like 'Healing Potion' with quantity 5 reduced to quantity 2 and stay like that (replenish rate set to 99999).
I know about the 'Neutral Building - Add/Remove items of type'. The problem with those, is that shortcut commands for buying items becomes unavailable. Players are supposed to buy different item-types fast, so shortcut commands is more important than stock reduction. Both would be nice though.
So if anyone knows of a way, no matter how complicated, I'd be grateful if you told me.
I have one possible solution that I don't want to use if possible. Create a unit with an inventory near the shop, wait for shop interaction, somehow force it to buy items then destroy them. Only way to do this as far as I know, is to create the unit for a user player, force the player to select the shop, then force it to press keyboard key's matching the item-types that should get their quantity reduced. Not a pretty way to do it.. If a non-user player could do this, it would be alot better.
The question is simple. I have a neutral building that sell items. I want to remove N items from the stock of each type in that shop using triggers or jass. Like 'Healing Potion' with quantity 5 reduced to quantity 2 and stay like that (replenish rate set to 99999).
I know about the 'Neutral Building - Add/Remove items of type'. The problem with those, is that shortcut commands for buying items becomes unavailable. Players are supposed to buy different item-types fast, so shortcut commands is more important than stock reduction. Both would be nice though.
So if anyone knows of a way, no matter how complicated, I'd be grateful if you told me.
I have one possible solution that I don't want to use if possible. Create a unit with an inventory near the shop, wait for shop interaction, somehow force it to buy items then destroy them. Only way to do this as far as I know, is to create the unit for a user player, force the player to select the shop, then force it to press keyboard key's matching the item-types that should get their quantity reduced. Not a pretty way to do it.. If a non-user player could do this, it would be alot better.