I'm making custom health bars for my units, and so far its mostly working but I have one problem.
Dialog - Set health size to ((300 * (Integer((Goliath [120.84, 130.08] Life (Percent) (Current))))), 25) for (All players)
My health bars are 300 long when they are full, so shouldn't that work ^. My event is when he takes damage, to update the health bar, but right now for some reason the bar gets bigger....... 300 x .90% or whatever should be smaller.
If I use 100 length health bars everything is fine, but it just doesn't look right for my map I really want them longer.
All I'm trying to do is make it so the dialog item(my health) lowers anytime I get hit.
lol I thought you ment to do that the 1st time, so now I tried what you listed the 1st time and woohoo, thanks :)
so much work to get diablo UI down, but almost complete :) really wish I knew how to get health/mana inside globes though to make it look cool but bar will do
I'm making custom health bars for my units, and so far its mostly
working but I have one problem.
Dialog - Set health size to ((300 * (Integer((Goliath [120.84, 130.08]
Life (Percent) (Current))))), 25) for (All players)
In case you are still wondering why your first version didn't work, my interpretation is that (Integer((Goliath [120.84, 130.08]
Life (Percent) (Current))))) will only give you 1 or 0. It should be (Integer(300 * (Goliath [120.84, 130.08]
Life (Percent) (Current))))), 25)
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I'm making custom health bars for my units, and so far its mostly working but I have one problem.
Dialog - Set health size to ((300 * (Integer((Goliath [120.84, 130.08] Life (Percent) (Current))))), 25) for (All players)
My health bars are 300 long when they are full, so shouldn't that work ^. My event is when he takes damage, to update the health bar, but right now for some reason the bar gets bigger....... 300 x .90% or whatever should be smaller. If I use 100 length health bars everything is fine, but it just doesn't look right for my map I really want them longer.
All I'm trying to do is make it so the dialog item(my health) lowers anytime I get hit.
The only thing I can assume is that it is multiplying 300 by 100 when you are at 100%, rather than 1. Try dividing the percentage by 100.
@Kanaru: Go
ya already tried that, that just makes it go all the way to nothing at start, then slowly go up as I keep attacking that unit
This shouldn't work, but try dividing instead of multiplying maybe? :\
@Kanaru: Go
lol I thought you ment to do that the 1st time, so now I tried what you listed the 1st time and woohoo, thanks :) so much work to get diablo UI down, but almost complete :) really wish I knew how to get health/mana inside globes though to make it look cool but bar will do
In case you are still wondering why your first version didn't work, my interpretation is that (Integer((Goliath [120.84, 130.08] Life (Percent) (Current))))) will only give you 1 or 0. It should be (Integer(300 * (Goliath [120.84, 130.08] Life (Percent) (Current))))), 25)