Hi Crypton,
I tried it again with window and I didnt get it to work.
as you mentioned, window doesnt accept variables or decimals.
Maybe this code will help you.
BMAP* balken_attribut = "attribut.pcx";//pcx with 100x20
var willenskraft = 100;
PANEL* will_pan =
{
pos_x = 0;
pos_y = 0;
hbar = 0, 0, 200, balken_attribut, 2, willenskraft;
flags = VISIBLE;
}
function reduce_hp()
{
willenskraft -= 0.987;
}
function main()
{
...
..
.
on_t = reduce_hp;
}
This code is tested and should work like a comon healthbar.
Im also interested in knowing how to make a healthbar with window

I will test some more but it seems that it wont work with window.
Anyway, I hope you can use the vbar code.
cheers