Difference between revisions of "Attribute"

From NetHackWiki
Jump to navigation Jump to search
(Dexterity)
(Constitution)
Line 13: Line 13:
  
 
==Constitution==
 
==Constitution==
 +
{{main|Constitution}}
 
Having a high '''constitution''' increases your healing rate and the number of [[HP]] you gain when levelling up and allows you to carry more [[weight]] in your [[inventory]].
 
Having a high '''constitution''' increases your healing rate and the number of [[HP]] you gain when levelling up and allows you to carry more [[weight]] in your [[inventory]].
 
Constitution is exercised by keeping from being hungry and is increased when you sleep with a [[foocubus]] and "feel good enough to do it again."
 
 
{| class="prettytable striped"
 
!| constitution
 
!| HP/level bonus
 
|-
 
|| 3 || −2
 
|-
 
|| 4–6 || −1
 
|-
 
|| 7–14 || 0
 
|-
 
|| 15–16 || +1
 
|-
 
|| 17 || +2
 
|-
 
|| 18 || +3
 
|-
 
|| >18 || +4
 
|}
 
Reference: {{sourcecode|attrib.c|649}}.
 
 
Above level 9, higher constitution can also help you regenerate more HP every 3 turns. Specifically, having 13 or more constitution regenerates a random amount of HP from 1 to your current constitution which is then capped by level − 9, so to gain more than 1 HP on these turns you must be at least level 11.{{refsrc|allmain.c|171}}
 
 
Constitution is one of the easier stats to exercise; the easiest way is simply to have a hunger status of "Not Hungry". In [[NetHack 3.6.1|3.6.1]] wielding the [[Ogresmasher]] sets constitution to 25.
 
 
===Messages===
 
When you gain a point in constitution by exercising, it will say:
 
You feel tough! You must be leading a healthy life-style.{{refsrc|attrib.c|435}}
 
When you lose a point in constitution through abuse, it will say:
 
You feel fragile! You haven't been watching your health.{{refsrc|attrib.c|436}}
 
 
===Exercising and abusing constitution===
 
Constitution is exercised by the following:
 
* Having a hunger status of "Not hungry" on a turn whose number is a multiple of 10{{refsrc|attrib.c|324}}
 
* Being healed by a [[nurse]] (one in three chance){{refsrc|mhitu.c|1406}}
 
* Consorting with a [[foocubus]] and getting the "You feel raised to your full potential"{{refsrc|mhitu.c|2327}} or "You feel good enough to do it again"{{refsrc|mhitu.c|2332}} message
 
* Drinking [[holy water]], as a non-chaotic hero, unless polymorphed into an undead or demon{{refsrc|potion.c|481}}
 
* Drinking [[unholy water]], as a chaotic hero, or polymorphed into an undead or demon{{refsrc|potion.c|474}}
 
* Drinking or breathing the vapors{{refsrc|potion.c|1224}} of a potion of [[Potion of healing|healing]],{{refsrc|potion.c|791}} [[Potion of extra healing|extra healing]]{{refsrc|potion.c|799}} or [[Potion of full healing|full healing]]{{refsrc|potion.c|814}}
 
* Reading a non-cursed [[scroll of enchant armor]] while not wearing armor{{refsrc|read.c|679}}
 
* Digesting a monster (other than a [[green slime]]){{refsrc|uhitm.c|1827}}
 
* Eating a non-cursed [[flint stone]] (but this is impossible in vanilla ''NetHack''){{refsrc|attrib.c|1640}}
 
 
Constitution is abused by the following:
 
* Having a nutrition status of "[[Fainting]]" or "Fainted" on a turn whose number is a multiple of 10{{refsrc|attrib.c|330}}
 
* Being [[overtaxed]] (once every ten turns){{refsrc|attrib.c|342}}
 
* Being [[sickness|sick]], including both fatal illness and food poisoning, and non-fatal [[vomiting]] (once every five turns){{refsrc|attrib.c|356}}
 
* Vomiting (every turn, in addition to the abuse from the previous item){{refsrc|timeout.c|72}}
 
* Being unable to move while encumbered and with low hit points{{refsrc|hack.c|891}}
 
* Passing out from exertion when heavily encumbered{{refsrc|attrib.c|356}}{{refsrc|hack.c|1086}}
 
* Having an object "drop from your grasp" when attempting to throw it while encumbered and with low hit points{{refsrc|dothrow.c|896}}
 
* [[Choking]] from overnutrition (even if you have [[magical breathing]]){{refsrc|eat.c|238}}
 
