View previous topic :: View next topic |
Author |
Message |
JSH357

Joined: 02 Feb 2003 Posts: 1705
|
Posted: Tue Dec 09, 2003 3:20 pm Post subject: On hitting the enemy |
|
|
OK, I'm beginning to think that this may be a bug. I've been using the OHRRPGCE for several years now, and in the course of those years I have never gotten the Accuracy/Evasion formula to work right.
According to the howto, 'Normal' accuracy works like: 4 * Acc ~ Evd with Result = Evd assumed at a 88% chance.
But it doesn't work that way.
I just tested it: I gave a hero Accuracy of 10 and an enemy Evasion of 40 and attack 200 times. Now, if I did my math right, I should have hit right around 176 times, correct?.
I hit around 60 times. Is my luck just that bizarrely bad? Or is something fishy here? Is there a misprint in the howto?
I don't want to report this as a bug until I'm 100% certain that it's wrong. My question is, how do you normally use Accuracy? |
|
Back to top |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Thu Dec 11, 2003 11:23 am Post subject: how accuracy/evade works |
|
|
Here is how Accuracy and Evade work. I apollogise for the use of the vague "~" in the accuracy formula. It doesn't clearly indicate what is happening
For "Normal" evade: 4 * Acc ~ Evd
Supposing the attacker has 10 Accuracy, and the target has 40 evade.
Accuracy is multiplied by 4, so the formula is 40 vs 40
Now, for the accuracy, it picks a random number between 0 and 40
Then, for the evade, it picks a random number between 0 and 40.
If the Accuracy number is higher, the attack hits. If the Evade number is higher, the attack misses. Percentages are never used.
Now if that worked perfectly, your attack should hit roughly 50% of the time. If you attacked 200 times and only hit 60%, that is a little less than 33% accuracy, so there may be a bug. I will check my accuracy code. |
|
Back to top |
|
 |
jabbercat Composer

Joined: 04 Sep 2003 Posts: 823 Location: Oxford
|
Posted: Thu Dec 11, 2003 11:26 am Post subject: |
|
|
Its probably just your luck , because I tried something simmilar a while back and everything was fine but keep trying just incase |
|
Back to top |
|
 |
JSH357

Joined: 02 Feb 2003 Posts: 1705
|
Posted: Thu Dec 11, 2003 2:27 pm Post subject: |
|
|
Ah, many thanks. I tested it again, and this time I hit closer to 100. My luck must have been off... Wow, that's been bugging me for ages. *Goes to fixing stats in his games* |
|
Back to top |
|
 |
|