1) How to put a hotkey into an inventory slot or item?
2) Everytime the heroes in my map use an item, or learn an ability, they automatically stop. Like, if you order him to move, and then, learn an ability, the hero will stop. Anyone know how fix this?
The first one is a bug in the current implementation of the default inventory UI, about the only thing you could do would be to recreate the inventory UI yourself or have triggers listen for keypresses and then check the selected unit's inventory for the associated item. Although I don't believe it's possible to check if the inventory panel is currently open or not via triggers, so even this workaround would have warts.
As for number two, I'm not sure it'll do this, but try checking the "Transient" flag in the ability or item.
Well, I hope blizz fix this item hotkey quickly, because having to open the inventory and click to use an item is really not a viable idea, and they warn us to not use KeyPress events because it will generate network traffic... I don't know how serious it is, but, in this case we will have to create a lot of hotkeys (like 20+ events of this type), so, I believe it may become a serious problem.
i might be misunderstanding the scope of what you're saying here, but it is possible to check if inventory panel is open, at least a custom one.
if "dialog is visible", are you talking about something like that?
btw, love your tutorials, and i'm convinced that one of my friends has a man crush on you
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
1) How to put a hotkey into an inventory slot or item?
2) Everytime the heroes in my map use an item, or learn an ability, they automatically stop. Like, if you order him to move, and then, learn an ability, the hero will stop. Anyone know how fix this?
The first one is a bug in the current implementation of the default inventory UI, about the only thing you could do would be to recreate the inventory UI yourself or have triggers listen for keypresses and then check the selected unit's inventory for the associated item. Although I don't believe it's possible to check if the inventory panel is currently open or not via triggers, so even this workaround would have warts.
As for number two, I'm not sure it'll do this, but try checking the "Transient" flag in the ability or item.
@RileyStarcraft: Go
I tried transient but it doen't work :(
Well, I hope blizz fix this item hotkey quickly, because having to open the inventory and click to use an item is really not a viable idea, and they warn us to not use KeyPress events because it will generate network traffic... I don't know how serious it is, but, in this case we will have to create a lot of hotkeys (like 20+ events of this type), so, I believe it may become a serious problem.
bump
@RileyStarcraft: Go
i might be misunderstanding the scope of what you're saying here, but it is possible to check if inventory panel is open, at least a custom one. if "dialog is visible", are you talking about something like that?
btw, love your tutorials, and i'm convinced that one of my friends has a man crush on you