Staredit Network > Forums > SC2 Assistance > Topic: Shield Costing Heal
Shield Costing Heal
Sep 19 2010, 4:34 am
By: aalleecc248  

Sep 19 2010, 4:34 am aalleecc248 Post #1



I'm trying to make an auto-casting ability that is similar to the Medivac/Medic's Heal ability. I want to use shields instead of energy and to only target Armored type units. However, I can't get the ability to work on the unit, it targets it just fine, but it will not heal the target for some reason. Looking for help now because I have apparently given up.



None.

Sep 19 2010, 4:57 am ImagoDeo Post #2



1. Copy the Medivac healing ability. Duplicated the linked effect 'Medivac - Heal (Create Healer)'.
2. Open up the duplicated effect, and go to the 'effects' section.
3. Change the 'Drain Vital' field to read Shields.

Voila! Your very own shield-to-health heal ability. Rename some things, change the button, and you can use it wherever you want.

Making it only target armored units is more difficult. There's a section under 'Effects' labeled 'Validators' - I'm guessing you'll need to make a custom validator for it. I'll look into it and get back to you.

Edit: Aha! Found it.

Go into the Validators tab. Add a new validator. Set it to Type - Unit Filters. Then go into the Validator info and modify the Filters section to have Armored as Required. To prevent your effect from healing dead units and other stuff like that, you'll have to set a number of things to 'Excluded'. To simplify this, you can copy another validator of the same type (Unit Filters) and modify it from there.

Post has been edited 1 time(s), last time on Sep 19 2010, 5:06 am by ImagoDeo.



None.

Sep 19 2010, 2:51 pm aalleecc248 Post #3



Wow, thanks a lot! However, I seemed to notice that there is a target filter in the Meadivac - Heal ability so there is no need for a validator. But anyways, you helped a lot!!!

EDIT: It doesn't seem to work when I put it on a structure and as a Neutral player. It won't heal the units but it worked when everyone had control.

Post has been edited 1 time(s), last time on Sep 19 2010, 3:21 pm by aalleec248.



None.

Sep 19 2010, 4:00 pm Temp Post #4



Make sure the target filter is set properly (so nothing is excluded).



None.

Sep 19 2010, 5:31 pm aalleecc248 Post #5



Thank you both, now it works decently!



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2026-10-05. : 6:14 am]
NimoStar -- But even if she wasn't, the whole NSDAP stormtrooper wing was gay-led back then
[2026-10-05. : 6:13 am]
NimoStar -- rainbow mafia? That gal is like against gay rights (even if she is a lesbian) for example adoption
[2026-10-03. : 7:42 pm]
Symmetry -- Everybody needs somebody to hate, amirite?
[2026-10-03. : 6:57 pm]
Ultraviolet -- even the rainbow mafia is getting accused of being far right now :lol:
[2026-10-03. : 3:05 am]
Oh_Man -- wtf is happening in germany now... https://youtu.be/_oR2SgGvpzo
[2026-10-02. : 5:07 pm]
Symmetry -- no u
[2026-10-02. : 12:54 am]
lil-Inferno -- u
[2026-10-01. : 2:28 pm]
NudeRaider -- Oh_Man
Oh_Man shouted: NudeRaider non-sequitur harder daddy
no shit sherlock. I wanted you explain what you mean with time capsule (hence the question mark!), because obviously what follows makes no sense. For someone so intelligent you can be quite daft at times...
[2026-10-01. : 4:00 am]
Oh_Man -- NudeRaider
NudeRaider shouted: time capsule? you don't talk to 90s kids outside of SEN?
non-sequitur harder daddy
[2026-10-01. : 2:56 am]
Symmetry -- Talk to people? Like in real life?
Please log in to shout.


Members Online: lifebot