This seems simple, but I could not find it on SC2mapster.
I want my zealot to restore all of it's shields when it kills a unit. How can I do this?
Thanks!
The normal Zealot attack is made up of two effects: "Psi Blades" and "Psi Blades (Damage)". The first is a Create Persistent effect which just splits the Zealot's attack into two hits, by creating the "Psi Blades (Damage)" effect twice.
To achieve what you want is very simple.
Create a new effect of type Modify Unit and set the Shields Change Fraction to 1. That means "set shields to 100%". Then set the Impact Unit to "Caster". Call this effect something like "Zealot - Restore Shields".
Create a new effect of type Set and add to it the two effects "Psi Blades (Damage)" and the new Modify Unit effect you just created.
In the "Psi Blades" effect, change the Period Effects to the new Set effect you just created. This will cause it to execute both effects (Damage & Restore Shields) for every swing.
Create a new validator of type Unit Compare Vital and call it "Zealot - Unit Died From Attack". Leave everything at its default values. It will compare if the target's life is equal to 0, i.e. dead.
Add this validator to the "Zealot - Restore Shields" effect.
The normal Zealot attack is made up of two effects: "Psi Blades" and "Psi Blades (Damage)". The first is a Create Persistent effect which just splits the Zealot's attack into two hits, by creating the "Psi Blades (Damage)" effect twice.
To achieve what you want is very simple.
Create a new effect of type Modify Unit and set the Shields Change Fraction to 1. That means "set shields to 100%". Then set the Impact Unit to "Caster". Call this effect something like "Zealot - Restore Shields".
Create a new effect of type Set and add to it the two effects "Psi Blades (Damage)" and the new Modify Unit effect you just created.
In the "Psi Blades" effect, change the Period Effects to the new Set effect you just created. This will cause it to execute both effects (Damage Restore Shields) for every swing.
Create a new validator of type Unit Compare Vital and call it "Zealot - Unit Died From Attack". Leave everything at its default values. It will compare if the target's life is equal to 0, i.e. dead.
Add this validator to the "Zealot - Restore Shields" effect.
And it works!
Now you just need someone more knowledgeable than me to show you how to create a nice shield regen animation on the Zealot.
Thanks for this! I will just use the Karass Plasma Surge art.
Hi all,
This seems simple, but I could not find it on SC2mapster. I want my zealot to restore all of it's shields when it kills a unit. How can I do this? Thanks!
@coffeeclubbr: Go
I am not going to offer a trigger solution...
I am not going to offer a trigger solution...
I am not going to offer a trigger solution...
There, it worked. Now feel free to ask again in the triggers thread. Or if you really want a data solution, someone here will help you out.
That's why I asked here :)
I figured. I'm bad about thinking trigger first, data never. lol
@coffeeclubbr: Go
Just out of curiosity why do you only want a data solution
<Click Here> To See My Epic Single Player Campaign (LifeForceCampaign.com)
The normal Zealot attack is made up of two effects: "Psi Blades" and "Psi Blades (Damage)". The first is a Create Persistent effect which just splits the Zealot's attack into two hits, by creating the "Psi Blades (Damage)" effect twice.
To achieve what you want is very simple.
And it works!
Now you just need someone more knowledgeable than me to show you how to create a nice shield regen animation on the Zealot.
Because data is a cleaner answer then a trigger.
Thanks for this! I will just use the Karass Plasma Surge art.
Else just have a Buff behaviour with a fatal damage response on attacker.
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