Results 1 to 5 of 5

Math Help - Nerdy request

  1. #1
    Newbie
    Joined
    May 2007
    Posts
    3

    Red face Nerdy request

    I hope it's ok to ask this here.

    I'm working on an role playing game and I need help with a combat formula.

    What formula would make all 3 of these statements true?

    1) If attacker has Weapon Skill of 100 (maximum) and defender has Parry skill of 0 (minimum), then attacker has 100% chance of hitting defender.

    2) If attacker has Weapon Skill of 0 (minimum) and defender has Parry skill of 100 (maximum), then attacker has 0% chance of hitting defender.

    3) If Weapon Skill = Parry Skill, whether both 0 or both 100 (or anything in between) attacker has 50% chance of hitting defender.



    So I need to be able to figure out the chance to hit for 0-100 vs 0-100
    eg. attacker has a Weapon skill of 73 and the defender Parry skill of 29
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Senior Member
    Joined
    Apr 2006
    Posts
    399
    Awards
    1
    Quote Originally Posted by rpgnerd View Post
    I hope it's ok to ask this here.

    I'm working on an role playing game and I need help with a combat formula.

    What formula would make all 3 of these statements true?

    1) If attacker has Weapon Skill of 100 (maximum) and defender has Parry skill of 0 (minimum), then attacker has 100% chance of hitting defender.

    2) If attacker has Weapon Skill of 0 (minimum) and defender has Parry skill of 100 (maximum), then attacker has 0% chance of hitting defender.

    3) If Weapon Skill = Parry Skill, whether both 0 or both 100 (or anything in between) attacker has 50% chance of hitting defender.



    So I need to be able to figure out the chance to hit for 0-100 vs 0-100
    eg. attacker has a Weapon skill of 73 and the defender Parry skill of 29
    Will this do?

    Chance of hitting = 50 + (Weapon - Parry)/2.
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Newbie
    Joined
    May 2007
    Posts
    3
    Quote Originally Posted by JakeD View Post
    Will this do?

    Chance of hitting = 50 + (Weapon - Parry)/2.
    Thanks for the reply! but I'm not exactly sure if it does.

    50 + (100 - 0) /2 = 75 (should be 100%)

    50 + (0 - 100) /2 = -25 (should be 0%)

    50 + (50-50) /2 = 25 (should be 50%)
    50 + (21-21) /2 = 25 (should be 50%)
    50 + (64-64) /2 = 25 (should be 50%)

    Now, it looks like I could just add +25 to each result ...

    50 + (73-29) /2 = 47 + 25 = 72% chance?

    ... and in the reverse situation when Parry is greater ...

    50 + (29-73) /2 = 3 + 25 = 28% chance?

    That could be correct but I'm not sure how to verify it.
    And why am I adding +25 to your formula? Does that really "fix" it?
    Is there a better way?


    EDIT: 100 + (Weapon - Parry) /2 ?
    EDIT AGAIN: No, that can't be right either. Or else 75 vs 0 ends up with 87.5% which makes no sense.
    Last edited by rpgnerd; May 29th 2007 at 04:08 AM.
    Follow Math Help Forum on Facebook and Google+

  4. #4
    Senior Member
    Joined
    Apr 2006
    Posts
    399
    Awards
    1
    Quote Originally Posted by rpgnerd View Post
    Thanks for the reply! but I'm not exactly sure if it does.

    50 + (100 - 0) /2 = 75 (should be 100%)

    50 + (0 - 100) /2 = -25 (should be 0%)

    50 + (50-50) /2 = 25 (should be 50%)
    50 + (21-21) /2 = 25 (should be 50%)
    50 + (64-64) /2 = 25 (should be 50%)

    Now, it looks like I could just add +25 to each result ...

    50 + (73-29) /2 = 47 + 25 = 72% chance?

    ... and in the reverse situation when Parry is greater ...

    50 + (29-73) /2 = 3 + 25 = 28% chance?

    That could be correct but I'm not sure how to verify it.
    And why am I adding +25 to your formula? Does that really "fix" it?
    Is there a better way?


    EDIT: 100 + (Weapon - Parry) /2 ?
    EDIT AGAIN: No, that can't be right either. Or else 75 vs 0 ends up with 87.5% which makes no sense.
    In

    50 + (Weapon-Parry)/2

    the parentheses mean (Weapon - Parry) is divided by 2, not the 50.

    50 + (100 - 0)/2 = 50 + 50 = 100

    50 + (0 - 100)/2 = 50 - 50 = 0

    50 + (50 - 50)/2 = 50 - 0 = 50
    50 + (21 - 21)/2 = 50 - 0 = 50
    50 + (64 - 64)/2 = 50 - 0 = 50
    Follow Math Help Forum on Facebook and Google+

  5. #5
    Newbie
    Joined
    May 2007
    Posts
    3
    Ahh, I see it now!
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Probability help request
    Posted in the Statistics Forum
    Replies: 3
    Last Post: January 5th 2011, 12:57 PM
  2. request help with proof
    Posted in the Algebra Forum
    Replies: 2
    Last Post: August 30th 2010, 08:10 PM
  3. book request
    Posted in the Math Topics Forum
    Replies: 3
    Last Post: August 29th 2010, 12:47 PM
  4. help request
    Posted in the Differential Equations Forum
    Replies: 0
    Last Post: April 21st 2010, 04:11 AM

Search Tags


/mathhelpforum @mathhelpforum