HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Increase Max Hit Points Of Basic Unit?

03-08-2007, 03:45 PM#1
Brash
I'm trying to figure out the best way to constantly increase the Hitpoints of a regular unit that has a spell cast on it. every cast i want it to raise the hit point max of that basic non-hero unit.


i best ideal i came up with was adding the item life bonus ability and then upping the level of it with each cast but it isn't working. it's staying locked at the life bonus of lvl 1.
03-08-2007, 03:59 PM#2
Fireeye
There are some abilitys which can not have more than 1 level, e.g. the true sight ability of human towers, you need to copy the ability and set the new amount, then detect if the unit already has one of those abilitys, if yes remove it and add the new ability with more bonus.
03-08-2007, 04:44 PM#3
Captain Griffen
You could use tome based abilities in some way.
03-08-2007, 05:23 PM#4
Rising_Dusk
Here is a link to Blade.dk's SetUnitMaxState() demo map.
It's infinitely useful and totally dynamic.

You could create your spell most efficiently with this system.
03-08-2007, 05:27 PM#5
blu_da_noob
http://www.wc3campaigns.net/showthread.php?t=80490

Edit: hax dusk, I open too many windows at once and take too long to respond :P
03-08-2007, 06:11 PM#6
Brash
thanks guys. i went with the tome way of doing it suggested by captain griffen for now. i got it set up to use manual of health. i add hero inventory to the basic unit.. create and give it the tome.. then remove the hero inventory.. and you'd never know it was a tome or that it ever had the inventory while in game. it seems to work perfectly.

i also took out the graphic for the tome's ability.

=D
03-08-2007, 07:59 PM#7
Dil999
If you give it a tome it should automatically use the tome. You dont need the trigger to remove it.
Anyways, if your doing that make sure to leave one inventory slot open on that unit at ALL times, or else the tome will be placed on the ground near the unit since it cannot fit in the inventory.
03-16-2007, 12:31 AM#8
Brash
Quote:
Originally Posted by Dil999
If you give it a tome it should automatically use the tome. You dont need the trigger to remove it.
Anyways, if your doing that make sure to leave one inventory slot open on that unit at ALL times, or else the tome will be placed on the ground near the unit since it cannot fit in the inventory.


nope. it doesn't do that. i give the unit a hero inventory then i create the tome and give it to the unit.. it automatically uses it. then i instantly remove the "inventory" ability from that unit after giving it the item.. it never drops tome on ground nor does it leave any slots or inventory there. seems solid.. no wait states between either. just

add inventory hero ability to unit
create manual of health and give it to unit
remove inventory hero ability from unit


just 3 lines! amazing how simple it was.