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.
[09:18 pm]
Ultraviolet -- 🔪🐈
[12:34 pm]
NudeRaider -- curiosity kills the cat!
[06:18 am]
Sylph-Of-Space -- No complaints here, i'm just curious!
[2024-5-18. : 11:05 pm]
Ultraviolet -- :wob:
[2024-5-18. : 3:55 pm]
Zoan -- :wob:
[2024-5-18. : 10:34 am]
NudeRaider -- SEN doesn't rely on spammers initiate its sleep cycle. It hat fully automated rest and clean-up phases. Please understand that this is necessary for the smooth operation of the site. Thank you.
[2024-5-18. : 3:45 am]
Sylph-Of-Space -- Does the shoutbox get disabled when there's spammers?
[2024-5-17. : 6:47 am]
NudeRaider -- lil-Inferno
lil-Inferno shouted: nah
strong
[2024-5-17. : 5:41 am]
Ultraviolet -- 🤔 so inf is in you?
[2024-5-17. : 4:57 am]
O)FaRTy1billion[MM] -- my name is mud
Please log in to shout.


Members Online: Roy