* Drinking from a [[fountain]] and getting one of the following effects: contaminated water (without poison resistance),{{refsrc|fountain.c|267}} curse items ("this water's no good!"){{refsrc|fountain.c|284}}
 
* Falling onto a [[sink]], if there is a weapon or weapon-tool on the sink{{refsrc|hack.c|474}}
 
* Being hit by a monster attack that causes [[lycanthropy]],{{refsrc|mhitu.c|1262}} or by [[Famine]]'s hunger-inducing attack{{refsrc|mhitu.c|1520}}
 
* Consorting with a [[foocubus]] and getting the "You feel drained of energy"{{refsrc|mhitu.c|2290}} or "You are down in the dumps"{{refsrc|mhitu.c|2295}} message
 
* Being hit by a silver object thrown at you by a monster, while polymorphed into a silver hater{{refsrc|mthrowu.c|76}}
 
* Suffering a [[system shock]] when attempting to polymorph{{refsrc|polyself.c|239}}
 
* Polymorphing{{refsrc|polyself.c|564}}
 
* Becoming deathly sick, or making your sickness worse, or only partly curing your sickness{{refsrc|potion.c|136}}
 
* Drinking [[holy water]], as a chaotic hero, or polymorphed into an undead or demon{{refsrc|potion.c|461}}
 
* Drinking [[unholy water]], as a non-chaotic hero, unless polymorphed into an undead or demon{{refsrc|potion.c|493}}
 
* Drinking a non-blessed [[potion of sickness]], as a non-[[Healer]]{{refsrc|potion.c|688}}
 
* Drinking a [[potion of acid]] (unless acid resistant){{refsrc|potion.c|890}}
 
* Breathing the vapors of a potion of sickness (as a non-Healer),{{refsrc|potion.c|1234}} or a [[potion of polymorph]]{{refsrc|potion.c|1299}}
 
* Being turned back to your natural form, by [[pray]]ing to a non-chaotic god while polymorphed into an undead{{refsrc|potion.c|1611}}
 
* Reading a cursed [[scroll of enchant armor]] while not wearing armor{{refsrc|read.c|679}}
 
* Reading a [[scroll of destroy armor]] while not wearing armor, if you are [[confusion|confused]]{{refsrc|read.c|790}}, or the scroll is non-cursed{{refsrc|read.c|801}}
 
* [[Sit]]ting on a [[throne]] and getting the electric shock effect{{refsrc|sit.c|177}}
 
* Being caught in a poison gas{{refsrc|trap.c|3706}} or poison needle{{refsrc|trap.c|3714}} [[container trap]], or by a booby trapped door or tin{{refsrc|trap.c|3856}}
 
* Being zapped by a [[wand of lightning]], either by yourself{{refsrc|trap.c|1904}} or by a monster{{refsrc|trap.c|3161}}, while not shock resistant
 
  
 
==Intelligence==
 
==Intelligence==

Revision as of 19:08, 26 June 2021

An attribute shows some capability of the player. Alternatively, "attribute" may refer to properties divined through enlightenment or death.

There are six basic attributes, as in Dungeons & Dragons. A player's attributes can be increased by exercising them.

Strength

Main article: Strength

Strength corresponds to the ability to have more weight in your inventory. Also, the stronger you are, the more damage you do in melee combat, and the farther you can throw objects.

Dexterity

Main article: Dexterity

Dexterity has a multitude of effects, of which the most significant is probably that it affects your chance of hitting monsters, whether in melee combat or with a missile or spell.

Constitution

Main article: Constitution

Having a high constitution increases your healing rate and the number of HP you gain when levelling up and allows you to carry more weight in your inventory.

Intelligence

Intelligence is useful for reading spellbooks, for spellcasting (unless you are a Healer, Knight, Monk, Priest or Valkyrie, in which case it is wisdom that affects your chances of successfully casting a spell) and for encounters with foocubi. Mind flayers have a brain-eating attack that can drain your intelligence; if you are hit by a successful brain-eating attack when your base intelligence is already 3, you die of brainlessness.

Intelligence cannot be exercised but can be increased by drinking a blessed potion of enlightenment or a potion of gain ability. It can also be increased by wearing a helm of brilliance. If you eat a mind flayer corpse, there is a 50% chance your intelligence will be increased by one point (you will get the message "For some reason, that tasted bland." if your intelligence is already at maximum.)

UnNetHack adds the ability to exercise intelligence by fighting a weeping angel's mental reflection (requires that the player does not have reflection)[1].

Wisdom

A Healer, Knight, Monk, Priest or Valkyrie requires wisdom to cast spells. Wisdom is not particularly important to other classes, though it affects how fast your power regenerates (hence is fairly important for wizards) and how much power you gain when levelling up.

