Du musst den Wert für healthpos natürlich jedes Frame neu berechnen. Zum Beispiel:
Code:
var player_health; //erhält den Wert im Playerscript, definierter Skill
var player_mana; //erhält den Wert im Playerscript, definierter Skill
var health_pos = 200 - (player_health*2);
var mana_pos = 200 - (player_mana*2);

PANEL* char_balken_pan =
{
	bmap = "charbalken.pcx";
	pos_x = 0;
	pos_y = 0;
	window = 111, 31, 200, 20, "playerhealth.pcx", health_pos, 0);
	window = 111, 54, 200, 20, "playermana.pcx", mana_pos, 0);
	digits(200, 37, 3, *, 1, player_health);
	digits(200, 60, 3, *, 1, player_mana);
	flags = SHOW | OVERLAY;
}

void char_balken_startup()
{
	while(1)
	{
		health_pos = 200 - (player_health*2);
		wait(1);
	}
}




Always learn from history, to be sure you make the same mistakes again...