Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

On hitting the enemy

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> The Arcade
View previous topic :: View next topic  
Author Message
JSH357




Joined: 02 Feb 2003
Posts: 1705

PostPosted: Tue Dec 09, 2003 3:20 pm    Post subject: On hitting the enemy Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Bob the Hamster
OHRRPGCE Developer




Joined: 22 Feb 2003
Posts: 2526
Location: Hamster Republic (Southern California Enclave)

PostPosted: Thu Dec 11, 2003 11:23 am    Post subject: how accuracy/evade works Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
jabbercat
Composer




Joined: 04 Sep 2003
Posts: 823
Location: Oxford

PostPosted: Thu Dec 11, 2003 11:26 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
JSH357




Joined: 02 Feb 2003
Posts: 1705

PostPosted: Thu Dec 11, 2003 2:27 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> The Arcade All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group