Ooooh, yeah, then I misunderstood. I really don't think there's a way to do that just through the data editor, no. Well... unless you just tell them to hold the freaking shift key down :P.
Still possible using triggers, although a little messy. Just create a dummy ability, with lots of code behind it.
Edit: Btw, there's no trigger for pressing a command card, but it's possible to create an ability which links to an effect that does nothing. Then you can run a trigger for that.
In my solution it would solve the problem you mention here. Each time you cast the spell it applies a buff, then when there are 3 buffs out, the snipe goes off. You would go "use ability on target 1","use ability on target 2","use ability on target 3", *snipe goes off on all 3 targets*
Actually, it is possible to do through the data editor. Although it's a bit complex.
What you need to do is create two different buffs, one which is something like:
"Marked", and another which would be something like "Targets". Both should probably be hidden. Now this is what you want to do:
Your snipe ability should do a set of items:
-Apply a buff to the target "Marked"
-Apply a buff to you "Targets". This should be stackable up to 3 times.
-Do a search effect for units with the "Marked" buff IF you have 3 stacks of "Targets" (Use validators)
-Remove your "Targets" buffs IF you have 3 stacks of "Targets"
The search effect should then do another set of effects:
-Remove the "Marked" effect from the unit
-Do the damage/effect you want on the snipe ability
You might have to make some other adjustments too, like a timer on the behaviors etc. Also this would be problematic if there is more than one sniper, you'd have to create some more validators for that.
If you want to do it with the trigger editor, that's possible too. Although if you don't know how to code it'll be hard. What you need to do is create an unit array for the sniper, and then create an event for when you use the sniper ability. Add the target to the array, check if there are 3 units there, and if there is, do your magic on them.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
@Kueken531: Go
Ooooh, yeah, then I misunderstood. I really don't think there's a way to do that just through the data editor, no. Well... unless you just tell them to hold the freaking shift key down :P.
Still possible using triggers, although a little messy. Just create a dummy ability, with lots of code behind it.
Edit: Btw, there's no trigger for pressing a command card, but it's possible to create an ability which links to an effect that does nothing. Then you can run a trigger for that.
@Kueken531: Go
In my solution it would solve the problem you mention here. Each time you cast the spell it applies a buff, then when there are 3 buffs out, the snipe goes off. You would go "use ability on target 1","use ability on target 2","use ability on target 3", *snipe goes off on all 3 targets*
Actually, it is possible to do through the data editor. Although it's a bit complex.
What you need to do is create two different buffs, one which is something like: "Marked", and another which would be something like "Targets". Both should probably be hidden. Now this is what you want to do:
Your snipe ability should do a set of items: -Apply a buff to the target "Marked" -Apply a buff to you "Targets". This should be stackable up to 3 times. -Do a search effect for units with the "Marked" buff IF you have 3 stacks of "Targets" (Use validators) -Remove your "Targets" buffs IF you have 3 stacks of "Targets"
The search effect should then do another set of effects: -Remove the "Marked" effect from the unit -Do the damage/effect you want on the snipe ability
You might have to make some other adjustments too, like a timer on the behaviors etc. Also this would be problematic if there is more than one sniper, you'd have to create some more validators for that.
If you want to do it with the trigger editor, that's possible too. Although if you don't know how to code it'll be hard. What you need to do is create an unit array for the sniper, and then create an event for when you use the sniper ability. Add the target to the array, check if there are 3 units there, and if there is, do your magic on them.