I want to create a cursor splat for my ability, if the caster has a specific behavior.
I have an event Abil.MyAbility.Cursor with the term Create. It works.
But now I wanna add the condition.
I added another term with the type ValidateUnit and my validator which counts the behavior stacks. -> It does not work.
I tried other Blizzard built in validators e.g. Life > 0 HP, but it does not work either. Another Term Type called PassChance worked with 50% chance.
What did I wrong? Any other ideas?
The problem with these mouse-centered actors (like cursor splats, arc actors and similar) would be, that they are separated from the unit's actor scope, so they don't have any reference to the casting unit. Thats why you cannot easily use validators, which validate something specific for this unit, like a behavior.
Depending on your map you can try other stuff, like global references or catalog triggers. If nothing else works, you can always copy the ability and disable them according to the behavior state, and make only one of them use the cursor splat.
I want to create a cursor splat for my ability, if the caster has a specific behavior. I have an event Abil.MyAbility.Cursor with the term Create. It works. But now I wanna add the condition. I added another term with the type ValidateUnit and my validator which counts the behavior stacks. -> It does not work. I tried other Blizzard built in validators e.g. Life > 0 HP, but it does not work either. Another Term Type called PassChance worked with 50% chance. What did I wrong? Any other ideas?
The problem with these mouse-centered actors (like cursor splats, arc actors and similar) would be, that they are separated from the unit's actor scope, so they don't have any reference to the casting unit. Thats why you cannot easily use validators, which validate something specific for this unit, like a behavior.
Depending on your map you can try other stuff, like global references or catalog triggers. If nothing else works, you can always copy the ability and disable them according to the behavior state, and make only one of them use the cursor splat.
Maybe set the host for properties of your splat to the main unit. Then on the main unit have on actor creation send a validated signal to the splat?
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg