This is for a multi-character RPG. Here's what I've done:
On Raynor, Tychus, and Nova, I edited their stats to have a max of 100 shields and -1 regeneration rate. Now, when Karass uses Plasma Surge, he can temporarily give them shields (50 at a time, stacking up to 100) which decay at a rate of 1 HP lost per second. That works fine.
The trouble is, the heroes are walking around all the time with 0/100 shields showing in their UI and an empty bar above their heads. Is there a way to make that disappear when they don't have shields? I know Tosh's Psi Shield and the Battlecruiser's Defense Matrix work like this, but my attempts at copying effects have broken Plasma Surge (i.e. made it not work normally on Protoss units, which it also needs to do)
It works! I had a little trouble making it only affect Terran units and not also Protoss units that have been damaged down to 0 shields, and giving back the 100 max shields the next time you cast was a bit tricky (giving 100 max shields also gave 100 current shields but I got around it. Here are my 2 triggers, in case anyone else is interested:
(the radius of 8 is because I increased the effect area of Karass's ability to 8. I also decided -0.25 was a better decay rate, hence the change there.)
This is for a multi-character RPG. Here's what I've done:
On Raynor, Tychus, and Nova, I edited their stats to have a max of 100 shields and -1 regeneration rate. Now, when Karass uses Plasma Surge, he can temporarily give them shields (50 at a time, stacking up to 100) which decay at a rate of 1 HP lost per second. That works fine.
The trouble is, the heroes are walking around all the time with 0/100 shields showing in their UI and an empty bar above their heads. Is there a way to make that disappear when they don't have shields? I know Tosh's Psi Shield and the Battlecruiser's Defense Matrix work like this, but my attempts at copying effects have broken Plasma Surge (i.e. made it not work normally on Protoss units, which it also needs to do)
@dgh64: Go might be not clean but do it via trigger. if current shield = 0, set max shield = 0 might remove it from showing
Hmm... I'll go give that a try.
It works! I had a little trouble making it only affect Terran units and not also Protoss units that have been damaged down to 0 shields, and giving back the 100 max shields the next time you cast was a bit tricky (giving 100 max shields also gave 100 current shields but I got around it. Here are my 2 triggers, in case anyone else is interested:
1st trigger:
(the radius of 8 is because I increased the effect area of Karass's ability to 8. I also decided -0.25 was a better decay rate, hence the change there.)
2nd trigger: