I have an AE ability that damages enemies nearby, but I would like to show the range of the ability when you move your mouse over the ability button to use it (since it has no targetting).
Is this possible at all, or nothing built in to handle this?
Okay no luck with this, and it's probably not going to be possible just using the data editor.
Maybe with triggers it's possible, anyone know if there are any events or any way to detect mouse-over abilities? Something must fire since it shows the tooltip etc. I could probably try and hook in and show the range indicator on hover.
I was wanting something like this too for some of my instants. There's nothing built into SC2 that does it easily.
Probably a few ways to go about it. You could have the instant effect be a switch based on a behavior.
Behaviors: 'Range Confirmation' (Duration 4 seconds)
Actors: 'Effect Range' (Filters enemy, ally, neutral; input range #; create when 'Range Confirmation' is created etc.)
Effects: 'Effect Switch' (Apply 'YOUR EFFECT' -IF- InRangeConfirmation', otherwise 'Apply Range Confirmation')
Validators: 'IsRangeConfirmation'
Other abilities would need to remove the range confirmation. Maybe this is a start?
Thanks for the suggestions, I had considered doing something like that - or even having a slight prepare time that shows the range, giving them a chance to move and cancel the ability
Now that I have a validator working so that it doesn't fire if enemies aren't in range I guess it's not as big a deal, but it sure would have been nice.
The switch idea like you mention isn't a bad idea though - you could basically set this up exactly like a Cloak/Decloak ability, but the decloak part is actually where it fires, the only problem *might* be cancellig the ability on movement, but I think it should be possible.
My suggestion would be to make the ability a targeting ability, but instant in effect. I tried to look for some way to hide the targeting cursor when the ability is being targeted, but to no avail.
That way, it just takes a left click to fire it off and a right click to cancel it.
EDIT: And you could make a search area cursor attached to the caster, rather than the cursor.
Yeah I have considered that as well. I will see how the current implementation pans out then decide if it should be changed.
There is another option which is to permanently display a barely visible range ring on the unit with the ability, perhaps even have an interface toggle for it.
To correct myself, making a search area cursor attached to the caster isn't a very pretty solution (even if you do that, the search effect "pings" - you know, these pings that show up when you highlight units with a search area cursor - still appear at your cursor). I'd just have a range actor pop up when the ability is being targeted, and that's it.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I have an AE ability that damages enemies nearby, but I would like to show the range of the ability when you move your mouse over the ability button to use it (since it has no targetting).
Is this possible at all, or nothing built in to handle this?
Okay no luck with this, and it's probably not going to be possible just using the data editor.
Maybe with triggers it's possible, anyone know if there are any events or any way to detect mouse-over abilities? Something must fire since it shows the tooltip etc. I could probably try and hook in and show the range indicator on hover.
@KratsAU: Go
I was wanting something like this too for some of my instants. There's nothing built into SC2 that does it easily.
Probably a few ways to go about it. You could have the instant effect be a switch based on a behavior. Behaviors: 'Range Confirmation' (Duration 4 seconds) Actors: 'Effect Range' (Filters enemy, ally, neutral; input range #; create when 'Range Confirmation' is created etc.) Effects: 'Effect Switch' (Apply 'YOUR EFFECT' -IF- InRangeConfirmation', otherwise 'Apply Range Confirmation') Validators: 'IsRangeConfirmation'
Other abilities would need to remove the range confirmation. Maybe this is a start?
@Ultimaswc3: Go
Thanks for the suggestions, I had considered doing something like that - or even having a slight prepare time that shows the range, giving them a chance to move and cancel the ability
Now that I have a validator working so that it doesn't fire if enemies aren't in range I guess it's not as big a deal, but it sure would have been nice.
The switch idea like you mention isn't a bad idea though - you could basically set this up exactly like a Cloak/Decloak ability, but the decloak part is actually where it fires, the only problem *might* be cancellig the ability on movement, but I think it should be possible.
My suggestion would be to make the ability a targeting ability, but instant in effect. I tried to look for some way to hide the targeting cursor when the ability is being targeted, but to no avail.
That way, it just takes a left click to fire it off and a right click to cancel it.
EDIT: And you could make a search area cursor attached to the caster, rather than the cursor.
Yeah I have considered that as well. I will see how the current implementation pans out then decide if it should be changed.
There is another option which is to permanently display a barely visible range ring on the unit with the ability, perhaps even have an interface toggle for it.
To correct myself, making a search area cursor attached to the caster isn't a very pretty solution (even if you do that, the search effect "pings" - you know, these pings that show up when you highlight units with a search area cursor - still appear at your cursor). I'd just have a range actor pop up when the ability is being targeted, and that's it.