Wisdom is one of the easiest stats to maximize. Many activities exercise it, including engraving Elbereth and successful searching. It can also be increased by sleeping with a foocubus and getting the "You will always remember the foocubus" message.

Messages

When your wisdom changes through exercise or abuse you will receive the message:

You feel wise! You must have been very observant.

If it goes up, and:

You feel foolish! You haven't been paying attention.

if it goes down.

Exercising and abusing wisdom

Wisdom is exercised by the following:

Wisdom is abused by the following:

Charisma

Charisma is mostly useful for obtaining better prices at shops. It also helps with foocubus encounters, both by increasing the chance of a positive result and by giving more control over whether they remove your armor.

Charisma is a difficult stat to increase, as it cannot be exercised. It can be extrinsically increased by wearing a charged ring of adornment or intrinsically boosted by successfully eating one in a valid polymorphed form. You can also gain charisma by triggering a magic trap, so some players deliberately trigger magic traps until they explode. However, this can be dangerous—many monsters will be summoned, and the towers of flame will reduce your maximum HP unless you have fire resistance. Making sure your potion of gain ability is blessed before quaffing it is probably the easiest and safest way to increase this stat to maximum.

Charisma Price
3–5 ×2
6–7 ×1.5
8–10 ×1.33
11–15 ×1
16–17 ×0.75
18 ×0.67
19–25 ×0.5

Reference: shk.c, line 1910.

Starting attributes

The player's starting attributes depend on the class as follows:[102]

Class Strength Intelligence Wisdom Dexterity Constitution Charisma Remaining
Archeologist 7\20% 10\20% 10\20% 7\10% 7\20% 7\10% 27
Barbarian 16\30% 7\6% 7\7% 15\20% 16\30% 6\7% 8
Caveman 10\30% 7\6% 7\7% 7\20% 8\30% 6\7% 30
Healer 7\15% 7\20% 13\20% 7\15% 11\25% 16\5% 14
Knight 13\30% 7\15% 14\15% 8\10% 10\20% 17\10% 6
Monk 10\25% 7\10% 8\20% 8\20% 7\15% 7\10% 28
Priest 7\15% 7\10% 10\30% 7\15% 7\20% 7\10% 30
Ranger 13\30% 13\10% 13\10% 9\20% 13\20% 7\10% 7
Rogue 7\20% 7\10% 7\10% 10\30% 7\20% 6\10% 31
Samurai 10\30% 8\10% 7\8% 10\30% 17\14% 6\8% 17
Tourist 7\15% 10\10% 6\10% 7\15% 7\30% 10\20% 28
Valkyrie 10\30% 7\6% 7\7% 7\20% 10\30% 7\7% 27
Wizard 7\10% 10\30% 7\10% 7\20% 7\20% 7\10% 30

First, points are distributed so that the player receives, as a minimum, the number indicated before the backslash. This is always out of a pool of 75 points, and the Remaining column contains the amount of leftover points from this step.

Next, the remaining points are distributed randomly according to the percentage after the backslash. If an attribute is chosen that would raise it above the player's racial maximum, it will try 99 more times to choose a different attribute to raise. If it fails to pick an attribute on all 100 attempts, it will abort this step and any remaining points will be lost.[103]

Third, each attribute has a 5% probability of having a random number from −2 to +4 added to it [104]. These respect racial maximums.

Finally, strength will, if necessary, be increased until the player is unencumbered by their starting inventory. If this is not enough, constitution will be increased similarly.

Maximum attributes

You can increase strength, dexterity, constitution and wisdom through exercise, and adjust all six stats through other means such as potions of gain ability. Some magic items, like the helm of brilliance, gauntlets of power and gauntlets of dexterity, allow you to exceed these maximums. In fact, such items are common in ascension kits.

The maximum stats for each race are:[105]

