So in the past few months, I have gotten a lot more proficient in the data editor. I have created a lot of really interesting target-able abilities, but I still don't quite get Instants. A lot of the issue seems to be with persistents. For example, one ability I have creates a persistent that creates three search areas in an arc in front my caster. as Effect - Target it works perfectly, but when I try to make it Effect - Instant, I get a "must target unit" error. I tried changing all my Location fields and such to caster, but that did not seem to work.
Also, I have a problem with the button just plain not showing up for a different ability. This ability charges up the casters weapon, so that other abilities will be more effective based on how long this ability was charged for. All I did was create an Create Persistent effect with four periods spaced about .8 second apart, period effect being an apply behavior. Those are the only two effects I used. I made a custom button, and an actor for charging. But the button just isn't there! I've been running into the invisible button issue frequently today while working on different abilities. One of my buttons went invisible after I changed things on an unrelated ability! Luckily I'm not using it anymore so it doesn't matter, but still...
Also, I have checked to make sure it wasn't a careless error such as adding the ability to the wrong unit, or forgetting a field in the command card.
So in the past few months, I have gotten a lot more proficient in the data editor. I have created a lot of really interesting target-able abilities, but I still don't quite get Instants. A lot of the issue seems to be with persistents. For example, one ability I have creates a persistent that creates three search areas in an arc in front my caster. as Effect - Target it works perfectly, but when I try to make it Effect - Instant, I get a "must target unit" error. I tried changing all my Location fields and such to caster, but that did not seem to work.
Also, I have a problem with the button just plain not showing up for a different ability. This ability charges up the casters weapon, so that other abilities will be more effective based on how long this ability was charged for. All I did was create an Create Persistent effect with four periods spaced about .8 second apart, period effect being an apply behavior. Those are the only two effects I used. I made a custom button, and an actor for charging. But the button just isn't there! I've been running into the invisible button issue frequently today while working on different abilities. One of my buttons went invisible after I changed things on an unrelated ability! Luckily I'm not using it anymore so it doesn't matter, but still...
Also, I have checked to make sure it wasn't a careless error such as adding the ability to the wrong unit, or forgetting a field in the command card.
Any help would be greatly appreciated.
Thats generally set on the Target properties .... each effect has its own target properties
Source and Target
as well as where you set the sub-effect to be used.
@Nahotnoj: Go
You get the Error 'Must Target Unit' because your Effect - Instant has a RANGE higher than ZERO.
Modify your abilities Stats - Range field, set it to 0. Problem solved.
I just turned the High Templar Psionic Storm into an instant AOE. Instants are generally always centered on the caster unit.