Hey, I've made a custom ability. I'm trying to have it going off set off a trigger, but in the "Unit - any unit uses ABILITY", ABILITY doesn't list the ability I've created. Does anyone know why? It's in game and seems set up properly.
if it matters what I'm trying to do is have it set so every time this unit uses the ability, all units owned by him attack a certain area. The triggers are fine, it's the event that I can't figure out ><.
Also, since I have the subject up.. does anyone know how to have the ability be autocast so that it's constantly ordering units to attack a position? I mean, I can wait and repeat and such, but I'm not sure if it's possible to have the ability autocast every second or so the trigger repeats. Or if there's a better way I don't know.
Thanks for any help that can be offered.
Edit: oops, I messed up creating the Ability. I selected the type "Effect - Instant" but I guess I hit cancel or something, because it was at the default when I checked. I can select it now.
Ok i have no idea why it wouldn't show up in the triggers... maybe you didn't save? did you try searching for its name under ability instead of command?
for autocast just give the ability the autocast and autocast on flags and make sure the aquire attackers field is enabled. then just set the cooldown to 1sec under the cost field.
Quote from Docablo:
Ok i have no idea why it wouldn't show up in the triggers... maybe you didn't save? did you try searching for its name under ability instead of command?
for autocast just give the ability the autocast and autocast on flags and make sure the aquire attackers field is enabled. then just set the cooldown to 1sec under the cost field.
----
Yeah it was my mess up.
My problem now is I have autocast enabled, but when autocast is on, the trigger doesn't run. Happen to know why?
Does it have anything to do with "Acquire Attackers"? I couldn't find where to enable that
Edit: The trigger runs fine when I click on it, it just doesn't auto-run when autocast is on.
oh i see your using an instant effect. What you need is a target effect. See what you need to do is make the ability call a search that targets everyone nearby then you give everyone in the search an issue order command. Then using the triggers when that issue order effect is called you tell them to attack move to the region.
Quote from Docablo:
oh i see your using an instant effect. What you need is a target effect. See what you need to do is make the ability call a search that targets everyone nearby then you give everyone in the search an issue order command. Then using the triggers when that issue order effect is called you tell them to attack move to the region.
----
That just makes it targetable and not auto-castable, ruining the point. I already have the trigger working perfectly with Instant and that doesn't require targeting, but it won't auto-run the trigger if the ability is on auto-cast, which is the problem.
I don't want there to be a target area, though. Okay, perhaps I should explain exactly what I want easier.
I'm doing something similiar to evolves map. you know how in the old days we'd have to make 9 beacons, one for each corner then the middle, and move a unit into them to have units auto attack that area? And there was two types, either the SCV was sent back to the middle and the attack was a 'one time thing' that you could repeat. Or, in other maps, the SCV would stay on the beacon, and the trigger would repeat itself.
I'm trying to do both effect with abilities.
So I have the 'spawner unit', and then he has 9 abilities on the action bar, forming a compass. If you click on any of the 9 abilities, all the units will charge the area that correlates to the compass, and it works perfectly fine.
The issue is the 'repeating' part. I want it so that when you click the ability, it's a one time attack. But then if you have it set to autocast, then the units will continually charge that area, so we get the best of both worlds, without the need for a beacon area or selecting different units.
But 'auto-cast' isn't doing anything, and it's not actually casting the ability, or at least not in a way that the trigger is detecting. I also can't find any condition or event that is something along the lines of "If ability is set to autocast" or "Player sets ability to autocast" or anything to do it the slightly harder way. :/
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hey, I've made a custom ability. I'm trying to have it going off set off a trigger, but in the "Unit - any unit uses ABILITY", ABILITY doesn't list the ability I've created. Does anyone know why? It's in game and seems set up properly.
if it matters what I'm trying to do is have it set so every time this unit uses the ability, all units owned by him attack a certain area. The triggers are fine, it's the event that I can't figure out ><.
Also, since I have the subject up.. does anyone know how to have the ability be autocast so that it's constantly ordering units to attack a position? I mean, I can wait and repeat and such, but I'm not sure if it's possible to have the ability autocast every second or so the trigger repeats. Or if there's a better way I don't know.
Thanks for any help that can be offered.
Edit: oops, I messed up creating the Ability. I selected the type "Effect - Instant" but I guess I hit cancel or something, because it was at the default when I checked. I can select it now.
So now I'm just wondering about the second thing.
Ok i have no idea why it wouldn't show up in the triggers... maybe you didn't save? did you try searching for its name under ability instead of command?
for autocast just give the ability the autocast and autocast on flags and make sure the aquire attackers field is enabled. then just set the cooldown to 1sec under the cost field.
Quote from Docablo:
Ok i have no idea why it wouldn't show up in the triggers... maybe you didn't save? did you try searching for its name under ability instead of command?
for autocast just give the ability the autocast and autocast on flags and make sure the aquire attackers field is enabled. then just set the cooldown to 1sec under the cost field.
----
Yeah it was my mess up.
My problem now is I have autocast enabled, but when autocast is on, the trigger doesn't run. Happen to know why?
Does it have anything to do with "Acquire Attackers"? I couldn't find where to enable that
Edit: The trigger runs fine when I click on it, it just doesn't auto-run when autocast is on.
is it auto casting?
there is a field called (None) - Acquire Attackers at the very top of the abilitie's fields if you have all the sorts on. Enable it.
Quote from Docablo:
is it auto casting?
there is a field called (None) - Acquire Attackers at the very top of the abilitie's fields if you have all the sorts on. Enable it.
----
I have all the sorts on and I don't see this. Would it matter anyway? Nothing with the ability or trigger requires the aquisition of attackers.
But yes, the ability works fine when I click it, but it doesn't work at all if it's on autocast.
Did you check the show commands box?
oh i see your using an instant effect. What you need is a target effect. See what you need to do is make the ability call a search that targets everyone nearby then you give everyone in the search an issue order command. Then using the triggers when that issue order effect is called you tell them to attack move to the region.
Quote from Docablo:
oh i see your using an instant effect. What you need is a target effect. See what you need to do is make the ability call a search that targets everyone nearby then you give everyone in the search an issue order command. Then using the triggers when that issue order effect is called you tell them to attack move to the region.
----
That just makes it targetable and not auto-castable, ruining the point. I already have the trigger working perfectly with Instant and that doesn't require targeting, but it won't auto-run the trigger if the ability is on auto-cast, which is the problem.
@Pinworm45: Go
If you just want the units to continue attacking you can.
Terrain editor -> layers - Add point. Name it something. like PlayerAttackTarget
Triggers
In your 'unit uses ability' trigger, you can move the point you made to where the ability targets.
{Add action
Move Point (set to PlayerAttackTarget or whatever you named it) To (Triggering Ability Target)
Turn on the next trigger you are going to make.}
Create New trigger. Set it to off initially (so it doesn't start sending units right away). This trigger will tell units to attack the point you made.
{Set an event like Unit becomes idle, or every 5 seconds. Then set it to
Issue order
UNIT: set it to all units (every 5 seconds), or triggering unit (if using idle units).
ORDER:ORDER TARGETING POINT - change it to this it doesnt default to this - it starts as ORDER:ORDER WITH NO TARGET
ABILITY COMMAND set to attack
TARGET POINT set it to the point you made earlier, and move using trigger. } _
I don't want there to be a target area, though. Okay, perhaps I should explain exactly what I want easier.
I'm doing something similiar to evolves map. you know how in the old days we'd have to make 9 beacons, one for each corner then the middle, and move a unit into them to have units auto attack that area? And there was two types, either the SCV was sent back to the middle and the attack was a 'one time thing' that you could repeat. Or, in other maps, the SCV would stay on the beacon, and the trigger would repeat itself.
I'm trying to do both effect with abilities.
So I have the 'spawner unit', and then he has 9 abilities on the action bar, forming a compass. If you click on any of the 9 abilities, all the units will charge the area that correlates to the compass, and it works perfectly fine.
The issue is the 'repeating' part. I want it so that when you click the ability, it's a one time attack. But then if you have it set to autocast, then the units will continually charge that area, so we get the best of both worlds, without the need for a beacon area or selecting different units.
But 'auto-cast' isn't doing anything, and it's not actually casting the ability, or at least not in a way that the trigger is detecting. I also can't find any condition or event that is something along the lines of "If ability is set to autocast" or "Player sets ability to autocast" or anything to do it the slightly harder way. :/