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: Accuracy -- William 07:54:25 07-04-2004

Well...
Posted by: Xorlak
11:13:35 07-04-2004

You could do accuracy as a percentage.  Have its maximum value be 100.  Then you can do your moves like this:

#random(100,hit!) * Random value from 1 to 100
#if(hit!<=accuracy!)
{
#hit()
}
#if(hit!>accuracy!)
{
#miss()
}


Then your character will hit with a percentage equal to the value of 'accuracy!'.

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