Ok I'm working on doing a new combat system for my mud.. And I'm trying to plan it out before I just start coding it. But I run into a small implementation problem that I was hoping maybe someone had some insight on how I could do it. So let me explain it a bit:
I wanted to have a fight update. Probably have it run twice a second so ever 2 pulses. Now to figure how often a person would update or hit I was figuring it like this. I want to take there Dexterity * 4 giving me a 4 - 100 number. Then Each class will have like a modifier so lets say an assassins is 4. So it would divide that 4 - 100 number by the class modifier. So ((dex * 4) / class_mod) So lets say an assassin had 25 dex and there mod is 4 so that would return 25. Now I would like that to work like this but IDK how to do it. Would like to divide that 25 by 10 so I get 2.5. And I would like that 2.5 to mean 2 and 1/2 updates. Meaning they would run through the update once ever 1 and 1/2 seconds. My problem is how would I get that 5 to mean 1/2? Of second? And how would I grab that .5 away from the 2.5 so I could use it? Any ideas or suggestions would be a great help.

