So I've got an ability (an Item Ability) that I want to instantly apply an effect to the caster unit. I.e., when I click this Item Ability, my casting unit immediately gets a Buff that lasts for a period of time.
However, I don't know how to get the "caster" using Effects. (I could think of a simple way to do it in triggers, but on another topic, Triggers currently aren't firing for my Item Abilities for some unknown reason).
I could 'hack' it by doing a Search Area on an area that is 0.1 small at the origin, and have that SA apply the effect to the unit, but is there a way to 'cleanly' get the Buff on the Unit? (I am afraid of random bugs if the unit uses it while another unit is directly on top of it, and they both get the buff)
Try setting the Unit - Unit - Value field of the Apply Behavior effect to caster? Also under the Effect - Instant ability you should find a field called Effect - Effect which you need to put your effect tree under.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Yes it sets the scope of that effect as the point of reference for the value. It also needs to be a previous effect in that effect tree.
For example you launch a missile from the caster to a unit that then launches a missile to a third unit that then applies an apply force effect to pull all units to the target. If you get the effect set to target you can alter which unit is known as a target by altering which of the two launch missile effects you use.
You find that field type being used alot in the left 2 die mod. It is also useful for creating teleport effects that occur when dealing fatal damage to an enemy unit.
Else look at the mothership vortex ability because it uses this field in over 2 instances.