So basically, I have a targeted effect, you cast it on a unit, and it creates a unit. I want this created unit to use an ability as soon as it's created through the data editor. Can this be done? I'd really like to avoid using triggers and I can't seem to find out how to make the created unit do an action, only the targeted unit and casting unit.
Yes you can. In the Create Unit effect, notice there's a field Effect - Spawn. You just place your Issue Order effect in here and the unit will run whatever effect is there, if it's properly set up/if your unit has the required energy, etc.
This is what I've been trying to do. I want a set that make it use the warp-in effect and makes the unit order to just attack. I removed the warp-in effect, for testing, and I still can't get it to work. How would I set the issue order up?
I've been able to issue an order to the casting unit and the targeted unit, but not the summoned unit.
EDIT: After a LOT of trial-and-error I got it.
I set the 'Unit+' as 'Target'.
Then I had to set the 'Target+' to Effect: (create unit ability) Value: 'Target Unit'
@Johnzee: Go
Ya, then the unit warps back out. (I don't know how to make it warp out, so I just made it raise height and disappear) But as I said, I already have it working.
Last problem I'm having is that it doesn't play the expire effect if the targeted unit leaves the range of the created unit's ability.
So basically, I have a targeted effect, you cast it on a unit, and it creates a unit. I want this created unit to use an ability as soon as it's created through the data editor. Can this be done? I'd really like to avoid using triggers and I can't seem to find out how to make the created unit do an action, only the targeted unit and casting unit.
I'm not too good in the data editor, but I'm pretty sure that you can't issue an order like that without using triggers.
@beatlefan: Go
Yes you can. In the Create Unit effect, notice there's a field Effect - Spawn. You just place your Issue Order effect in here and the unit will run whatever effect is there, if it's properly set up/if your unit has the required energy, etc.
@BorgDragon: Go
This is what I've been trying to do. I want a set that make it use the warp-in effect and makes the unit order to just attack. I removed the warp-in effect, for testing, and I still can't get it to work. How would I set the issue order up?
I've been able to issue an order to the casting unit and the targeted unit, but not the summoned unit.
EDIT: After a LOT of trial-and-error I got it.
I set the 'Unit+' as 'Target'. Then I had to set the 'Target+' to Effect: (create unit ability) Value: 'Target Unit'
@Alzarath: Go
So if I'm reading this correctly, your ability targets a unit, a unit warps in, then the warped-in unit goes and attacks the target?
@Johnzee: Go Ya, then the unit warps back out. (I don't know how to make it warp out, so I just made it raise height and disappear) But as I said, I already have it working.
Last problem I'm having is that it doesn't play the expire effect if the targeted unit leaves the range of the created unit's ability.