Unit dies by healing

A forum for discussing map making ideas and problems for the Myth series.
Post Reply
gugusm
Posts: 487
Joined: Mon Aug 22, 2005 1:16 pm
Location: Klucze, Poland
Contact:

Unit dies by healing

Post by gugusm »

I've created some dark unit, and it dies when healed by my unit. So, I want to get rid of that, but can't figure out what is causing that. I know I have to mess up with tags, but I can't see any flag that makes my unit die by healing. By the way, "Cannot be healed" flag doesn't seem to work.
A-Red
Posts: 771
Joined: Fri Jul 23, 2004 8:36 pm

Post by A-Red »

There's a healing fraction in the main monster window, near flinch fraction and pathfinding radius and stuff. It's probably set to 0.
rifthead
Posts: 88
Joined: Wed Oct 31, 2007 6:53 pm

Post by rifthead »

I always thought it was the "Is undead" flag, but what you're saying makes more sense.
Gleep
Posts: 291
Joined: Sun Aug 14, 2005 10:18 am

Post by Gleep »

A-Red is correct the heal fraction is what is doing it. It sets how much health a unit has after healing. If it is set to 0 then that is what it has after healing and hence it dies.
gugusm
Posts: 487
Joined: Mon Aug 22, 2005 1:16 pm
Location: Klucze, Poland
Contact:

Post by gugusm »

Heh, it's so obvious. Thanks, it works fine now :)
User avatar
Khadrelt
Posts: 479
Joined: Tue Aug 29, 2006 2:59 pm
Location: Utah, USA
Contact:

Post by Khadrelt »

Gleep wrote:A-Red is correct the heal fraction is what is doing it. It sets how much health a unit has after healing. If it is set to 0 then that is what it has after healing and hence it dies.
I don't think that's exactly how it works - i.e. if you set a unit's healing fraction to .1 and heal it when at full health, it doesn't lose any (it doesn't go down to .1). It only seems to lose health if it's actually 0 - if it's higher that's the maximum amount of health a unit can have after healing, not the health it's set to after healing.
Last edited by Khadrelt on Mon Nov 26, 2007 2:52 pm, edited 2 times in total.
The cake is a lie.
gugusm
Posts: 487
Joined: Mon Aug 22, 2005 1:16 pm
Location: Klucze, Poland
Contact:

Post by gugusm »

Khadrelt wrote:
Gleep wrote:A-Red is correct the heal fraction is what is doing it. It sets how much health a unit has after healing. If it is set to 0 then that is what it has after healing and hence it dies.
I don't think that's exactly how it works - i.e. if you set a unit's healing fraction to .1 and heal it when at full health, it doesn't lose any (it doesn't go down to .1). It only seems to lose health if it's actually 0 - if it's higher that's the maximum amount of health a unit can have after healing, not the health it's set to after healing.
Yeah, you're certainly right, because you would hurt your units while healing them when their health is full :wink:
Post Reply