Dark Age Games
Home Dark Age EX Dark Age 2 Message Board Fan Art FAQ Kelzar Mage DALpedia MS Forum
Board Index Dark Age General Bug Report Website Off Topic Register User Edit User User List Search

In reply to: Check My Hp Bar! -- William 10:17:11 07-10-2004

Try this
Posted by: Xorlak
11:13:16 07-10-2004

It works, but it'll probably be better if you use a #while loop instead of an #if and a branch:

#enemyhp!=20
#enemyhpmax!=25
#bar!=0
#while(bar!=0)
{
#color(4)
#clear()
#hp_percentage! = enemyhp! / enemyhpmax!
#bar_width! = 30 * hp_percentage! + 10
#fillrect(10,10,bar_width!,15)
#enemyhp!=enemyhp!-3
#if(enemyhp!<1){#bar!=1}
#Wait()
}
#clear()
#delay(2)

----------
-Xorlak
Edit Post