Difference between revisions of "Exercise"

From NetHackWiki
Jump to navigation Jump to search
Line 1: Line 1:
 
'''Exercise''' refers to slowly increasing your [[attribute]]s over time by doing certain helpful things and avoiding certain other things.
 
'''Exercise''' refers to slowly increasing your [[attribute]]s over time by doing certain helpful things and avoiding certain other things.
  
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. However, 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).
+
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)).
  
 
Here are examples of how to exercise strength, dexterity, constitution, and wisdom:
 
Here are examples of how to exercise strength, dexterity, constitution, and wisdom:
Line 11: Line 11:
 
For a more complete list of exercise methods, see the [[attribute]] page.
 
For a more complete list of exercise methods, see the [[attribute]] page.
  
You should already be exercising during normal gameplay. However, exercise does not cause immediate gains in your attributes. Instead, exercise has a (18 - current respective attribute value) in 19 chance of incrementing the respective counter, but the counter is capped at 50.{{reffunc|attrib.c|exercise}} NetHack does checks at certain times. During a check, each attribute that is less than 18 has a (counter+1) in (current respective attribute value) of being increased, except for Wisdom, where the chance is (two thirds of counter (rounded down) +1) in (current respective attribute value), then the counter of each increased attribute is set to zero and the counters of all attributes are halved.{{reffunc|attrib.c|exerchk}} The first check happens on turn 600. Subsequent checks occur at random intervals from 800 (inclusive) to 1000 (exclusive) turns{{refsrc|attrib.c|441}} from the last one. On a game restore, if the first check has happened, the next check is set to happen from 800 (inclusive) to 850 (exclusive) turns afterwards.{{reffunc|attrib.c|reset_attribute_clock}}
+
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}}  
 +
 
 +
NetHack does ''exercise checks'' at certain times. Upon a check, each counter is examined. First the counter is halved, rounding to the nearest whole number. 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. {{reffunc|attrib.c|exerchk}} <ref>http://web.archive.org/web/20071109210037/http://www.geocities.com/dcorbett42/nethack/exercise.htm </ref>
 +
 
 +
Thus the chance that your attribute will be increased when a check happens and its counter is greater than 0 is <math>((1+1/3)*counter)%</math> for attributes other than wisdom, and <math>(2*counter)%</math> for wisdom.
 +
 
 +
The first check happens on turn 600. Subsequent checks occur at random intervals from 800 (inclusive) to 1000 (exclusive) turns{{refsrc|attrib.c|441}} from the last one. Upon loading a saved game, if the first check has happened, the next check is set to happen from 800 (inclusive) to 850 (exclusive) turns afterwards.{{reffunc|attrib.c|reset_attribute_clock}} Thus, surprisingly, saving and reloading the game can have an in-game effect on the player's attributes. It's not clear whether this can be usefully exploited.
  
 
==Abuse==
 
==Abuse==
 
{{For|abuse of pets|Tameness#Abuse}}
 
{{For|abuse of pets|Tameness#Abuse}}
  
Abuse is the opposite of exercise. Acts of abuse can undo exercise, or even cause your strength, dexterity, constitution or wisdom to drop. 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.
+
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. <ref>http://web.archive.org/web/20071109210037/http://www.geocities.com/dcorbett42/nethack/exercise.htm </ref>
  
 
==External links==
 
==External links==

Revision as of 21:22, 22 October 2013

Exercise refers to slowly increasing your attributes over time by doing certain helpful things and avoiding certain other things.

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)).

Here are examples of how to exercise strength, dexterity, constitution, and 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.[1]

NetHack does exercise checks at certain times. Upon a check, each counter is examined. First the counter is halved, rounding to the nearest whole number. 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. [2] [3]

Thus the chance that your attribute will be increased when a check happens and its counter is greater than 0 is ((1+1/3)*counter)% for attributes other than wisdom, and (2*counter)% for wisdom.

The first check happens on turn 600. Subsequent checks occur at random intervals from 800 (inclusive) to 1000 (exclusive) turns[4] from the last one. Upon loading a saved game, if the first check has happened, the next check is set to happen from 800 (inclusive) to 850 (exclusive) turns afterwards.[5] Thus, surprisingly, saving and reloading the game can have an in-game effect on the player's attributes. It's not clear whether this can be usefully exploited.

Abuse

For abuse of pets, see Tameness#Abuse.

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 or spell of restore ability, instead.

Each act of abuse has an exactly 50% chance of reducing the attribute's exercise counter by 1. [6]

External links

References