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!'.