|
|
#1 |
|
Apprentice
Join Date: Jan 2011
Posts: 73
![]() |
Combat Determination in 3.2
Not being a developer, I would like to know more about how melee combat is determined in Vanilla 3.2. Is there an easy formula or series of formulas for this?
I mean I know when I am playing D&D, I know my base chances to hit vs. various monsters and what factors affect my success and to what degree, but I don't for Angband |
|
|
|
|
|
#2 | |
|
Prophet
Join Date: Dec 2009
Posts: 4,741
![]() |
Quote:
The combat mechanics are almost gleefully obscure, particularly things like critical hits and monster chance to stun you. I recommend just sticking with the numbers that you get from monster recall (after killing enough of a monster to get its AC) and 'I'nspecting your weapon. |
|
|
|
|
|
|
#3 |
|
Apprentice
Join Date: Jan 2011
Posts: 73
![]() |
That is what I meant. I want to be able to determine base chance to hit against monster X if I know my plusses to hit with a given weapon and their AC.
Does level and or class come into play, or is that already calculated in my Character Description? |
|
|
|
|
|
#4 |
|
Adept
Join Date: Apr 2010
Location: Tashkent, UZ
Age: 25
Posts: 156
![]() |
Combat formulas in Angband are not something you want to calculate with pen and paper, indeed. But let me try to summarize them. I assume version 3.2.0 (I haven't familiarized myself with nightlies yet).
The following applies to player's attacks vs monsters. Monsters do things in a different way. 1) There is always a 5% chance to miss and a 5% chance to hit (like natural 1 and natural 20 in D&D). Auto-hit, however, does not mean a critical hit. 2) Attack roll is 0..(N-1) vs 3*AC/4, where N is determined as follows: N = skill + 3 * to_hit_bonus. N is halved if target is invisible. For ranged attacks, distance in tiles is subtracted. Skill is determined only by character's class, race, and level (think of base attack bonus in D&D). There are separate skills for melee fighting, shooting, and throwing things. In-game character screen gives you only vague descriptions instead of actual numbers. To give you a sense of scale, "Very Bad" is below zero, "Poor" is 24..35, and "Legendary" is 216 or more. To-hit bonus is a sum of character's inherent to-hit bonus and equipment bonuses. Inherent bonus is determined by both STR and DEX, which contribute equally. It is universal for all attacks, melee and ranged. Monster's AC is determined solely by monster's type. Again, to give you a sense of scale, AC of a small kobold is 16 and Morgoth has AC 150. Thick hide of Tarrasque provides it with whopping AC 185. 3) Damage is calculated as follows: weapon's base dice are rolled, the best of available slays or brands multiplier is applied, then weapon to-damage bonus is added, then critical hit modifier is applied, and finally off-weapon to-damage bonus is applied. Note that slays and brands work best with big dice weapons. 4) Your chance to land a critical blow is determined by the weapon weight (bigger is better), total to-hit bonus and character level: critical_chance = (weight + to_hit * 5 + level * 3) in 5000. Weight is in 1/10 lbs. If a critical hit is scored, the second roll is made to determine how *awesome* it was. Only weapon weight affects its results. Here is a little table for melee attacks: Code:
it was a ... hit damage formula min. w. required, lbs max. possible w., lbs good 2 * D + 5 none 40 great 2 * D + 10 none 70 superb 3 * D + 15 5 90 *GREAT* 3 * D + 20 25 130 *SUPERB* 7 * D / 2 + 25 65 none 5) Calculation of blows uses complex tables, but thankfully the game provides you with detailed information about stats required for the next extra blow. Last edited by Ycombinator; March 14, 2011 at 19:16. |
|
|
|
|
|
#5 | ||
|
Apprentice
Join Date: Jan 2011
Posts: 73
![]() |
OK, I understood some, but not all of that last post
Quote:
I understand part of that. I assume a couple of things and please correct me where I am wrong- Combat is either a 1-20 or a percentile system You compare your combat value versus the AC of the monster But what is 0..? Do you divide (N-1) by 3*AC/4? Quote:
Since I am Level 50 and have maxed stats, I assume this will not change, with the exception of new artifacts. Is my to_hit_bonus the number given in Character Info under Melee (+xx,+xx)? If you can see visible, is N still halved? Do slays and brands affect ability to hit those monsters affected by those slays or brands? |
||
|
|
|
|
|
#6 | |
|
Adept
Join Date: Apr 2010
Location: Tashkent, UZ
Age: 25
Posts: 156
![]() |
Uniform distribution of integer values from 0 to N - 1. Like dN - 1. This roll is compared to 3*AC/4.
Quote:
No. I think, "not perceptible by the player" is a better expression. No. |
|
|
|
|
|
|
#7 | |
|
Apprentice
Join Date: Jan 2011
Posts: 73
![]() |
Quote:
OK, I have forgotten most of Calc II. Remind me what "Uniform distribution of integer values" is. When you compare that to "3*AC/4", are you saying if it is greater, then you have achieved a hit? Is the same as "AC * .75"? |
|
|
|
|
|
|
#8 |
|
Sangband 1.x Maintainer
Join Date: Apr 2007
Posts: 516
![]() |
Roll an N sided dice, subtract one. If this number is greater than three-quarters of the monster AC, it is a hit.
__________________
a chunk of Bronze {These look tastier than they are. !E} 3 blank Parchments (Vellum) {No french novels please.} |
|
|
|
|
|
#9 |
|
Apprentice
Join Date: Jan 2011
Posts: 73
![]() |
When you "look" at a weapon, does it follow that calculation to compute avg. points per round of damage? Does the calculation take into account if you have enchanted a weapon beyond how it was found?
|
|
|
|
|
|
#10 |
|
Angband Devteam member
Join Date: Aug 2008
Location: Philadelphia, PA, USA
Age: 32
Posts: 1,494
![]() |
Yes it does.
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| A take on melee combat (long) | Estie | Development | 21 | January 6, 2011 17:39 |
| Combat kinda sucks | Sirridan | Vanilla | 12 | September 14, 2009 02:52 |
| Combat System | Sirridan | Development | 9 | July 14, 2009 07:11 |
| OAnband Combat | Narvius | Variants | 2 | July 2, 2008 12:28 |
| [FA, O?] Combat | Ghen | Variants | 1 | July 16, 2007 19:06 |