Hello! This is my second thread, my first getting a ton of support. Let's see how good the community is. ANYWAYS!...
I need to make an ability cost shields, plain and simple. The only problem is, I need it to drain the shields completely. No matter how much shields the unit has left. It's difficult to explain, so let me demonstrate:
A zealot has 50/80 shields. He uses the ability, and I want it to drain the 50 points of the 80, leaving him with 0/80 shields.
The way I have it set up right now is by having the cost be 100% of the units shields... sounds right, but in this case the Zealot needs 80/80 shields before he can cast the ability.
or if you want the costs displayed you need to use triggers and set the costs with catalogs each time your unit shields change.
It'd be simpler to just explain in the tooltip that the ability drains all shields upon use.
But yea, like funky said, you just need a modify unit effect added on to the ability. So your first effect triggered by the ability will likely be a set effect so that you can add more than one effect. Make sure your modify unit effect is set to target the caster and not the target.
Hello! This is my second thread, my first getting a ton of support. Let's see how good the community is. ANYWAYS!...
I need to make an ability cost shields, plain and simple. The only problem is, I need it to drain the shields completely. No matter how much shields the unit has left. It's difficult to explain, so let me demonstrate:
A zealot has 50/80 shields. He uses the ability, and I want it to drain the 50 points of the 80, leaving him with 0/80 shields.
The way I have it set up right now is by having the cost be 100% of the units shields... sounds right, but in this case the Zealot needs 80/80 shields before he can cast the ability.
Can anyone help? Thanks! -bvanseghi
add an modify unit effect to your ability which drains all of the shields.
or if you want the costs displayed you need to use triggers and set the costs with catalogs each time your unit shields change.
It'd be simpler to just explain in the tooltip that the ability drains all shields upon use.
But yea, like funky said, you just need a modify unit effect added on to the ability. So your first effect triggered by the ability will likely be a set effect so that you can add more than one effect. Make sure your modify unit effect is set to target the caster and not the target.
As the other 2 have said, use a modify unit effect. To see a working example of exactly what you want, look at the High Templar Feedback ability.
@ArcaneDurandel: Go
Ah, alright. Using an effect didn't cross my mind. Thanks!
Solved?
Still add a validator to the first effect of the ability that required the unit to still have shields.
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