HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

A hero play damaged animation like buildings.

01-07-2004, 10:55 AM#1
BlackSlash
Hi everyone,
I have created a robot style hero based on siege golem.
I want add a feature to play damaged animations when HP go down like every building (smog, fire, etc.). There are an ability with this feature?

Thanks in advance for help.

-Black Slash
01-07-2004, 11:04 AM#2
Quetz2
I think you have to assign the hero to be a structure for that to happen, which isn't possible with the normal editor.
01-07-2004, 11:58 AM#3
GreyArchon
In theory, it could be done with triggers and some custom abilities.

Copy the "fire melee damage" (where the little circling red orb is attached). Make it a normal ability and change the graphic to flames/smoke/whatever you want. Have it target "origin", "body" or "hand" left/right/etc. Make three of those, each different.

Then make it so that:

IF hero health <80%
THEN Add Ability Firesmoke 1

IF hero health > 80%
THEN Remove Ability Firesmoke 1

IF hero health < 55%
THEN Add Ability Firesmoke 2

IF hero health > 55%
THEN Remove Ability Firesmoke 2

IF hero health < 30%
THEN Add Ability Firesmoke 3

IF hero health > 30%
THEN Remove Ability Firesmoke 3


Let them continueously check if they should be executed. For the exact code on how to do this, ask someone who's good at it. I can write my trigger ideas only in theory. :P
01-07-2004, 01:08 PM#4
Kamahl
Grey Archon's idea works. It may have to check every time he gets hit, I can't remember if integer comparison is available as an event; I don't think so, so you may have to just check whenever he takes damage.
01-07-2004, 04:42 PM#5
FerretDruid
Siege units except for mortars get smoke effect when they are damaged... not sure why, maybe you could look into it though.
01-07-2004, 05:51 PM#6
Dead-Inside
I'd go with the looped events that assign special effects.. You could remove all special effect, then add new ones every time the loop runs. It doesn't have to be exactly run every time someone is hit, it doesn't matter if it takes 2 or 3 sec (So you can have a slow loop) for it to begin casting a special effect...

Regards
Dead-Inside
01-07-2004, 06:05 PM#7
th15
Err in Tank Commanders my heroes are tanks and they have damage attachments fine. Though occasionally they may be at red health with no damage animation. I suppose it has something to do with the fact that theyre targeted as mechanical units.
01-07-2004, 06:12 PM#8
GreyArchon
Quote:
Originally posted by th15
Err in Tank Commanders my heroes are tanks and they have damage attachments fine. Though occasionally they may be at red health with no damage animation. I suppose it has something to do with the fact that theyre targeted as mechanical units.


Of course, that's it. Make them Mechanical and smoke/fire should be automatic.
Remember that unedited healing skills and fountain of life/mana wont work on mechanical units.
01-07-2004, 06:41 PM#9
Shark
just make an mechanic unit, with edited heal which can heal only mechanical.....or give him repair :)))
with no resources consumption....
01-07-2004, 11:23 PM#10
BlackSlash
With mechanical tag all worked fine.. Thanks !!!
01-08-2004, 01:17 AM#11
GreyArchon
Quote:
Originally posted by BlackSlash
With mechanical tag all worked fine.. Thanks !!!


My first idea works too. Try it with blood animations for a good realism effect.