Sure you can do that, but when would you want it to show up? Displaying it constantly would be easy, just attach it to the unit. If you want it to only show up, when you hover the mouse over the ability button (like Dota2 does it), this could be hard to do in data, but you should be able to realize it via trigger.
Sorry for the lack of info on the first post, but yes, i'd like to do it when you hover the mouse over the ability button. How could I do this with triggers? (since that is the easier way)
Hm... I assumed there would be an event for the mouse hovering over an ability button. But that only seems to be the case for dialog items. So you would be limited to some workarounds, which might or might not work:
Check the mouse UI position dynamically, create the actor whenever it overlaps with the position of the button. This would require you to keep track of the mouse position at all times, you would need to take care of all possible resolutions, since the UI position for the buttons vary.
Place a dialog item on top of the button. Again, needs to be adjusted for resolution. Also, I am not sure, if there are dialog items, which do not prevent you from clicking a button on the command card beneath, while still triggering the mouse hovering events. If that is not possible:
Simulate the button via dialog. You can use an invisible button which issues the order to the unit directly, so visually you wouldn't notice a difference.
As with all trigger solutions, they would be less responsive than a default range actor for a target ability, since that one can be executed locally, while all trigger interaction needs to be synchronous.
Yeah, I was hoping there would be an event I didnt catch. I also thought about using dialog to do it, but I'll have to go learn more about UI and getting resolution and all that, was hoping to not use those. Thanks for the info though.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Is there any way for me to have a range indicator (little white arrows) for an effect - instant ability?
Sure you can do that, but when would you want it to show up? Displaying it constantly would be easy, just attach it to the unit. If you want it to only show up, when you hover the mouse over the ability button (like Dota2 does it), this could be hard to do in data, but you should be able to realize it via trigger.
Sorry for the lack of info on the first post, but yes, i'd like to do it when you hover the mouse over the ability button. How could I do this with triggers? (since that is the easier way)
Hm... I assumed there would be an event for the mouse hovering over an ability button. But that only seems to be the case for dialog items. So you would be limited to some workarounds, which might or might not work:
As with all trigger solutions, they would be less responsive than a default range actor for a target ability, since that one can be executed locally, while all trigger interaction needs to be synchronous.
Yeah, I was hoping there would be an event I didnt catch. I also thought about using dialog to do it, but I'll have to go learn more about UI and getting resolution and all that, was hoping to not use those. Thanks for the info though.