RPG in a Box

RPG in a Box

View Stats:
Is there any way to use a custom formula in real time combat or attach scripts in attacks?
Hello there,
I have a couple of question about the real time combat:
-Is there a any way to make custom formula for damage or other stuff in real time combat or attach a script when you(or the enemy)attack something?
-When the attack is registered and calculate in game( my educated guess is in the first frame of a character attack animation)?
-Can I set the hit chance of real time attacks?

I'm asking because i want to use some custom stats for real-time combat because I don't really understand how the damage, hit chance etc. are calculated in real time combat.

For example, in my project I want to make a first person dungeon crawler with grid movement and real time combat(ala Grimrock) and I want implement stats like Evasion(for evading incoming attacks) and Accuracy(hit chance).
For what I tested with real time combat, I found out that enemy can miss their attacks, and the player can't.