So I'm making a simple RPG game and I'm currently stuck on creating an attacking module for it.
I need to create a simple attack algorithm but I'm really not very good at it.
Each character has 3 base states - Attack, Defense, Dexterity
and all characters have exactly 100hpstart off with 50hp and they gain 5hp per level.
What formula should I use to determine chance of hit, and how much damage is dealt? It doesn't have to to too overly complex. Just something simple for now.