Difference between revisions of "Spellbook"

From NetHackWiki
Jump to navigation Jump to search
m (361 template)
m (Safely reading non-blessed spellbooks: potholes, word choice)
 
(49 intermediate revisions by 22 users not shown)
Line 1: Line 1:
 
{{items}}
 
{{items}}
A '''spellbook''' {{white|+}} is a book containing runes describing some [[spell]]. To attempt to memorise the spell, you must read the spellbook. (This obviously breaks the illiterate [[conduct]].)  If the spellbook is [[cursed]], or uncursed and too difficult, you will not learn the spell, but suffer [[Spellbook#Failure effects of spellbook reading|harmful effects]] instead. A blessed spellbook will always be read successfully. A [[pair of lenses]] increases the chance of successfully reading an uncursed spellbook by 10 percentage points, and reduces the amount of time needed to read the book by about one third.
+
A '''spellbook''', {{white|+}}, is a type of book that appears in ''[[NetHack]]'' and contains runes describing a [[spell]]. You learn the spell by [[read]]ing the spellbook with {{kbd|r}} and attempting to memorize it; if you have a blank spellbook and a [[magic marker]], you can also attempt to write your own copy of any known spellbook in the game (see [[Magic_marker#Writing_success_chance]]). Both actions obviously break the [[illiterate]] [[conduct]].
  
In general, you should ''never read a [[cursed spellbook]]'' since it will never teach you a spell and always causes a harmful effect. [[Uncurse]] the spellbook before reading it. There is an exception to every rule, however: one negative effect is teleportation, which is occasionally useful – although that is accompanied by helplessness, which is not.
+
In [[tty]] mode, both brown books and closed doors share the {{brown|+}} symbol.
  
If you have a [[blank spellbook]] and a [[magic marker]], then you can try to write the spellbook of any spell that you know. Dipping a spellbook into water (or a fountain) will blank it. Spellbooks made blank this way will retain their [[BUC]] status.
+
Spellbooks have a [[weight]] of 50 aum, and the base price of a spellbook is 100[[zm]] per level.
  
You will forget spells 20,000 turns after you read the respective spellbook the last time. A spellbook will fade{{refsrc|spell.c|350}} after refreshing the spell from it if it has been read four{{refsrc|spell.c|15}} times, making spellbook-management quite important. Re-reading a spellbook "early", that is you still know the spell and are more than 1,000 turns from forgetting it,{{refsrc|spell.c|351}} has no effect beyond exercising wisdom.
+
==Description==
 +
The odds of you learning a spell from reading the spellbook are dependent on the level of its spell and the book's [[beatitude]]; if the spellbook is [[cursed]], or else uncursed and too difficult, you will not learn the spell, but suffer [[#Failure effects of spellbook reading|harmful effects]] instead. A blessed spellbook will always be read successfully; a [[pair of lenses]] increases the chance of successfully reading an uncursed spellbook by 10 percentage points, and reduces the amount of actions needed to read the book by about one-third.
  
If there are any spellbooks in your initial inventory, you start the game knowing the pertinent spell, as if you had read the book successfully one time. The book is nonetheless brand-new, that is, it is counted as never having been read.{{reffunc|spell.c|initialspell}}
+
Attempting to read a spellbook with the [[randomized appearance]] of a "dull spellbook" may cause you to fall [[asleep]] for a number of turns, based on your [[Wisdom]] and the spellbook's level; [[sleep resistance]] prevents this effect.<!--Specifically, rnd(25) - Wis. If this is greater than 0, you fall asleep for that many turns, plus rnd(spellbook-level*2).-->
  
If you polymorph a spellbook, it will count as read one more time. Perhaps a bug, a polymorphed spellbook will not fade if the spell was not already in your spellcasting menu {{kbd|Z}}, allowing you to read it (once) to learn the spell (which you can then rewrite with a magic marker for future reference). In desperate situations, a [[scroll of amnesia]] can also extract an extra reading of an over-polymorphed book to refresh a spell you have previously learned.
+
Spellbooks cannot be read while [[blind]]. Attempting to read a spellbook while [[confused]] will always fail, and has a {{frac|3}} chance of destroying the spellbook.{{refsrc|src/spell.c|179|version=NetHack 3.6.6}}
  
Reading a spellbook in a shop and in the presence of a [[shopkeeper]] before you pay for it incurs a [[usage fee]] ("This is no free library, cad!")
+
Reading an unpaid-for spellbook in a shop while in the presence of the [[shopkeeper]] incurs a [[usage fee]]. ("This is no free library, cad!")
  
Spellbooks have a weight of 50.
+
After successfully learning a spell from a spellbook, you will retain memory of that spell for 20,000 turns afterward, and the 'read' counter for that spellbook is incremented by one. A spellbook that has been 'read' three times will fade after refreshing the spell from it, making spell and book management quite important.{{refsrc|spell.c|15}}{{refsrc|spell.c|350}} Re-reading a spellbook "early" &ndash; i.e., while you still know the spell and are more than 2,000 turns from forgetting it &ndash; has no effect beyond exercising wisdom.{{refsrc|src/spell.c|389|version=NetHack 3.6.6}} If you [[polymorph]] a spellbook, it will increment the 'read' counter by one.
  
In [[tty]] mode, both brown books and closed doors share the {{brown|+}} symbol. E.g. in bones files, the {{kbd|;}} [[far look]] command can identify the '+' on doorways.
+
Roles that start with spellbooks in their initial inventory will begin the game already knowing the pertinent spell(s); the books themselves are always treated as brand-new.{{reffunc|spell.c|initialspell}}
  
As of Nethack 3.6.0, dull spellbooks are special. Attempting to read one may cause you to fall a[[sleep]] for a number of turns, based on your [[wisdom]] and the spellbook level. "This book is so dull that you can't keep your (eyes) open." This ignores [[sleep resistance]] in 3.6.0, but respects it as of 3.6.1.<!--Specifically, rnd(25) - Wis. If this is greater than 0, you fall asleep for that many turns, plus rnd(spellbook-level*2).-->
+
Dipping a spellbook into water (or a fountain) will blank it; spellbooks made blank this way will retain their beatitude.
  
== Strategy ==
+
{{upcoming|NetHack 3.7.0|You can now [[apply]] a spellbook to flip through the pages and appraise how fresh it is; per [https://github.com/NetHack/NetHack/commit/b55165ed0758d805a13d8943d8b77c55f0adc221 commit b55165e], this was adapted from [[UnNetHack]]. See the [[#Messages|Messages]] section below.}}
Do not attempt to read a spellbook unless you know it isn't cursed (easily determined with a pet or at an [[altar]]). Unless you are a [[wizard]], do not attempt to read a non-blessed spellbook unless you know which level it is (easily determined at the appropriate [[shop]]).
 
  
Blessed spellbooks can always be read successfully, regardless of the spell's level, your level, or your intelligence score.
+
==List of spellbooks==
 +
The following is a list of all spellbooks, listed alphabetically by the school of magic they represent and ordered by difficulty within the schools.
  
Whenever you successfully read a spellbook:
+
[[Directional spell]]s behave just like zapping a [[wand]], with the same [[Wand#Range|range]].
*Type-[[name]] it with the current turn number, so that you will know when you need to rememorize it. You can review the type-names of identified items with the {{kbd|\}} key.
 
*Individual-name it '1', or increment the existing number, so you know how many times you have read it.
 
Occasionally, if you have teleport control, don't need the book, and power is at a premium, you might want to (write and) read cursed spellbooks of detect monsters, light, sleep, knock for their teleport effect since these books will paralyze you only for one turn and are cheap to write.
 
 
 
When studying a forgotten spell, read the book again immediately afterwards to make sure it won't turn blank (and fail to refresh the spell) the next time you need to read it - as noted above, if the spellbook is still viable, nothing bad will happen to it.
 
 
 
== List of spellbooks ==
 
The following is a list of all spellbooks, listed alphabetically by the school of magic they represent and by difficulty inside the schools.
 
 
 
[[Directional spell]]s behave just like zapping a [[wand]], with the same [[wand#Range|range]].
 
  
 
The "Probability conditional on price" column is for use with price identification. If you know the price of the book, this column tells you how likely it is to be a given spell. (For instance, a spellbook with a base price of 700 zm is 75% likely to be cancellation, and 25% likely to be finger of death.)
 
The "Probability conditional on price" column is for use with price identification. If you know the price of the book, this column tells you how likely it is to be a given spell. (For instance, a spellbook with a base price of 700 zm is 75% likely to be cancellation, and 25% likely to be finger of death.)
Line 41: Line 32:
 
The "Actions to read" column tells you how many player actions are needed to read the spellbook. This is equal to the number of game turns for a hero whose speed is 12; a faster hero will take fewer turns to read the book. Lenses reduce this number of actions by approximately one third.
 
The "Actions to read" column tells you how many player actions are needed to read the spellbook. This is equal to the number of game turns for a hero whose speed is 12; a faster hero will take fewer turns to read the book. Lenses reduce this number of actions by approximately one third.
  
The "Skill changes" column tells you if the spell behaves differently if trained to a higher skill level.  "B" indicates that the spell changes between unskilled and basic, "S" indicates that the spell changes between skilled and basic, and "E" indicates that the spell changes between expert and skilled.  Note that ray and beam spells have a higher hit chance when cast at a higher level.
+
The "Skill changes" column denotes spells that behave differently if the player has a higher skill level in that spell's school.  "B" indicates that the spell behaves differently at a skill level of basic or greater, "S" indicates that the spell behaves differently at skilled or greater, and "E" indicates that the spell behaves differently at expert.  Note that most ray spells have a higher hit chance when cast at a higher level.
  
 
=== Attack ===
 
=== Attack ===
Line 53: Line 44:
  
 
=== Enchantment ===
 
=== Enchantment ===
 +
 +
{{upcoming|NetHack 3.7.0|Some enchantment spell levels have changed: sleep is level 3, confuse monster is level 1, and charm monster is level 5.}}
 +
 
{{Enchantment spells}}
 
{{Enchantment spells}}
  
Line 65: Line 59:
  
 
=== Other ===
 
=== Other ===
*[[Spellbook of blank paper]]&#8212;"a plain spellbook", 1.83% relative probability
+
* [[Spellbook of blank paper]]"plain spellbook", 1.83% relative probability
*[[Book of the Dead]]&#8212;"a papyrus spellbook", [[unique item]]
+
* [[Book of the Dead]]"papyrus spellbook", [[unique item]]
*[[Novel]]&#8212;"a paperback book", Terry Pratchett tribute.
+
* [[Novel]]"paperback book", [[Terry Pratchett]] tribute.
  
== Pricing ==
+
==Success rate of reading==
 +
The probability of successfully reading an uncursed book is:{{refsrc|spell.c|440}}
  
The base price of a spellbook is 100 per level.
+
<math>\frac{Int + 4 + \lfloor \frac{XPLevel}{2} \rfloor - (BookLevel \times 2)}{20}</math>
  
== Generation ==
+
A hypothetical level 0 character needs 16 INT to read a hypothetical level 0 spellbook safely. For every spell level, increase the required INT by two. For every two experience levels (odd ones count as the level below), decrease it by one. If wearing lenses, decrease it by two.
  
Spellbooks comprise 4% of all randomly-generated items in the main dungeon and 12% in containers.
+
A [[Wizard]] will be warned when reading an uncursed spellbook if this chance is below 100%, with a slightly different messages if the chance is below 60%; a cursed spellbook will never prompt a warning.
  
All spellbook types have [[randomized appearance#Spellbooks|randomized appearance]] except the [[spellbook of blank paper]] and the [[Book of the Dead]].
+
The numbers are tabulated in the [http://www.steelypips.org/nethack/spellreading.html NetHack Spellbook Reading Spoiler].
  
Randomly generated [[statue]]s on [[dungeon level]] 4 or deeper (such as on the [[Oracle]]'s level) have a chance of [[Statue#Statue contents|containing a spellbook]].
+
===Failure effects of spellbook reading===
 +
Failing to read a spellbook (or reading a cursed spellbook) [[paralysis|paralyses]] the player for a number of turns equal to the number of player actions needed to read the book minus two. Thus, the minimum duration of the paralysis is one turn (detect monsters, light, sleep, knock) and the maximum duration is 80 turns (finger of death). A [[ring of free action]] will not protect the player from this effect.
  
== Success rate of spellbook reading ==
+
A random effect is chosen in addition to the paralysis, with the list below numbered to match the minimum spellbook level needed for that effect to occur:{{reffunc|spell.c|cursed_book}}<ref>[http://www.steelypips.org/nethack/341/spl1-341.html#reading Spells (learning, practising, and casting) in NetHack 3.4] by Kevin Hugo and Dylan O'Donnell</ref>
  
The probability of successfully reading an uncursed book is:
+
# You are [[teleport]]ed to somewhere else on the level; this takes effect immediately, with paralysis applied after.
 +
# All monsters on the level are [[aggravate|woken up and unparalysed]].
 +
# You are [[blind]]ed for 250–349 turns.
 +
# All your visible [[gold]] vanishes.
 +
# You are [[confused]] for 16–22 turns.
 +
# You lose 1–10 [[HP]] and 3–6 [[strength]] (1-6 HP and 1–2 strength if [[poison resistant]]); [[gloves]] protect you from this effect, though [[gauntlets of power]] will [[corrode]] in the process.
 +
# The book explodes, dealing 7–25 points of damage unless you have [[magic resistance]] and destroying itself.
  
<table>
+
There is a {{frac|3}} chance of the spellbook crumbling to dust for each failed reading, assuming that the book has not exploded. You will then be prompted to [[name]] the spellbook if it was not identified or already type named.
<tr>
 
          <td style="border-bottom:solid 1px">Intelligence + 4 + (XPLevel)/2 - 2*(BookLevel)</td>
 
          </tr>
 
          <tr>           
 
            <td align="center">20</td>
 
          </tr>
 
</table> {{refsrc|spell.c|440}}
 
  
(XPLevel)/2 is your experience level divided by two, rounded down. [[Lenses]] add 10 percentage points to the success rate.
+
==Strategy==
 +
===Learning spells===
 +
Do not attempt to read a spellbook unless you have tested or identified its beatitude, and you are certain it isn't cursed. Unless you are a [[Wizard]], do not attempt to read a non-blessed spellbook unless you know which level it is; this can be easily determined via [[price identification]] at the appropriate [[shop]].
  
In other words; a hypothetical level 0 character needs 16 IN to read a hypothetical level 0 spellbook safely.  For every spell level, increase the required IN by two.  For every two experience levels (odd ones count as the level below), decrease it by one.  If wearing lenses, decrease it by two.
+
Whenever you successfully read a spellbook:
  
Wizards alone will be warned if this chance is below 100%: ''"This spellbook is difficult to comprehend. Continue?"''. This is changed to ''"very difficult"'' if the chance is below 60%.
+
* Type-name it with the current turn number, so that you will know when you need to rememorize it. You can review the type-names of identified items with the {{kbd|\}} key.
 +
* Individual-name it '1', or increment the existing number, so you know how many times you have read it.
  
The numbers are tabled in the [http://www.steelypips.org/nethack/spellreading.html NetHack Spellbook Reading Spoiler].
+
When studying a forgotten spell, read the book again immediately afterwards to make sure it won't turn blank (and fail to refresh the spell) the next time you need to read it - as noted above, if the spellbook is still viable, nothing bad will happen to it.
 +
 
 +
===Safely reading spellbooks===
 +
In practice, the biggest dangers when reading non-[[blessed]] spellbooks are losing the book and getting teleported to a random location on the level while paralyzed. [[Teleport control]] allows you to choose where you will teleport, rendering this effect mostly harmless. A [[unicorn horn]] will cure blindness, confusion and strength loss; wearing gloves will prevent strength loss and damage from poison in the first place, while blindness and confusion will wear off eventually. Bagging your gold when reading spellbooks will prevent it from being lost, and magic resistance will protect you from the damage inflicted by a book exploding.
 +
 
 +
Reading such spellbooks while carrying unpaid goods in [[shop]]s is especially perilous - if you are teleported, the shopkeeper will become angry and call the [[Keystone Kop (monster class)|Keystone Kops]] while you are paralyzed.
 +
 
 +
You can read spellbooks of up to level 5 in relative safety if you have [[teleport control]], lock yourself in a [[closet]] with [[Elbereth]] engraved on the floor and drop your gold. To safely read level 6 and higher spellbooks, you also need gloves and/or a unicorn horn and, for level 7 books, magic resistance or at least 26 HP. If you don't have teleport control, you can instead read them on a [[non-teleport level]], such as inside the closets on the top level of [[Sokoban]].
 +
 
 +
{{upcoming|NetHack 3.7.0|Unicorn horns can no longer restore reduced attributes. Alternatives include [[Potion of restore ability|potions of restore ability]], the [[spell of restore ability]], [[prayer]], or the [[potion of gain ability]].}}
 +
 
 +
===Carrying spellbooks===
 +
[[Role]]s that start with spellbooks will probably want to stash them at the first opportunity, both to reduce [[encumbrance]] and to avoid losing them to sources of fire. Selling them to a [[shop]], if you can find one that takes them, is a useful source of extra gold in the early game; by the time you need your books back on turn 20,000, you should easily be able to afford them.
  
== Failure effects of spellbook reading ==
+
If you have a {{frac|3}} or higher net markup on your buying price (which is likely the case for an early-game character), reading a shop-owned book unbought and paying the [[usage fee]] is cheaper than buying the book, then reselling it after reading.
Failing to read a spellbook (or reading a cursed spellbook) [[paralysis|paralyses]] the player for a number of turns equal to the number of player actions needed to read the book, minus two. Thus, the minimum duration of the paralysis is one turn (detect monsters, light, sleep, knock) and the maximum duration is 80 turns (finger of death). A [[ring of free action]] will not protect the player from this effect.
 
  
A random bad effect is chosen in addition to the paralysis. The list below is numbered to match the minimum spellbook level needed to reach that effect:{{reffunc|spell.c|cursed_book}}<ref>[http://www.steelypips.org/nethack/341/spl1-341.html#reading Spells (learning, practising, and casting) in NetHack 3.4] by Kevin Hugo and Dylan O'Donnell</ref>
+
===Cursed spellbooks===
 +
Occasionally, if you have teleport control, don't need the book, and power is at a premium, you might want to (write and) read cursed spellbooks of detect monsters, light, sleep, or knock for their teleport effect since these books will paralyze you only for one turn and are cheap to write. The guaranteed teleport effect may be useful as an escape if [[power|other]] [[wand of teleportation|resources]] [[scroll of teleportation|for this]] are scarce. A [[speed ascension|speed runner]] might even write cursed books to conserve power and [[scrolls of charging]].
  
# You are [[teleport]]ed to somewhere else on the level: ''"You feel a wrenching sensation."'' This takes effect immediately, i.e. you are paralyzed somewhere else.
+
==History==
# All monsters on the level are woken up and unparalysed: ''"You feel threatened."''
+
Spellbooks are introduced in [[NetHack 1.3d]].
# You are [[blind]]ed for 250–349 turns.
 
# All your (visible) [[gold]] vanishes: ''"You notice you have no gold!"'' ("money" in 3. 6. 0) (or ''"You feel a strange sensation."'', if you had no gold).
 
# You are [[confused]] for 16–22 turns: ''"These runes were just too much to comprehend."''
 
# You lose 1–10 [[HP]] and 3–6 [[strength]] (1-6 HP and 1–2 strength if [[poison resistant]]): ''"The book was coated with contact poison!"'' [[Gloves |Gloves]] protect you from this effect, though [[gauntlets of power]] will [[corrode]] in the process.
 
# The book explodes, dealing 7–25 points of damage unless you have [[magic resistance]]. The book will always be destroyed by the explosion.
 
#* ''"As you read the book, it radiates explosive energy in your &lt;[[body part|face]]&gt;!"''
 
#* ''"The book radiates explosive energy, but you are unharmed!"'' (if magic resistant)
 
  
 +
In [[NetHack 3.4.3]], you can only read a spellbook to refresh memory of that spell with 1,000 turns of memory or less left. Additionally, due to a bug, a polymorphed spellbook would never fade if the spell was not already in your [[spellcasting]] menu {{kbd|Z}}, allowing you to read it once to learn the spell, which you could then rewrite with a magic marker for future reference. This was fixed in [[NetHack 3.6.0]].{{refsrc|src/spell.c|395|version=NetHack 3.6.0}}
  
You have a 1/3 chance of destroying the spellbook every time you fail to read it (in addition to the chance of explosion, which always destroys it). This produces the message ''spellbook crumbles to dust!''. You will then be prompted to name the spellbook if it was not identified or already type named.
+
NetHack 3.6.0 increases the turn threshold for refreshing spell knowledge from 1,000 to 2,000. The additional effect of dull spellbooks was also introduced in 3.6.0; in this version, it ignores sleep resistance. This was changed in [[NetHack 3.6.1]].
  
In practice, the biggest dangers when reading non-blessed spellbooks are losing the book and getting teleported to a random location on the level while paralysed. [[Teleport control]] allows you to choose where you will teleport, rendering this effect mostly harmless. A [[unicorn horn]] will cure blindness, confusion and strength loss; wearing gloves will prevent strength loss and damage from poison in the first place, while blindness and confusion will wear off eventually. Bagging your gold when reading spellbooks will prevent it from being lost. Magic resistance will protect you from explosions (but the book will still be destroyed). And of course, reading [[blessed]] spellbooks will always succeed.
+
==Messages==
 +
{{message|This book is so dull that you can't keep your (eyes) open.|You attempted to read a dull spellbook, and do not have sleep resistance. You do not learn the spell, but are not subjected to the other failure effects.}}
 +
{{message|This spellbook is <very> difficult to comprehend. Continue?|You are a Wizard, and were given a prompt to continue reading a spellbook that you do not have a 100% chance of learning the spell from; "very" is appended if the chance is below 60%.}}
 +
{{message|You feel a wrenching sensation.<br>You feel threatened.<br>A cloud of darkness falls upon you.<br>You notice you have no money!<br>These runes were just too much to comprehend.|You failed to learn a spell from reading its spellbook, and are subjected to [[#Failure effects of spellbook reading|a detrimental effect]] based on its level, including the next two listed.}}
 +
{{message|The book was coated with contact poison!|As above; you lose d10 HP and 3d2 strength, lowered to d6 HP and d2 strength if poison resistant.}}
 +
{{message|As you read the book, it radiates explosive energy in your &lt;[[body part|face]]&gt;!|As above; this effect destroys the book and inflicts 7-25 points of damage.}}
 +
{{message|The book radiates explosive energy, but you are unharmed!|You triggered the above effect, but are magic resistant.}}
  
Reading spellbooks in [[shop]]s is something players should be careful about. Teleporting out of a shop while carrying unpaid goods counts as stealing, which will anger the [[shopkeeper]] and call the [[Keystone Kops]] while you are also paralyzed.
+
{{message|Being confused you have difficulties in controlling your actions.|You attempted to read a spellbook while confused; this will always fail and lead to one of the following two messages:}}
 +
{{message|You accidentally tear the spellbook to pieces.|The spellbook is destroyed; this has a {{frac|3}} chance of occurring.}}
 +
{{message|You find yourself reading the [first/next] line over and over again.|Nothing else happens.}}
  
The guaranteed teleport effect of cursed level 1 spellbooks may be useful as an [[escape item]] to teleport if [[power|other]] [[wand of teleportation|resou]][[scroll of teleportation|rces]] are scarce but books plentiful. A [[speed ascension|speed runner]] might even write cursed books to conserve power and [[scrolls of charging]].
+
{{upcoming|NetHack 3.7.0|
 +
  {{message|The [magical] ink in this spellbook is fresh.|You are flipping through a spellbook that has been affected 0 times.}}
 +
  {{message|The [magical] ink in this spellbook is slightly faded.|You are flipping through a spellbook that has been affected 1 time.}}
 +
  {{message|The [magical] ink in this spellbook is very faded.|You are flipping through a spellbook that has been affected 2 times.}}
 +
  {{message|The [magical] ink in this spellbook is extremely faded.|You are flipping through a spellbook that has been affected 3 times. It can no longer be used to learn a new spell.}}
 +
  {{message|The [magical] ink in this spellbook is barely visible.|You are flipping through a spellbook that has been affected 4 times. It can no longer be studied at all.}}
 +
  {{message|You hear the pages make an unpleasant rustling sound.|You are flipping through the Book of the Dead.}}
 +
  {{message|You see the pages glow faintly red.|You are flipping through the Book of the Dead while deaf.}}
 +
}}
  
You can read spellbooks of up to level 5 in relative safety if you have a [[teleport control]] by locking yourself in a [[closet]] with [[Elbereth]] engraved on the floor and dropping your gold. To safely read level 6 spellbooks, you also need gloves and/or a unicorn horn, and for level 7 books magic resistance or at least 26 HP. If you don't have teleport control, you can instead read your spellbooks on a [[non-teleport level]]; the closets on the top level of [[Sokoban]] seem almost as if made for this purpose.
+
==Variants==
 +
===SLASH'EM===
 +
Spellbooks have [[charge]]s now.  When reading a non-cursed charged spellbook, one charge is consumed, and ''"The words on the page seem to glow faintly."'' This allows you to read the spelbook normally should you fail the reading roll, and triples the reading speed otherwise.
  
== SLASH'EM ==
+
===UnNetHack===
 +
In [[UnNetHack]] as of version 4, you can apply spellbooks to receive an indication of how many more times they can be read.<ref>[https://github.com/UnNetHack/UnNetHack/commit/65957adcdd2f01f39d6008a532ce743b4fcfc687 UnNetHack commit 65957ad: Applying a spellbook allows the player to flip through the pages, pro…]</ref>
  
Spellbooks have [[charge]]s now.  When reading a non-cursed charged spellbook, one charge is consumed, and ''"The words on the page seem to glow faintly."''  This allows you to read the spelbook normally should you fail the reading roll, and triples the reading speed otherwise.
+
===FIQHack===
 +
[[FIQHack]] has numerous changes regarding spellbooks:
  
== Encyclopedia entry ==
+
* Monsters can learn spells from spellbooks.
 +
* When you successfully read a spellbook, you retain the spell for 60k turns instead of 20k.
 +
* Successfully reading a spellbook destroys it.
 +
* You never start with spells memorized, but will always start with the equivalent spellbooks.
 +
* The spellbook of haste self is now the [[spellbook of speed monster]]; the accompanying spell works the same, but can additionally be cast at other monsters.
 +
* Spellbook weight is tied to level: Blank spellbooks weigh 30 aum, while all other spellbooks weigh (level * 5) + 30.
 +
* The spell of protection only works if you are not wearing body armor.
 +
* Four new spellbooks are added (all level 7):
 +
** [[spellbook of charging]] (enchantment)
 +
** [[spellbook of phase]] (escape)
 +
** [[spellbook of astral eyesight]] (divination)
 +
** [[spellbook of summon nasty]] (clerical)
  
 +
==Encyclopedia entry==
 
{{encyclopedia|
 
{{encyclopedia|
The Book of Three lay closed on the table.  Taran had never
+
The Book of Three lay closed on the table.  Taran had never been allowed to read the volume for himself; now he was sure it held more than Dallben chose to tell him.  In the sun- filled room, with Dallben still meditating and showing no sign of stopping, Taran rose and moved through the shimmering beams.  From the forest came the monotonous tick of a beetle.
been allowed to read the volume for himself; now he was sure
+
His hands reached for the cover.  Taran gasped in pain and snatched them away.  They smarted as if each of his fingers had been stung by hornets.  He jumped back, stumbled against the bench, and dropped to the floor, where he put his fingers woefully into his mouth.
it held more than Dallben chose to tell him.  In the sun-
+
Dallben's eyes blinked open.  He peered at Taran and yawned slowly.  "You had better see Coll about a lotion for those hands," he advised.  "Otherwise, I shouldn't be surprised if they blistered."
filled room, with Dallben still meditating and showing no
 
sign of stopping, Taran rose and moved through the shimmering
 
beams.  From the forest came the monotonous tick of a beetle.
 
His hands reached for the cover.  Taran gasped in pain and
 
snatched them away.  They smarted as if each of his fingers
 
had been stung by hornets.  He jumped back, stumbled against
 
the bench, and dropped to the floor, where he put his fingers
 
woefully into his mouth.
 
Dallben's eyes blinked open.  He peered at Taran and yawned
 
slowly.  "You had better see Coll about a lotion for those
 
hands," he advised.  "Otherwise, I shouldn't be surprised if
 
they blistered."
 
 
|[ The Book of Three, by Lloyd Alexander ]
 
|[ The Book of Three, by Lloyd Alexander ]
 
}}
 
}}
  
 
==See also==
 
==See also==
*[[Spellcasting]]
+
* [[Spellcasting]]
*[[The Book of the Dead]]
+
* [[The Book of the Dead]]
*[[Novel]]
+
* [[Novel]]
== References ==
 
  
 +
==References==
 
<references />
 
<references />
 +
{{nethack-366}}
 
[[Category:Spellbooks| ]]
 
[[Category:Spellbooks| ]]
{{nethack-361}}
 

Latest revision as of 08:27, 12 November 2023

A spellbook, +, is a type of book that appears in NetHack and contains runes describing a spell. You learn the spell by reading the spellbook with r and attempting to memorize it; if you have a blank spellbook and a magic marker, you can also attempt to write your own copy of any known spellbook in the game (see Magic_marker#Writing_success_chance). Both actions obviously break the illiterate conduct.

In tty mode, both brown books and closed doors share the + symbol.

Spellbooks have a weight of 50 aum, and the base price of a spellbook is 100zm per level.

Description

The odds of you learning a spell from reading the spellbook are dependent on the level of its spell and the book's beatitude; if the spellbook is cursed, or else uncursed and too difficult, you will not learn the spell, but suffer harmful effects instead. A blessed spellbook will always be read successfully; a pair of lenses increases the chance of successfully reading an uncursed spellbook by 10 percentage points, and reduces the amount of actions needed to read the book by about one-third.

Attempting to read a spellbook with the randomized appearance of a "dull spellbook" may cause you to fall asleep for a number of turns, based on your Wisdom and the spellbook's level; sleep resistance prevents this effect.

Spellbooks cannot be read while blind. Attempting to read a spellbook while confused will always fail, and has a 13 chance of destroying the spellbook.[1]

Reading an unpaid-for spellbook in a shop while in the presence of the shopkeeper incurs a usage fee. ("This is no free library, cad!")

After successfully learning a spell from a spellbook, you will retain memory of that spell for 20,000 turns afterward, and the 'read' counter for that spellbook is incremented by one. A spellbook that has been 'read' three times will fade after refreshing the spell from it, making spell and book management quite important.[2][3] Re-reading a spellbook "early" – i.e., while you still know the spell and are more than 2,000 turns from forgetting it – has no effect beyond exercising wisdom.[4] If you polymorph a spellbook, it will increment the 'read' counter by one.

Roles that start with spellbooks in their initial inventory will begin the game already knowing the pertinent spell(s); the books themselves are always treated as brand-new.[5]

Dipping a spellbook into water (or a fountain) will blank it; spellbooks made blank this way will retain their beatitude.

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.

You can now apply a spellbook to flip through the pages and appraise how fresh it is; per commit b55165e, this was adapted from UnNetHack. See the Messages section below.

List of spellbooks

The following is a list of all spellbooks, listed alphabetically by the school of magic they represent and ordered by difficulty within the schools.

Directional spells behave just like zapping a wand, with the same range.

The "Probability conditional on price" column is for use with price identification. If you know the price of the book, this column tells you how likely it is to be a given spell. (For instance, a spellbook with a base price of 700 zm is 75% likely to be cancellation, and 25% likely to be finger of death.)

The "Actions to read" column tells you how many player actions are needed to read the spellbook. This is equal to the number of game turns for a hero whose speed is 12; a faster hero will take fewer turns to read the book. Lenses reduce this number of actions by approximately one third.

The "Skill changes" column denotes spells that behave differently if the player has a higher skill level in that spell's school. "B" indicates that the spell behaves differently at a skill level of basic or greater, "S" indicates that the spell behaves differently at skilled or greater, and "E" indicates that the spell behaves differently at expert. Note that most ray spells have a higher hit chance when cast at a higher level.

Attack

Spellbook Spell level Direction Relative probability Probability conditional on price Actions to read Skill changes
Spellbook of force bolt 1 beam 3.56% 12.2% 4
Spellbook of drain life 2 beam 1.01% 4.3% 4
Spellbook of magic missile 2 ray 4.58% 19.1% 4
Spellbook of cone of cold 4 ray (distant if skilled) 1.01% 8.3% 23 S
Spellbook of fireball 4 ray (distant if skilled) 2.03% 16.7% 14 S
Spellbook of finger of death 7 ray 0.5% 25.0% 82

Clerical

Spellbook Spell level Direction Relative probability Probability conditional on price Actions to read Skill changes
Spellbook of protection 1 non-directional 1.83% 6.3% 5 E
Spellbook of create monster 2 non-directional 3.56% 14.9% 5
Spellbook of remove curse 3 non-directional 2.54% 10.8% 12 S
Spellbook of create familiar 6 non-directional 1.01% 19.6% 44
Spellbook of turn undead 6 beam 1.62% 31.4% 50

Divination

Spellbook Spell level Direction Relative probability Probability conditional on price Actions to read Skill changes
Spellbook of detect monsters 1 non-directional 4.37% 15.0% 3 S
Spellbook of light 1 non-directional 4.58% 15.7% 3
Spellbook of detect food 2 non-directional 3.05% 12.8% 5 S
Spellbook of clairvoyance 3 non-directional 1.52% 16.5% 8 S
Spellbook of detect unseen 3 non-directional 2.03% 8.6% 10
Spellbook of identify 3 non-directional 2.03% 8.6% 14 S
Spellbook of detect treasure 4 non-directional 2.03% 16.7% 17 S
Spellbook of magic mapping 5 non-directional 1.83% 47.4% 37

Enchantment

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.

Some enchantment spell levels have changed: sleep is level 3, confuse monster is level 1, and charm monster is level 5.
Spellbook Spell level Direction Relative probability Probability conditional on price Actions to read Skill changes
Spellbook of sleep 1 ray 5.09% 17.5% 3
Spellbook of confuse monster 2 non-directional 3.05% 12.8% 4 S
Spellbook of slow monster 2 beam 3.05% 12.8% 4
Spellbook of cause fear 3 non-directional 2.54% 10.8% 8
Spellbook of charm monster 3 non-directional 2.03% 8.6% 8

Escape

Spellbook Spell level Direction Relative probability Probability conditional on price Actions to read Skill changes
Spellbook of jumping 1 non-directional 2.03% 7.0% 5 BSE
Spellbook of haste self 3 non-directional 3.36% 14.2% 10 S
Spellbook of invisibility 4 non-directional 2.54% 20.8% 17
Spellbook of levitation 4 non-directional 2.03% 16.7% 14 S
Spellbook of teleport away 6 beam 1.52% 29.4% 38

Healing

Spellbook Spell level Direction Relative probability Probability conditional on price Actions to read Skill changes
Spellbook of healing 1 beam 4.07% 14.0% 4 S
Spellbook of cure blindness 2 non-directional 2.54% 10.6% 4
Spellbook of cure sickness 3 non-directional 3.25% 13.8% 8
Spellbook of extra healing 3 beam 2.74% 11.6% 12
Spellbook of stone to flesh 3 beam 1.52% 6.5% 4
Spellbook of restore ability 4 non-directional 2.54% 20.8% 17 S

Matter

Spellbook Spell level Direction Relative probability Probability conditional on price Actions to read Skill changes
Spellbook of knock 1 beam 3.56% 12.2% 3
Spellbook of wizard lock 2 beam 3.05% 12.8% 5
Spellbook of dig 5 ray 2.03% 52.6% 32
Spellbook of polymorph 6 beam 1.01% 19.6% 50
Spellbook of cancellation 7 beam 1.52% 75.0% 66

Other

Success rate of reading

The probability of successfully reading an uncursed book is:[6]

\frac{Int + 4 + \lfloor \frac{XPLevel}{2} \rfloor - (BookLevel \times 2)}{20}

A hypothetical level 0 character needs 16 INT to read a hypothetical level 0 spellbook safely. For every spell level, increase the required INT by two. For every two experience levels (odd ones count as the level below), decrease it by one. If wearing lenses, decrease it by two.

A Wizard will be warned when reading an uncursed spellbook if this chance is below 100%, with a slightly different messages if the chance is below 60%; a cursed spellbook will never prompt a warning.

The numbers are tabulated in the NetHack Spellbook Reading Spoiler.

Failure effects of spellbook reading

Failing to read a spellbook (or reading a cursed spellbook) paralyses the player for a number of turns equal to the number of player actions needed to read the book minus two. Thus, the minimum duration of the paralysis is one turn (detect monsters, light, sleep, knock) and the maximum duration is 80 turns (finger of death). A ring of free action will not protect the player from this effect.

A random effect is chosen in addition to the paralysis, with the list below numbered to match the minimum spellbook level needed for that effect to occur:[7][8]

  1. You are teleported to somewhere else on the level; this takes effect immediately, with paralysis applied after.
  2. All monsters on the level are woken up and unparalysed.
  3. You are blinded for 250–349 turns.
  4. All your visible gold vanishes.
  5. You are confused for 16–22 turns.
  6. You lose 1–10 HP and 3–6 strength (1-6 HP and 1–2 strength if poison resistant); gloves protect you from this effect, though gauntlets of power will corrode in the process.
  7. The book explodes, dealing 7–25 points of damage unless you have magic resistance and destroying itself.

There is a 13 chance of the spellbook crumbling to dust for each failed reading, assuming that the book has not exploded. You will then be prompted to name the spellbook if it was not identified or already type named.

Strategy

Learning spells

Do not attempt to read a spellbook unless you have tested or identified its beatitude, and you are certain it isn't cursed. Unless you are a Wizard, do not attempt to read a non-blessed spellbook unless you know which level it is; this can be easily determined via price identification at the appropriate shop.

Whenever you successfully read a spellbook:

  • Type-name it with the current turn number, so that you will know when you need to rememorize it. You can review the type-names of identified items with the \ key.
  • Individual-name it '1', or increment the existing number, so you know how many times you have read it.

When studying a forgotten spell, read the book again immediately afterwards to make sure it won't turn blank (and fail to refresh the spell) the next time you need to read it - as noted above, if the spellbook is still viable, nothing bad will happen to it.

Safely reading spellbooks

In practice, the biggest dangers when reading non-blessed spellbooks are losing the book and getting teleported to a random location on the level while paralyzed. Teleport control allows you to choose where you will teleport, rendering this effect mostly harmless. A unicorn horn will cure blindness, confusion and strength loss; wearing gloves will prevent strength loss and damage from poison in the first place, while blindness and confusion will wear off eventually. Bagging your gold when reading spellbooks will prevent it from being lost, and magic resistance will protect you from the damage inflicted by a book exploding.

Reading such spellbooks while carrying unpaid goods in shops is especially perilous - if you are teleported, the shopkeeper will become angry and call the Keystone Kops while you are paralyzed.

You can read spellbooks of up to level 5 in relative safety if you have teleport control, lock yourself in a closet with Elbereth engraved on the floor and drop your gold. To safely read level 6 and higher spellbooks, you also need gloves and/or a unicorn horn and, for level 7 books, magic resistance or at least 26 HP. If you don't have teleport control, you can instead read them on a non-teleport level, such as inside the closets on the top level of Sokoban.

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 spell of restore ability, prayer, or the potion of gain ability.

Carrying spellbooks

Roles that start with spellbooks will probably want to stash them at the first opportunity, both to reduce encumbrance and to avoid losing them to sources of fire. Selling them to a shop, if you can find one that takes them, is a useful source of extra gold in the early game; by the time you need your books back on turn 20,000, you should easily be able to afford them.

If you have a 13 or higher net markup on your buying price (which is likely the case for an early-game character), reading a shop-owned book unbought and paying the usage fee is cheaper than buying the book, then reselling it after reading.

Cursed spellbooks

Occasionally, if you have teleport control, don't need the book, and power is at a premium, you might want to (write and) read cursed spellbooks of detect monsters, light, sleep, or knock for their teleport effect since these books will paralyze you only for one turn and are cheap to write. The guaranteed teleport effect may be useful as an escape if other resources for this are scarce. A speed runner might even write cursed books to conserve power and scrolls of charging.

History

Spellbooks are introduced in NetHack 1.3d.

In NetHack 3.4.3, you can only read a spellbook to refresh memory of that spell with 1,000 turns of memory or less left. Additionally, due to a bug, a polymorphed spellbook would never fade if the spell was not already in your spellcasting menu Z, allowing you to read it once to learn the spell, which you could then rewrite with a magic marker for future reference. This was fixed in NetHack 3.6.0.[9]

NetHack 3.6.0 increases the turn threshold for refreshing spell knowledge from 1,000 to 2,000. The additional effect of dull spellbooks was also introduced in 3.6.0; in this version, it ignores sleep resistance. This was changed in NetHack 3.6.1.

Messages

This book is so dull that you can't keep your (eyes) open.
You attempted to read a dull spellbook, and do not have sleep resistance. You do not learn the spell, but are not subjected to the other failure effects.
This spellbook is <very> difficult to comprehend. Continue?
You are a Wizard, and were given a prompt to continue reading a spellbook that you do not have a 100% chance of learning the spell from; "very" is appended if the chance is below 60%.
You feel a wrenching sensation.
You feel threatened.
A cloud of darkness falls upon you.
You notice you have no money!
These runes were just too much to comprehend.
You failed to learn a spell from reading its spellbook, and are subjected to a detrimental effect based on its level, including the next two listed.
The book was coated with contact poison!
As above; you lose d10 HP and 3d2 strength, lowered to d6 HP and d2 strength if poison resistant.
As you read the book, it radiates explosive energy in your <face>!
As above; this effect destroys the book and inflicts 7-25 points of damage.
The book radiates explosive energy, but you are unharmed!
You triggered the above effect, but are magic resistant.
Being confused you have difficulties in controlling your actions.
You attempted to read a spellbook while confused; this will always fail and lead to one of the following two messages:
You accidentally tear the spellbook to pieces.
The spellbook is destroyed; this has a 13 chance of occurring.
You find yourself reading the [first/next] line over and over again.
Nothing else happens.

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.


The [magical] ink in this spellbook is fresh.
You are flipping through a spellbook that has been affected 0 times.
The [magical] ink in this spellbook is slightly faded.
You are flipping through a spellbook that has been affected 1 time.
The [magical] ink in this spellbook is very faded.
You are flipping through a spellbook that has been affected 2 times.
The [magical] ink in this spellbook is extremely faded.
You are flipping through a spellbook that has been affected 3 times. It can no longer be used to learn a new spell.
The [magical] ink in this spellbook is barely visible.
You are flipping through a spellbook that has been affected 4 times. It can no longer be studied at all.
You hear the pages make an unpleasant rustling sound.
You are flipping through the Book of the Dead.
You see the pages glow faintly red.
You are flipping through the Book of the Dead while deaf.

Variants

SLASH'EM

Spellbooks have charges now. When reading a non-cursed charged spellbook, one charge is consumed, and "The words on the page seem to glow faintly." This allows you to read the spelbook normally should you fail the reading roll, and triples the reading speed otherwise.

UnNetHack

In UnNetHack as of version 4, you can apply spellbooks to receive an indication of how many more times they can be read.[10]

FIQHack

FIQHack has numerous changes regarding spellbooks:

  • Monsters can learn spells from spellbooks.
  • When you successfully read a spellbook, you retain the spell for 60k turns instead of 20k.
  • Successfully reading a spellbook destroys it.
  • You never start with spells memorized, but will always start with the equivalent spellbooks.
  • The spellbook of haste self is now the spellbook of speed monster; the accompanying spell works the same, but can additionally be cast at other monsters.
  • Spellbook weight is tied to level: Blank spellbooks weigh 30 aum, while all other spellbooks weigh (level * 5) + 30.
  • The spell of protection only works if you are not wearing body armor.
  • Four new spellbooks are added (all level 7):

Encyclopedia entry

The Book of Three lay closed on the table. Taran had never been allowed to read the volume for himself; now he was sure it held more than Dallben chose to tell him. In the sun- filled room, with Dallben still meditating and showing no sign of stopping, Taran rose and moved through the shimmering beams. From the forest came the monotonous tick of a beetle.
His hands reached for the cover. Taran gasped in pain and snatched them away. They smarted as if each of his fingers had been stung by hornets. He jumped back, stumbled against the bench, and dropped to the floor, where he put his fingers woefully into his mouth.
Dallben's eyes blinked open. He peered at Taran and yawned slowly. "You had better see Coll about a lotion for those hands," he advised. "Otherwise, I shouldn't be surprised if they blistered."

[ The Book of Three, by Lloyd Alexander ]

See also

References