I'm currently working on a skill bar system, where you can click on dialog images to make the hero cast abilities.
That's also working for items and unit-targeted spells. The problem is, that when I try to use "Effect - Instant" abilities, I get this error: "The ability command 'Talent23(0) Target: 39#1' should not have a target" when I have a unit selected, and if I dont have a unit selected, nothing happens at all.
So, it looks like my ability is recognized as Ability with target type unit.
Is there any way to make the ability a untargeted ability, or what other ways are there to solve the problem?
make the ability "Effect - target" if you need it to target something. Instant abilities just make the caster cast the ability right away, while effect - target abilities make the player target a point or unit first
If you dont need a target, just make the ability order action have no target ("Ability command without target" is what its called, or something similar)
The problem is, I cant find a proper condition that checks if the ability is "Effect - target" or "Effect - instant", because both have Unit as a target type so I can't use "Target type for order" as condition.
I'm currently working on a skill bar system, where you can click on dialog images to make the hero cast abilities. That's also working for items and unit-targeted spells.
The problem is, that when I try to use "Effect - Instant" abilities, I get this error: "The ability command 'Talent23(0) Target: 39#1' should not have a target" when I have a unit selected, and if I dont have a unit selected, nothing happens at all.
My trigger for ordering looks like this:
So, it looks like my ability is recognized as Ability with target type unit.
Is there any way to make the ability a untargeted ability, or what other ways are there to solve the problem?
Effect - Instant is usally treated as being targeted on the caster, dunno if there is a way to change that.
make the ability "Effect - target" if you need it to target something. Instant abilities just make the caster cast the ability right away, while effect - target abilities make the player target a point or unit first
If you dont need a target, just make the ability order action have no target ("Ability command without target" is what its called, or something similar)
@TheAlmaity: Go
The problem is, I cant find a proper condition that checks if the ability is "Effect - target" or "Effect - instant", because both have Unit as a target type so I can't use "Target type for order" as condition.
EDIT: Solved it using "Action type for Ability command" comparisons