HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Custom Unit System - question

03-07-2007, 05:33 PM#1
stifler102
I would like to make a unit that has an extra bar in addition to the health bar and mana bar that slowly drains as it lives. It cannot be damaged, it just drains at a constant steady pace. But once this bar runs out, the health of the unit begins to drain, but increasingly quicker until it eventually dies. This will be a unique way to balance a pretty powerful foot soldier. I will also make a healer-type unit that will have the sole purpose of replenishing this extra bar so that the units will not all whither and die when it inevitably runs out. Now I've looked all over the wc3 modding communities and can't find anything like this that exists already, or even anything similar enough to alter for the desired results. So I was wondering if this is possible and if so how to do it. I've thought about making them summonable units, but I hope I can do something better than that as it's only a last resort. I hope this is understandable, if not, just ask and I'll clarify better. Thanks in advance
03-07-2007, 08:25 PM#2
grim001
Are you really SURE you can't just use the mana bar or a timed life bar for this?

If you really need a 3rd bar you can create one using a text tag below the unit, but you can only have 100 text tags at once I believe
03-07-2007, 10:47 PM#3
Dil999
Lagginess FTW :D
The only way i can think to do this would be to
1: use a player's rescource slot.
2: use the mana slot
3: create floating test displaying how much of that stat the unit has left. For example, if the unit had 100 of your stat left, it displays 100. Use a variable.
03-07-2007, 10:57 PM#4
ClichesAreSt00pid
Maybe try using that unit - set custom value stuff.
03-08-2007, 10:06 AM#5
zen87
im not sure but i saw the skibi td are doing that, quite intresting, maybe you should go take a look
03-08-2007, 01:00 PM#6
blu_da_noob
Coloured texttags above the unit with lots of '|'s to form a bar. It's easier in Skibi because towers don't move, and it would probably be a bit jerky for moving units but it might be doable.
03-08-2007, 03:19 PM#7
The)TideHunter(
It is, i've seen it in WoW - Molton Core, Power Word: Shield uses it to show how much life the shield has left before it runs out, this is literally the same concept.
03-08-2007, 08:10 PM#8
shadow1500
Yes, it is using my old spell. I improved on it and released it as Shield System, you can try extracting the lifebar update code for your usage.
03-08-2007, 10:44 PM#9
Ammorth
Why doesn't someone make a model with 100 animations that slowly shrink a plane away and expose the other one? I know I can't so thats why I bring it up. It would allow for more than 100 instances and if you attach it to the unit, the game engine could move it (less function calls).
03-09-2007, 12:58 AM#10
Szythe
Correct me if I'm wrong, but can't you add animation tags to unit via triggers? Like label the animations of the model "LifeBar01", "LifeBar02" etc, and just attach those tags to the units to match their life
03-09-2007, 03:07 AM#11
stifler102
Alright, many good ideas and I thank you all. But, I think that I solved my own problem by just having its mana serve as the "extra bar" and simply have this units' abilities not require mana. Now I'm going to work on the healer unit that will replenish this unit's mana specifically as opposed to other units. Wish me luck and any input is welcomed