1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Greetings Guest!!

    In order to combat SPAM on the forums, all users are required to have a minimum of 2 posts before they can submit links in any post or thread.

    Dismiss Notice

[News] Five On Friday ( Archery Accuracy/ Hit Chance/ Ore/ Enhancing/ Perfection)

Discussion in 'UO Origin' started by Guest, Feb 29, 2008.

  1. Guest

    Guest Guest

    [​IMG] <FONT size=5>FoF: Fiddly Bits

    </FONT>Join us this week as we dig into accuracy calculations, enhancing, perfection, and more! And don't forget - the Jacksonville Town Hall is tomorrow!

    February 29, 2008

    "Why do I seem to miss so often when using Archery?"

    I've seen several variations on this question, so Leurocian scoured the accuracy code for me, and we did not find anything that would specifically affect Archery accuracy (with one exception, covered below.) Accuracy in general is a fairly complex topic with many variables, so it's a tricky thing to test at the best of times. Here's an explanation of the different factors - if anyone sees any results that aren't consistent with this, please let us know!

    Attacker's stats: Weapon skill and Hit Chance Increase are the stats the formula uses on the attacker's side. HCI is increased by HCI items and decreased by the defender's Hit Lower Attack, if any.

    Defender's stats: Weapon skill and Defense Chance Increase are the stats the formula uses on the defender's side. DCI is increased by DCI items and decreased by the attacker's Hit Lower Defense, if any. (Exception below.)

    Barehanded defense: If the defender is not using a weapon, "weapon skill" will be EITHER Wrestling skill OR (Anatomy + Evaluating Intelligence + 20) / 2; whichever is greater (which means that if you have none of these skills and are barehanded, you'll have a functional weapon skill of 10.)

    Mage Weapons and Use Best Weapon Skill: UBWS uses whichever weapon skill is highest, and Mage Weapons use Magery (with whatever penalties listed on the weapon) assuming it's higher than the appropriate weapon skill for that weapon.

    The minimum chance to hit is always at least 2%. If both attacker and defender have the same weapon skill and HCI/DCI, the chance to hit is 50%.

    But wait, there's more!

    Attacks can be parried or evaded - those are completely different calculations that happen after the hit chance is calculated. If you're trying to track your accuracy, make sure you're taking parried or evaded attacks into account.

    Archery has one more caveat - if you move, it resets the swing cycle. There's only one place where this might break the swing - between the "swing" and the "hit" calculations - and we couldn't make it break in a few minutes of testing, but it's possible that a move could break the swing and it would look exactly like a miss, when in fact the attack was simply aborted. Archers, hold still!

    The actual formula is conveniently listed in the question below!

    --

    "The formula for Hit Chance on Stratics is: Hit Chance% = ( ( [Attacker's Combat Ability + 20] * [100% + Attacker's Hit Chance Increase] ) divided by ( [Defender's Combat Ability + 20] * [100% + Defender's Defense Chance Increase] * 2 ) ) * 100

    Does HLD lower the defender's combat ability by 25%? Does HLA lower the attacker's combat ability by 25%? Or are both applied to the DCI and HCI portion of the calculation?"


    HLA/HLD are directly applied to the HCI/DCI portion of the equation - when the HLA/HLD effect goes off, it reduces HCI or DCI by 25 (and yes, it can make that value negative.)

    --

    "Is the change of colored ore spawning a straight 100% calculation or is it 50/50 to be colored and then a second roll for the type of ore?"

    Each ore type has a different percentage chance to be chosen, but it is a single random roll.

    --

    "Is there any difference in the success chance between enhancing wooden items or leather and metal?"

    Not necessarily - success chance is actually a function of the intensity of the properties you're changing and the number of properties on the item, not which skill you're using. Of course enhancing armor with gold, which affects six properties (bonuses to four resists, luck, and lower requirements) is, in general, more likely to fail than enhancing a weapon with bloodwood, which only affects two (hit point regeneration and hit life leech,) but if that weapon already has near-max intensity on either of those properties, or has several other properties, it may have a smaller chance of success.

    In short, while determining the actual success chance of enhancing is complicated and depends on several variables, all the crafting skills use the same formula.

    --

    "Why does perfection, step 9, always return the same or less damage than step 8? I have verified this over a run of 200 honors, and step 9 is ALWAYS less than or equal to step 8."

    There are a couple of things happening here - first of all, the size of the damage bonus increase is dependant on your Bushido skill. Second, it's capped at 100%. Third, it's a percentage boost to your damage, so the total damage is dependant on the base damage of your weapon, which is variable.

    With Legendary Bushido, you'll be at a 96% damage bonus at step 8, and you'll hit the cap of 100% bonus at step 9 - with only a 4% increase, the extra damage will likely get lost in rounding even if your base swing is the same (decimals get truncated, so the base damage would have to be at least 25 to see even a 1-point increase.) And weapons have a variable damage per swing - it's a random roll within a range - so it's absolutely possible for your actual damage to drop.

    --

    Playguide Update Roundup:

    No Playguide updates this week, but more are on the way once I'm back in the office next week.

    --

    What's To Come:

    A few more confirmed bug fixes for the next publish: <UL> <LI>Greater dragons are visibly named "Greater dragons" <LI>Fixed a couple of worldbuilding trouble spots (places where folks would get stuck - one in Wrong, one in Magincia.) <LI>Made several fixes that we ain't telling you about until they're live on all shards </LI>[/list]--

    Jacksonville Town Hall

    The Jacksonville Town Hall is tomorrow! Looking forward to seeing all of you there!

    For our mid-Atlantic players, the May Town Hall meeting is also posted - you can get details on the <a target="_blank" href=http://town.uo.com/luncheon.html>Town Hall page</A> and RSVP for that one as well. If you're in the neighborhood, don't miss out!

    --

    Heading out to Jacksonville now - if I don't see you, have a great weekend!

    <BLOCKQUOTE>- Jeremy</BLOCKQUOTE>