Difference between revisions of "Exercise"

From NetHackWiki
Jump to navigation Jump to search
m (Grammar check)
m (typo: "Engage it melee combat" -> "Engage in melee combat")
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
: ''"Abuse" redirects here. For pet abuse, see [[Tameness#Abuse|Tameness § Abuse]].''
 
: ''"Abuse" redirects here. For pet abuse, see [[Tameness#Abuse|Tameness § Abuse]].''
  
'''Exercise''' refers to slowly increasing your [[attribute]]s over time by doing certain helpful things and avoiding doing certain other things.
+
In ''[[NetHack]]'', '''exercise''' refers to gradually increasing your [[attribute]]s over time by repeating certain actions while avoiding performing others.
  
Of the six attributes ([[strength]], [[dexterity]], [[constitution]], [[intelligence]], [[wisdom]], and [[charisma]]), you can only exercise four; there is no way to exercise intelligence or charisma. (Charisma can be increased by stepping into a [[magic trap]], and intelligence by eating a [[mind flayer]] corpse or quaffing a blessed [[potion of enlightenment]]. All attributes can be raised by quaffing a [[potion of gain ability]] (best if blessed) or drinking from a magic [[fountain]] (best if your [[Luck]] is greater than 3)).
+
==Description==
 +
Exercising an attribute has a chance of (18 − current attribute value) in 19 of incrementing the attribute's ''exercise counter'', whose maximum value is 50.{{refsrc|src/attrib.c|426|nethack=3.6.6}}{{refsrc|src/attrib.c|410|nethack=3.6.6}} The "current attribute value" also includes modifiers from items - one relevant example is that wearing [[gauntlets of power]] has a side-effect of completely preventing strength from being exercised.
  
Here are examples of how to exercise strength, dexterity, constitution, and wisdom:
+
You can only exercise four of the six attributes: [[strength]], [[dexterity]], [[constitution]], and [[wisdom]] - there is no way to exercise [[intelligence]] or [[charisma]], though they can be increased by other means, e.g. a [[potion of gain ability]].
* Push [[boulder]]s around for '''[[strength]]'''.
+
 
* Wield a bladed [[weapon]] and #[[force]] open locked [[chest]]s for '''[[dexterity]]'''.
+
===How to exercise===
 +
Here are examples of how to efficiently exercise strength, dexterity, constitution, and wisdom:
 +
* Engage in melee combat or push [[boulder]]s around for '''[[strength]]'''.
 +
* Hit monsters in melee or with [[projectile]]s, or use an [[unlocking tool]] to lock or unlock doors or containers for '''[[dexterity]]'''.
 
* [[Eat]] and avoid becoming [[hungry]] or [[satiated]] for '''[[constitution]]'''.
 
* [[Eat]] and avoid becoming [[hungry]] or [[satiated]] for '''[[constitution]]'''.
* [[Engrave]] [[Elbereth]] with uppercase "E" and lowercase "lbereth" for '''[[wisdom]]'''.
+
* Cast [[spell]]s, [[search]] for hidden things, or [[engrave]] [[Elbereth]] with uppercase "E" and lowercase "lbereth" for '''[[wisdom]]'''.
 
 
For a more complete list of exercise methods, see the [[attribute]] page.
 
 
 
Exercise does not cause immediate gains in your attributes. Instead, exercising an attribute has a chance of (18 − current attribute value) in 19 of incrementing the attribute's ''exercise counter'', whose maximum value is 50.{{reffunc|attrib.c|exercise}} The "current attribute value" also includes modifiers from items; thus, in particular, wearing [[gauntlets of power]] has a side-effect of completely preventing strength from being exercised.
 
  
''NetHack'' does ''exercise checks'' at certain times. Upon a check, each counter is examined. If the corresponding attribute is already 18 or greater, nothing is done. Otherwise a random number between 0 and 49 inclusive is chosen. If it is greater than <math>|(2/3)*counter|</math> for a non-wisdom attribute or <math>|counter|</math> for wisdom, nothing is done. Otherwise, the attribute is changed by adding 1 if the counter was positive and subtracting 1 if it was negative, and the counter is set to zero. Afterwards, no matter what happened, the counter is halved, rounding toward 0.{{reffunc|attrib.c|exerchk}} <ref>http://web.archive.org/web/20071109210037/http://www.geocities.com/dcorbett42/nethack/exercise.htm</ref>
+
For more complete lists of exercise methods, see the relevant attribute pages.
  
The first check happens on turn 600. Subsequent checks occur at random intervals from 200 (inclusive) to 800 (exclusive) turns{{reffunc|attrib.c|exerchk}} from the last one.  
+
===Attribute checks===
 +
''NetHack'' does exercise checks at certain times: The first check happens on turn 600, and subsequent checks occur at random intervals of {{rn1|200|800}} turns from the last one.{{refsrc|src/allmain.c|590|nethack=3.6.6}}{{refsrc|src/attrib.c|608|nethack=3.6.6}} Upon a check, each counter is examined. If the corresponding attribute is already 18 or greater, nothing is done. Otherwise a random number between 0 and 49 inclusive is chosen. If it is greater than <math>|(2/3)*counter|</math> for a non-wisdom attribute or <math>|counter|</math> for wisdom, nothing is done. Otherwise, the attribute is changed by adding 1 if the counter was positive and subtracting 1 if it was negative, and the counter is set to zero. Afterwards, no matter what happened, the counter is halved, rounding toward 0.{{refsrc|src/attrib.c|526|nethack=3.6.6}}
  
 
==Abuse==
 
==Abuse==
 +
Abuse is the opposite of exercise - acts of abuse can undo exercise, or even cause your [[strength]], [[dexterity]], [[constitution]], or [[wisdom]] to drop.
  
Abuse is the opposite of exercise. Acts of abuse can undo exercise, or even cause your strength, dexterity, constitution, or wisdom to drop. For a comprehensive list of abuse methods, see the [[attributes]] page. If your stats get lowered, use a [[unicorn horn]] to heal any such loss. In [[UnNetHack]] and [[SporkHack]], this won't work – use a [[potion of restore ability|potion]] or [[spellbook of restore ability|spell]] of restore ability, instead.  
+
Each act of abuse has an exactly 50% chance of reducing the attribute's exercise counter by 1.{{refsrc|src/attrib.c|426|nethack=3.6.6}} For a comprehensive list of abuse methods, see the relevant attribute pages. If your stats get lowered, use a [[unicorn horn]], [[potion of restore ability|potion]] or [[spellbook of restore ability|spell]] of restore ability to heal any such loss.  
  
Each act of abuse has an exactly 50% chance of reducing the attribute's exercise counter by 1.<ref>http://web.archive.org/web/20071109210037/http://www.geocities.com/dcorbett42/nethack/exercise.htm</ref>
+
{{upcoming|NetHack 3.7.0|Unicorn horns can no longer restore reduced attributes. Alternatives include [[Potion of restore ability|potions of restore ability]], the [[Spellbook of restore ability|restore ability spell]], [[prayer]], or finding a way to exercise or increase that attribute again.}}
  
{{upcoming|NetHack 3.7.0|Unicorn horns can no longer restore reduced attributes. Alternatives include [[Potion of restore ability|potions of restore ability]], the [[Spellbook of restore ability|restore ability spell]], [[prayer]], or finding a way to exercise or increase that attribute again.}}
+
==History==
 +
In [[NetHack 3.4.3]], upon loading a saved game, if the first check has happened, the next check was set to happen from 800 (inclusive) to 850 (exclusive) turns afterwards. This meant that saving and reloading the game could have an in-game effect on the player's attributes. As of [[NetHack 3.6.0]], this timer is saved to disk; the effect may persist in some variants based on previous versions.
  
== Variants ==
+
==Variants==
 +
===UnNetHack===
 +
[[UnNetHack]] removes the unicorn horn's ability to restore lost stats.
  
Before [[NetHack 3.6.0]], upon loading a saved game, if the first check has happened, the next check was set to happen from 800 (inclusive) to 850 (exclusive) turns afterwards. Thus, surprisingly, saving and reloading the game could have an in-game effect on the player's attributes. This may persist in some variants, but was changed in [[Slash'EM Extended]] and [[NetHack 3.6.0]] to have the timer be saved to disk.
+
===SporkHack===
 +
[[SporkHack]] also removes the ability of unicorn horns to restore lost stats.  
  
 
==External links==
 
==External links==
 
 
* [http://web.archive.org/web/20071109210037/http://www.geocities.com/dcorbett42/nethack/exercise.htm Exercising stats]
 
* [http://web.archive.org/web/20071109210037/http://www.geocities.com/dcorbett42/nethack/exercise.htm Exercising stats]
  
 
==References==
 
==References==
 
<references/>
 
<references/>
 +
{{nethack-366}}
 
[[Category:Strategy]]
 
[[Category:Strategy]]
{{nethack-361}}
 

Latest revision as of 12:06, 28 August 2023

"Abuse" redirects here. For pet abuse, see Tameness § Abuse.

In NetHack, exercise refers to gradually increasing your attributes over time by repeating certain actions while avoiding performing others.

Description

Exercising an attribute has a chance of (18 − current attribute value) in 19 of incrementing the attribute's exercise counter, whose maximum value is 50.[1][2] The "current attribute value" also includes modifiers from items - one relevant example is that wearing gauntlets of power has a side-effect of completely preventing strength from being exercised.

You can only exercise four of the six attributes: strength, dexterity, constitution, and wisdom - there is no way to exercise intelligence or charisma, though they can be increased by other means, e.g. a potion of gain ability.

How to exercise

Here are examples of how to efficiently exercise strength, dexterity, constitution, and wisdom:

For more complete lists of exercise methods, see the relevant attribute pages.

Attribute checks

NetHack does exercise checks at certain times: The first check happens on turn 600, and subsequent checks occur at random intervals of 800–999 turns from the last one.[3][4] Upon a check, each counter is examined. If the corresponding attribute is already 18 or greater, nothing is done. Otherwise a random number between 0 and 49 inclusive is chosen. If it is greater than |(2/3)*counter| for a non-wisdom attribute or |counter| for wisdom, nothing is done. Otherwise, the attribute is changed by adding 1 if the counter was positive and subtracting 1 if it was negative, and the counter is set to zero. Afterwards, no matter what happened, the counter is halved, rounding toward 0.[5]

Abuse

Abuse is the opposite of exercise - acts of abuse can undo exercise, or even cause your strength, dexterity, constitution, or wisdom to drop.

Each act of abuse has an exactly 50% chance of reducing the attribute's exercise counter by 1.[6] For a comprehensive list of abuse methods, see the relevant attribute pages. If your stats get lowered, use a unicorn horn, potion or spell of restore ability to heal any such loss.

The following information pertains to an upcoming version (NetHack 3.7.0). If this version is now released, please verify that it is still accurate, then update the page to incorporate this information.

Unicorn horns can no longer restore reduced attributes. Alternatives include potions of restore ability, the restore ability spell, prayer, or finding a way to exercise or increase that attribute again.

History

In NetHack 3.4.3, upon loading a saved game, if the first check has happened, the next check was set to happen from 800 (inclusive) to 850 (exclusive) turns afterwards. This meant that saving and reloading the game could have an in-game effect on the player's attributes. As of NetHack 3.6.0, this timer is saved to disk; the effect may persist in some variants based on previous versions.

Variants

UnNetHack

UnNetHack removes the unicorn horn's ability to restore lost stats.

SporkHack

SporkHack also removes the ability of unicorn horns to restore lost stats.

External links

References