• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Heal units at full life?

Status
Not open for further replies.
Level 10
Joined
Nov 5, 2008
Messages
536
I have remade the Heal ability used by Medics & Medivacs.

It is a spell that costs a certain amount of energy and you need to target a unit with it. It heal all units in a small area. The spell is a channeled spell and lasts 10 seconds. During these 10 seconds, a green beam is fired at the target who increases the life via the Medic - Heal effect. I also made it able to target units that are already at full life. So far so good.

The spell stops channeling when the units are at full life. I want it to last 10 seconds, no matther if the units that are being healed are at full life or not. I´ve tried different methods but I can´t get it to work properly.

Is there any simple adjustment I can do to the ability to solve this problem?

Or do I need to create a new ability from scratch and build it with other effects?
 
Level 11
Joined
Jul 20, 2004
Messages
2,760
Don't use the Medic-Heal effect. Instead use an Effect-Target persistent-channeled effect (targeting a unit) that periodically generates a Search Area around the (Target Unit) (use it as Search Area impact point) and heals the units via the Modify Unit effect instead. You can modify a percentage on the units (say +10% of the total life points). Check my tutorial to see more information how you could do this. :3

Because you don't use Medic-Heal, it should not have any intrinsec validators attached to the persistent (such as check the unit's current life).

Let me know how this works.
 
Level 10
Joined
Nov 5, 2008
Messages
536
Yep, I saw you described it in your tutorial with the Blissfull Capacity. I made a new ability with an Effect - Target, search area and heal via the Modify unit. Added the healing beam as an actor.

The reason I asked was to see if there was some slight changes that could be made to the ordinary Heal, to get it to target a fully healed unit. For example, add a validator or an effect or something. But I made the ability from scratch (with help from your tutorial!) and it works now!

Except for one small thing..

The actors won´t show up on all effected units. All units in an area gains the buff and they regenerate HP, so it works in that regard. But only the targeted unit and 1 other unit nearby gains the green crosses model above the head. (The heal model)

It looks like the targeted unit gains 1 heal model above it´s head, and 1 unit nearby gains like 5-10 heal models above it´s head! (The other gains no model)

I´ve looked at the Blissfull capacity actors in the attached map in your tutorial. Everything looks like it should.

I will try to find out this mystery and if I solve it I report it here.

You don´t happen to know what the problem might be?




Don't use the Medic-Heal effect. Instead use an Effect-Target persistent-channeled effect (targeting a unit) that periodically generates a Search Area around the (Target Unit) (use it as Search Area impact point) and heals the units via the Modify Unit effect instead. You can modify a percentage on the units (say +10% of the total life points). Check my tutorial to see more information how you could do this. :3

Because you don't use Medic-Heal, it should not have any intrinsec validators attached to the persistent (such as check the unit's current life).

Let me know how this works.
 
Level 10
Joined
Nov 5, 2008
Messages
536
Upload a testmap where I have applied this ability on a Medivac (just for testing)


The buff is just visible on 2 units, even though more units are effected.
 

Attachments

  • Heal test map.SC2Map
    76.1 KB · Views: 71
Level 11
Joined
Jul 20, 2004
Messages
2,760
Apparently I used a buff for my blissful capacity effect. That way, the buff appears on each individual target and the effect works properly. If you try to use a simple modify unit effect, I suppose you need to alter the actor (though I would need to test this).

Sorry for the long delay... I have to do a lot of work on my RL projects,being on a very tight schedule and close deadline, so I don't really have time to play with the Galaxy Editor right now. Pardon my delayed response. :)
 
Level 10
Joined
Nov 5, 2008
Messages
536
The behaviour may have a maximum unit effected array.
Just check its fields.
As long as the units are being healed it doesnt matter if it shows the behaviour on them or not.

The behaviour is applied to all units in an area. I mean, all units are healed by the effect, as I want it to be. But the buff model only shows on 2 units. I want the model to be visible on all units who are effected.
 
Status
Not open for further replies.
Top