Difference between revisions of "Experience points"

From NetHackWiki
Jump to navigation Jump to search
(oracle: precision matters)
(explain how to calculate experience points for killing monsters)
Line 12: Line 12:
 
See the [[oracle]] page for the precise mechanics, in particular, order matters.
 
See the [[oracle]] page for the precise mechanics, in particular, order matters.
  
A blessed potion of gain level gives you enough XP for the next level as well as halfway to the ''next'' level, while an uncursed potion, a [[wraith]] corpse or a "very educational experience" with a [[foocubus]] just gives you enough XP needed to gain the one level.
+
A blessed potion of gain level increases your level by 1, and gives you enough XP to put you part of the way to the ''next'' level, while an uncursed potion, a [[wraith]] corpse or a "very educational experience" with a [[foocubus]] just gives you enough XP needed to gain the one level.
  
 
When you lose a level, your XP is set to 1 less than your current level needs.
 
When you lose a level, your XP is set to 1 less than your current level needs.
 +
 +
==Experience points from killing monsters==
 +
 +
The number of experience points obtained by killing a monster of [[monster level|level]] ML is computed as follows:
 +
 +
*Start with (ML)*(ML+6) + 1;
 +
*Add 3 if the monster's [[speed]] is between 13 and 18, and 5 if the monster's speed is at least 19;
 +
*Add a bonus for low [[armor class]] monsters: +5 for AC 2, +6 for AC 1, +7 for AC 0, and +(14-2*AC) for negative AC;
 +
*Add 1000 for a [[sea monster]] with a [[drowning]] attack, if you don't have [[magical breathing]] and are not [[polymorph|polymorphed]] into an [[amphibiousness|amphibious]] monster;
 +
*Add 7*ML if the monster is [[nasty]];
 +
*Add 50 if ML is at least 9;
 +
*For each attack that the monster has, add a bonus based on attack type: +10 for spellcasting attacks, +5 for weapon attacks, +3 for all other attack types, except for passive, claw, bite, kick and headbutt attacks, which give no bonus;
 +
*For each attack that the monster has, add a bonus based on damage type: +(50-ML) for [[sliming]], [[stoning]] or [[drain life]], and +ML for a damage type that is the same as a [[dragon]]'s breath attack ([[fire]], [[cold]], [[shock]], [[sleep]], [[disintegration]], [[magic missile]]s, [[acid]], or strength-draining [[poison]] — but ''not'' for dexterity- or constitution-draining poison);
 +
*For each attack that the monster has, add a +ML bonus if the attack's maximum damage is at least 24.
 +
 +
The result is the number of points you earn for killing the monster. [[Mail daemon]]s are a special case; they are only worth 1 experience point.
 +
 +
This calculation takes into account all attacks listed in the monster's definition from the source code, including attacks that are not implemented (such as the [[green slime]]'s passive sliming attack).
 +
 
[[Category:Your character]]
 
[[Category:Your character]]

Revision as of 19:36, 7 April 2012

Experience points or XP are units that are used to gain experience levels. They can be shown with the "showexp" option.

Experience points can be gained by:

  • Killing monsters, with stronger monsters awarding more points.
  • Eating tripe, yielding 1 XP (50% chance).
  • The first minor consultation from the Oracle gives 5 XP.
  • The first major consultation gives 55 XP or more, depending on your level.
  • Quaffing from sinks, which can give 1 XP (5% chance).
  • Untrapping squeaky boards, for 1 XP.

See the oracle page for the precise mechanics, in particular, order matters.

A blessed potion of gain level increases your level by 1, and gives you enough XP to put you part of the way to the next level, while an uncursed potion, a wraith corpse or a "very educational experience" with a foocubus just gives you enough XP needed to gain the one level.

When you lose a level, your XP is set to 1 less than your current level needs.

Experience points from killing monsters

The number of experience points obtained by killing a monster of level ML is computed as follows:

  • Start with (ML)*(ML+6) + 1;
  • Add 3 if the monster's speed is between 13 and 18, and 5 if the monster's speed is at least 19;
  • Add a bonus for low armor class monsters: +5 for AC 2, +6 for AC 1, +7 for AC 0, and +(14-2*AC) for negative AC;
  • Add 1000 for a sea monster with a drowning attack, if you don't have magical breathing and are not polymorphed into an amphibious monster;
  • Add 7*ML if the monster is nasty;
  • Add 50 if ML is at least 9;
  • For each attack that the monster has, add a bonus based on attack type: +10 for spellcasting attacks, +5 for weapon attacks, +3 for all other attack types, except for passive, claw, bite, kick and headbutt attacks, which give no bonus;
  • For each attack that the monster has, add a bonus based on damage type: +(50-ML) for sliming, stoning or drain life, and +ML for a damage type that is the same as a dragon's breath attack (fire, cold, shock, sleep, disintegration, magic missiles, acid, or strength-draining poison — but not for dexterity- or constitution-draining poison);
  • For each attack that the monster has, add a +ML bonus if the attack's maximum damage is at least 24.

The result is the number of points you earn for killing the monster. Mail daemons are a special case; they are only worth 1 experience point.

This calculation takes into account all attacks listed in the monster's definition from the source code, including attacks that are not implemented (such as the green slime's passive sliming attack).