So far I've made a shop which can sell items, and when hero aproaches it he can buy certain item from it - ie. normal item shop. But it can't be normal item shop - item can be only sold to hero that meet special requirements (various reasons, must have other item, some variable must be set, etc). I've made a trigger (A unit solds an item) which checks if that hero is able to buy that item. If he can buy it, then it's ok, but if he can't then I need to remove item from his backpack, give his money back, and refresh the cooldown on item in shop (and I don't know how to refresh the cooldown). Also I can't remove item from his inventory instantly, because it will vanish, but all bonuses will still be applied to hero .
It is possible to have a shop that sells nothing? I would like to attach trigger into each item and do everything manually by JASS. I mean - I have something that looks like a shop, that have 4x3 item-buttons and active only if hero is around, and if clicked then nothing happens - only trigger is being executed. Like dialogs, but in a shop form.
It is possible to have a shop that sells nothing? I would like to attach trigger into each item and do everything manually by JASS. I mean - I have something that looks like a shop, that have 4x3 item-buttons and active only if hero is around, and if clicked then nothing happens - only trigger is being executed. Like dialogs, but in a shop form.