Race Strength Dexterity Constitution Intelligence Wisdom Charisma
Human 18/** 18 18 18 18 18
Elf 18 18 16 20 20 18
Dwarf 18/** 20 20 16 16 16
Gnome 18/50 18 18 19 18 18
Orc 18/50 18 18 16 16 16

Variants

NetHack brass

NetHack brass implements different maximum attributes per role. Find your maximum attributes by looking for your role in the next table, then applying the racial modifiers.For example, humans have +2 to strength. All heroes have a minimum of 3 for each attribute. The entries with the exclamation marks are the spellcasting stats for each role.

Role Strength Dexterity Constitution Intelligence Wisdom Charisma
Archeologist 16 10 17 19! 18 19
Barbarian 18/** 18 20 12! 16 10
Caveman 18/** 18 20 14! 16 15
Healer 12 19 19 19 19! 18
Knight 18/50 13 18 17 19! 19
Monk 10 20 20 18 20! 18
Priest 18 15 18 17 20! 18
Ranger 17 21 13 19! 16 19
Rogue 18 20 17 17! 17 16
Samurai 18/50 20 19 15! 15 15
Tourist 17 15 18 19! 19 19
Valkyrie 18/** 16 20 12 17! 16
Wizard 10 19 16 20! 20 18

Reference: src/role.c in NetHack brass 040923.

Racial modifiers

To find your maximum attributes in NetHack brass, after finding your role in the above table, you must apply the racial modifiers of the below table. These racial modifiers apply only to the maximum attributes of each player, not the initial attributes.

An elven Ranger of NetHack brass, for example, can reach 19+1 = 20 in charisma by increasing charisma one more time after a human Ranger would have maxed at 19.

For strength modifiers only, a +1 raises 18 to 18/50, while a +2 raises 18 to 18/** or 17 to 18/50.

Race Strength Dexterity Constitution Intelligence Wisdom Charisma
Human +2 0 0 0 0 0
Elf 0 0 −2 +2 +2 +1
Dwarf +2 +2 +2 −2 −2 −2
Gnome +1 0 0 +1 0 0
Orc +2 0 0 −2 −2 −3

Wizard mode

The wizard mode of NetHack brass supplies the #rrllududab extended command, a code that gives your maximum attributes to you, a reference to the Konami code.

SLASH'EM

Strength

SLASH'EM, mainly due to the changed behaviour of the gauntlets of power, handles strength between 18/** and 25 differently than vanilla NetHack.

strength to-hit damage
3–5 −2 −1
6–7 −1 0
8–15 0 0
16 0 +1
17 +1 +1
18 +1 +2
18/01–18/99 +1 +3
18/** +2 +4
19 +2 +5
20 +3 +6
21 +3 +7
22 +4 +8
23 +4 +9
24 +5 +10
25 +5 +11

Reference: weapon.c in SLASH'EM 0.0.7E7F2, line 900.

Dexterity

Dexterity now has an impact on AC, and higher Dexterity provides bonuses to AC.

dexterity AC
3< +3
4–5 +2
6–7 +1
8–14 0
15 −1
16 −2
17 −3
18 −4
19 −5
20–21 −6
22–23 −7
>23 −8

FIQHack

In FIQHack, strength over 18 is no longer considered a special attribute, and "exceptional strength" of 18/XX does not exist - their numeric equivalents are used instead, as follows:

See also

References

  1. https://sourceforge.net/p/unnethack/git/ci/master/tree/src/mhitu.c#l2206
  2. spell.c in NetHack 3.4.3, line 336
  3. spell.c in NetHack 3.4.3, line 355
  4. spell.c in NetHack 3.4.3, line 808
  5. priest.c in NetHack 3.4.3, line 472
  6. priest.c in NetHack 3.4.3, line 493
  7. attrib.c in NetHack 3.4.3, line 327
  8. attrib.c in NetHack 3.4.3, line 353
  9. zap.c in NetHack 3.4.3, line 1862
  10. spell.c in NetHack 3.4.3, line 859
  11. spell.c in NetHack 3.4.3, line 869
  12. zap.c in NetHack 3.4.3, line 2454
  13. zap.c in NetHack 3.4.3, line 1802
  14. polyself.c in NetHack 3.4.3, line 340
  15. polyself.c in NetHack 3.4.3, line 565
  16. polyself.c in NetHack 3.4.3, line 918
  17. quest.c in NetHack 3.4.3, line 90
  18. quest.c in NetHack 3.4.3, line 249
  19. quest.c in NetHack 3.4.3, line 261
  20. quest.c in NetHack 3.4.3, line 266
  21. trap.c in NetHack 3.4.3, line 3504
  22. trap.c in NetHack 3.4.3, line 3570
  23. potion.c in NetHack 3.4.3, line 480
  24. potion.c in NetHack 3.4.3, line 529
  25. fountain.c in NetHack 3.4.3, line 243
  26. potion.c in NetHack 3.4.3, line 647
  27. potion.c in NetHack 3.4.3, line 653
  28. detect.c in NetHack 3.4.3, line 282
  29. detect.c in NetHack 3.4.3, line 384
  30. detect.c in NetHack 3.4.3, line 951
  31. potion.c in NetHack 3.4.3, line 858
  32. potion.c in NetHack 3.4.3, line 878
  33. potion.c in NetHack 3.4.3, line 1824
  34. potion.c in NetHack 3.4.3, line 1855
  35. rumors.c in NetHack 3.4.3, line 129
  36. rumors.c in NetHack 3.4.3, line 170
  37. rumors.c in NetHack 3.4.3, line 373
  38. dokick.c in NetHack 3.4.3, line 918
  39. dokick.c in NetHack 3.4.3, line 988
  40. fountain.c in NetHack 3.4.3, line 561
  41. write.c in NetHack 3.4.3, line 179
  42. o_init.c in NetHack 3.4.3, line 319
  43. shk.c in NetHack 3.4.3, line 3919
  44. read.c in NetHack 3.4.3, line 655
  45. mhitu.c in NetHack 3.4.3, line 2342
  46. pray.c in NetHack 3.4.3, line 1116
  47. pray.c in NetHack 3.4.3, line 1170
  48. pray.c in NetHack 3.4.3, line 1383
  49. pray.c in NetHack 3.4.3, line 1481
  50. fountain.c in NetHack 3.4.3, line 384
  51. pray.c in NetHack 3.4.3, line 1690
  52. uhitm.c in NetHack 3.4.3, line 1180
  53. uhitm.c in NetHack 3.4.3, line 1560
  54. fountain.c in NetHack 3.4.3, line 145
  55. fountain.c in NetHack 3.4.3, line 487
  56. fountain.c in NetHack 3.4.3, line 225
  57. fountain.c in NetHack 3.4.3, line 305
  58. fountain.c in NetHack 3.4.3, line 311
  59. teleport.c in NetHack 3.4.3, line 536
  60. engrave.c in NetHack 3.4.3, line 373
  61. music.c in NetHack 3.4.3, line 541
  62. detect.c in NetHack 3.4.3, line 1136
  63. detect.c in NetHack 3.4.3, line 1232
  64. detect.c in NetHack 3.4.3, line 1193
  65. detect.c in NetHack 3.4.3, line 1203
  66. detect.c in NetHack 3.4.3, line 1211
  67. eat.c in NetHack 3.4.3, line 1635
  68. end.c in NetHack 3.4.3, line 373
  69. spell.c in NetHack 3.4.3, line 989
  70. spell.c in NetHack 3.4.3, line 1017
  71. priest.c in NetHack 3.4.3, line 661
  72. attrib.c in NetHack 3.4.3, line 322
  73. attrib.c in NetHack 3.4.3, line 357
  74. steed.c in NetHack 3.4.3, line 93
  75. sit.c in NetHack 3.4.3, line 75
  76. trap.c in NetHack 3.4.3, line 3066
  77. potion.c in NetHack 3.4.3, line 508
  78. potion.c in NetHack 3.4.3, line 519
  79. potion.c in NetHack 3.4.3, line 878
  80. potion.c in NetHack 3.4.3, line 1824
  81. potion.c in NetHack 3.4.3, line 1838
  82. rumors.c in NetHack 3.4.3, line 373
  83. write.c in NetHack 3.4.3, line 105
  84. read.c in NetHack 3.4.3, line 1119
  85. mhitu.c in NetHack 3.4.3, line 1114
  86. mhitu.c in NetHack 3.4.3, line 2300
  87. artifact.c in NetHack 3.4.3, line 545
  88. pray.c in NetHack 3.4.3, line 1173
  89. pray.c in NetHack 3.4.3, line 1407
  90. pray.c in NetHack 3.4.3, line 1680
  91. uhitm.c in NetHack 3.4.3, line 799
  92. fountain.c in NetHack 3.4.3, line 373
  93. fountain.c in NetHack 3.4.3, line 450
  94. fountain.c in NetHack 3.4.3, line 469
  95. dig.c in NetHack 3.4.3, line 770
  96. engrave.c in NetHack 3.4.3, line 541
  97. pickup.c in NetHack 3.4.3, line 1324
  98. music.c in NetHack 3.4.3, line 424
  99. music.c in NetHack 3.4.3, line 429
  100. music.c in NetHack 3.4.3, line 462
  101. rumors.c in NetHack 3.4.3, line 129
  102. http://www.steelypips.org/nethack/343/stat-343.html
  103. attrib.c in NetHack 3.6.0, line 565
  104. u_init.c in NetHack 3.6.0, line 884
  105. role.c in NetHack 3.4.3, line 405

See also

  • Drain for gain, which involves manipulating your attributes, and discusses how to do so.


This page may need to be updated for the current version of NetHack.

It may contain text specific to NetHack 3.4.3. Information on this page may be out of date.

Editors: After reviewing this page and making necessary edits, please change the {{nethack-343}} tag to the current version's tag or {{noversion}} as appropriate.