Remixer
Map Reviewer
- Joined
- Feb 19, 2011
- Messages
- 2,112
Hello, I'm currently trying to achieve following setup on a shop:
Desired situation:
1. Does not display "select unit" button in the unit interface (as it reduced purchasable item count by 1)
2. Can select patron by right-clicking units within the selection range.
Problems:
1. Hiding Select Unit button in the "Shop Share" (or other alternatives) disables the option to select patron via right-clicking.
2. Select Unit button cannot be hidden in any other way, not by setting button coordinates to (0, -11) or adding it into a spellbook.
3. Triggers do not not have option to "Select patron for unit", at least not GUI
Work-arounds (tried):
1. Make the "Shop Share" ability have two levels, one with shown button, one without and toggle them via triggers - does not work - button won't get hidden.
2. Removing and adding different variations of "Shop Share" does not work - the abilities get mixed up.
Question:
Is there any possible way to achieve the situation I mentioned? Apart from an ultimate work-around:
Ultimate Work-around:
Create a fake "Select Patron" ability that activates when player right-clicks on a unit. Then detect that unit's inventory and duplicate all items into an inventory of a dummy unit that is the actual patron of the shop. When purchases are made then detect the inventory of the dummy patron and duplicate the items in its inventory into the inventory of the actual unit being used. Ehhhh? Complicated? Yes?
Desired situation:
1. Does not display "select unit" button in the unit interface (as it reduced purchasable item count by 1)
2. Can select patron by right-clicking units within the selection range.
Problems:
1. Hiding Select Unit button in the "Shop Share" (or other alternatives) disables the option to select patron via right-clicking.
2. Select Unit button cannot be hidden in any other way, not by setting button coordinates to (0, -11) or adding it into a spellbook.
3. Triggers do not not have option to "Select patron for unit", at least not GUI
Work-arounds (tried):
1. Make the "Shop Share" ability have two levels, one with shown button, one without and toggle them via triggers - does not work - button won't get hidden.
2. Removing and adding different variations of "Shop Share" does not work - the abilities get mixed up.
Question:
Is there any possible way to achieve the situation I mentioned? Apart from an ultimate work-around:
Ultimate Work-around:
Create a fake "Select Patron" ability that activates when player right-clicks on a unit. Then detect that unit's inventory and duplicate all items into an inventory of a dummy unit that is the actual patron of the shop. When purchases are made then detect the inventory of the dummy patron and duplicate the items in its inventory into the inventory of the actual unit being used. Ehhhh? Complicated? Yes?