I am an amateur using Unity 5 to create the aforementioned type of game. I am trying to write a function to determine whether a close quarters combat(melee) attack lands or not but am extremely terrible at math. How bad? Despite tutoring for 2-3 hours every day after class and doing my homework assignments multiple times for practice even after submitting them, I still failed business calculus 3 times and had to abandon college. Math simply does not click for me. I found a sweet sales job in the booze industry so it's all good though, but I digress. If anyone could humor me and point me in the right direction I would appreciate it. Here are the details, let me know if I'm being inarticulate.
Combat is turn based, in the same vein as Ogre Battle, Heroes of Might & Magic, and Final Fantasy Tactics. Hopefully this gives you an idea of movement and engagement, if not let me know and I'll elaborate with specifics.
Whether or not an attack lands is determined by (what I'll call for simplicity) the two combatants "Weapon Proficiency." This system is based on a 100 percentile system. For Example, if both attacker and defender have a Weapon Proficiency of 50, then the attacker has a 50 percent chance to hit the defender.
My issue is I have no idea how this mathematical function works when weapon proficiencies are of disparate values. For example, if the attacker has a weapon proficiency of 35 and the defender has a weapon proficiency of 85, what percent chance does the attacker have of scoring a hit?
Any help would be extremely appreciated, again forgive me if I'm not explaining the subject lucidly.