HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Unit HP question

03-01-2003, 05:28 AM#1
Loofy
Is it possible to have a trigger which adds a certain percentage of life to all current units in the map and future built units.

So lets say a Sheep Warrior has 100 HP.

After a certain event, a condition gives the Sheep Warrior extra 10 % HP.

So Sheep Warrior's new HP is 110.

But if I make a new Sheep Warrio his HP is ALSO 110, and not the standard 100. Just curious if this is possible
03-01-2003, 05:44 PM#2
got_ammo
You could probably do it this way:
Events - Every 1 second of the game
Cond - none
Actions:
If (whatever is needed to make them have more hp) Then replace all sheep warrior with a sheep warrior with 110 max hp Else do nothing.

I'm not sure if you can add 10 hp max to a unit thru a trigger so this should work for you.
03-01-2003, 05:50 PM#3
Ari
Why not convert the orc grunt upgrade into this? It takes a bit of work if you've never edited abilities, but it's very straightforward, and makes much more sense, in this case.
03-01-2003, 06:17 PM#4
FyreDaug
Is this a hero or a unit? If it's a hero I got a good idea for you.
03-01-2003, 06:36 PM#5
Loofy
It's a normal unit. There are many many units that need to be replaced. And I cannot add any upgrade files due to conflict with map preview screen. emote_confused
03-01-2003, 06:42 PM#6
FyreDaug
Just use the default loading screen, thats all.