retupmoc258
New Member
- Reaction score
- 1
Does anybody know how to do this? I have tried all sorts of things to identify who is actually doing stuff at a shop. My shop is set up a little differently. Players don't buy items, they get to the shop and use a "Charge Gold and Lumber" ability that gives them the item (stored in an inventory that's not carried by the actual unit).
The problem is, the select hero selects someone, usually the first person to arrive, and I want to know who exactly it's choosing so I can set the level of Charge Gold and Lumber to the correct barter level for that unit. Right now, whenever any unit comes within range, it switches to his barter level, but the problem still exists where I'm not sure which unit to give the item to. I can identify which player used the ability on the shop, but all references to "GetSpellAbilityUnit" and "GetTriggerUnit" refer to the shop, not the person using the ability. And so far, as far as I have learned, Select Hero does not trigger like other abilities. It has no effect. I have tested to see any conditions that make it register, and I haven't found any that work.
Anybody have any suggestions for either how I can make this work or what I can do to fix the problem? Perhaps, does anyone know a way that I could make the shop activate the "select user" ability?
If not, I suppose I can just use triggers to "create" the effect of a select-Hero ability, which will work just fine for this, but I wish there was a different way. Suggestions or information would be appreciated.
The problem is, the select hero selects someone, usually the first person to arrive, and I want to know who exactly it's choosing so I can set the level of Charge Gold and Lumber to the correct barter level for that unit. Right now, whenever any unit comes within range, it switches to his barter level, but the problem still exists where I'm not sure which unit to give the item to. I can identify which player used the ability on the shop, but all references to "GetSpellAbilityUnit" and "GetTriggerUnit" refer to the shop, not the person using the ability. And so far, as far as I have learned, Select Hero does not trigger like other abilities. It has no effect. I have tested to see any conditions that make it register, and I haven't found any that work.
Anybody have any suggestions for either how I can make this work or what I can do to fix the problem? Perhaps, does anyone know a way that I could make the shop activate the "select user" ability?
If not, I suppose I can just use triggers to "create" the effect of a select-Hero ability, which will work just fine for this, but I wish there was a different way. Suggestions or information would be appreciated.