Difference between revisions of "Elf (monster attribute)"

From NetHackWiki
Jump to navigation Jump to search
m (otheruses)
m (lede)
 
(8 intermediate revisions by 8 users not shown)
Line 1: Line 1:
 
{{otheruses|||elf}}
 
{{otheruses|||elf}}
'''Elf''' is a [[monster attribute]] that indicates that a [[monster]] should be considered ''elven''<ref name="M2_ELF">{{sourcecode|monflag.h|116}} monster attribute M2_ELF</ref>. It has many effects, but most significantly it helps determine whether your actions constitute [[cannibalism]] or same-race [[sacrifice]].
+
'''Elf''' is a [[monster attribute]] in ''[[NetHack]]'' that indicates when a [[monster]] should be considered elven.{{refsrc|monflag.h|116|name=M2_ELF|comment=monster attribute M2_ELF}} It has many effects, but most significantly it helps determine whether your actions constitute [[cannibalism]] or same-race [[sacrifice]].
  
 
It is easy to tell if a monster is elven, as all elven monsters with the exception of ''elvenking'' have the word ''elf'' in their name, and none that are not elven have it.
 
It is easy to tell if a monster is elven, as all elven monsters with the exception of ''elvenking'' have the word ''elf'' in their name, and none that are not elven have it.
Line 17: Line 17:
 
** {{monsymlink|elf zombie}}
 
** {{monsymlink|elf zombie}}
  
The plain ''elf'' is not randomly generated as a monster. Elf [[corpse]]s are dropped by the elf mummy and zombie, and is also found in graves left by player elves in [[bones]]. An elf monster may be created by [[reviving]] an elf corpse.
+
The plain ''elf'' is not randomly generated as a monster. Elf [[corpse]]s are dropped by the elf mummy and zombie, and are also found in graves left by player elves in [[bones]]. An elf monster may be created by [[reviving]] an elf corpse.
  
 
==Effects==
 
==Effects==
Line 23: Line 23:
 
The elf attribute is used to determine the following things:
 
The elf attribute is used to determine the following things:
  
*If you are an [[elf (starting race)|elven player]], elf monsters are more likely to be [[peaceful]].<ref>{{sourcecode|makemon.c|953}} possibly make monsters peaceful</ref><ref>{{function|makemon.c|peace_minded}} is monster peaceful?</ref><ref>{{sourcecode|mondata.h|102}} are these races peaceful?</ref>
+
*If you are an [[elf (starting race)|elven player]], elf monsters are more likely to be [[peaceful]].{{refsrc|makemon.c|953|comment=possibly make monsters peaceful}}{{reffunc|makemon.c|peace_minded|comment=is monster peaceful?}}{{refsrc|mondata.h|102|comment=are these races peaceful?}}
*Whether [[eat]]ing a monster is [[cannibalism]] for an elven player.<ref>{{function|eat.c|maybe_cannibal}} cannibalism</ref><ref name="your_race">{{sourcecode|mondata.h|85}} compare races</ref>
+
*Whether [[eat]]ing a monster is [[cannibalism]] for an elven player.{{reffunc|eat.c|maybe_cannibal|comment=cannibalism}}{{refsrc|mondata.h|85|name=your_race|comment=compare races}}
*Whether a [[sacrifice]] is of your own race for an elven player.<ref name="your_race"/><ref>{{sourcecode|pray.c|1167}} own-race sacrifice</ref>
+
*Whether a [[sacrifice]] is of your own race for an elven player.<ref name="your_race"/>{{refsrc|pray.c|1167|comment=own-race sacrifice}}
*What to give when wishing for the [[corpse]]s of [[quest guardian]]s.<ref>{{sourcecode|objnam.c|2560}} wishing for corpses</ref><ref name="genus">{{function|mon.c|genus}} the race of a monster</ref>
+
*What to give when wishing for the [[corpse]]s of [[quest guardian]]s.{{refsrc|objnam.c|2560|comment=wishing for corpses}}{{reffunc|mon.c|genus|name=genus|comment=the race of a monster}}
*What responses to use when [[chat]]ting with other [[role]]s' quest guardians<ref name="genus"/><ref>{{sourcecode|sounds.c|439}} chatting to others' quest guardians</ref> (possibly created by [[reverse genocide]] or found in [[bones]]).
+
*What responses to use when [[chat]]ting with other [[role]]s' quest guardians<ref name="genus"/>{{refsrc|sounds.c|439|comment=chatting to others' quest guardians}} (possibly created by [[reverse genocide]] or found in [[bones]]).
  
 
==Internals==
 
==Internals==
 
In the source, the elf attribute is represented by the macro '''M2_ELF'''.<ref name="M2_ELF"/>
 
In the source, the elf attribute is represented by the macro '''M2_ELF'''.<ref name="M2_ELF"/>
  
==Encyclopedia Entry==
+
==Variants==
        The Elves sat round the fire upon the grass or upon the sawn
+
 
        rings of old trunks.  Some went to and fro bearing cups and
+
===[[SLASH'EM]]===
        pouring drinks; others brought food on heaped plates and
+
[[Drow]] are flagged as elves, as was Lareth, the Gnome quest nemesis in versions predating the separation of race and role.
        dishes.
+
 
        "This is poor fare," they said to the hobbits; "for we are
+
===[[UnNetHack]]===
        lodging in the greenwood far from our halls.  If ever you are
+
In [[UnNetHack]] as part of the [[grudge]] patch, elves will attack any orcs or kobolds they encounter, and vice versa.
        our guests at home, we will treat you better."
+
 
        "It seems to me good enough for a birthday-party," said Frodo.
+
==Encyclopedia entry==
        Pippin afterwards recalled little of either food or drink, for
+
 
        his mind was filled with the light upon the elf-faces, and the
+
{{encyclopedia|
        sound of voices so various and so beautiful that he felt in a
+
The Elves sat round the fire upon the grass or upon the sawn rings of old trunks.  Some went to and fro bearing cups and pouring drinks; others brought food on heaped plates and dishes.
        waking dream.  [...]
+
"This is poor fare," they said to the hobbits; "for we are lodging in the greenwood far from our halls.  If ever you are our guests at home, we will treat you better."
        Sam could never describe in words, nor picture clearly to
+
"It seems to me good enough for a birthday-party," said Frodo.
        himself, what he felt or thought that night, though it remained
+
Pippin afterwards recalled little of either food or drink, for his mind was filled with the light upon the elf-faces, and the sound of voices so various and so beautiful that he felt in a waking dream.  [...]
        in his memory as one of the chief events of his life.  The
+
Sam could never describe in words, nor picture clearly to himself, what he felt or thought that night, though it remained in his memory as one of the chief events of his life.  The nearest he ever got was to say: "Well, sir, if I could grow apples like that, I would call myself a gardener.  But it was the singing that went to my heart, if you know what I mean."
        nearest he ever got was to say: "Well, sir, if I could grow
+
|[ The Fellowship of the Ring, by J.R.R. Tolkien ]
        apples like that, I would call myself a gardener.  But it was
+
}}
        the singing that went to my heart, if you know what I mean."
 
          [ The Fellowship of the Ring, by J.R.R. Tolkien ]
 
  
 
==References==
 
==References==

Latest revision as of 09:21, 22 November 2023

For other uses, see elf.

Elf is a monster attribute in NetHack that indicates when a monster should be considered elven.[1] It has many effects, but most significantly it helps determine whether your actions constitute cannibalism or same-race sacrifice.

It is easy to tell if a monster is elven, as all elven monsters with the exception of elvenking have the word elf in their name, and none that are not elven have it.

Monsters

In the dungeon, you can encounter the following elven monsters:

The plain elf is not randomly generated as a monster. Elf corpses are dropped by the elf mummy and zombie, and are also found in graves left by player elves in bones. An elf monster may be created by reviving an elf corpse.

Effects

A user has suggested improving this page or section as follows:

"this section is incomplete and requires expansion"

The elf attribute is used to determine the following things:

Internals

In the source, the elf attribute is represented by the macro M2_ELF.[1]

Variants

SLASH'EM

Drow are flagged as elves, as was Lareth, the Gnome quest nemesis in versions predating the separation of race and role.

UnNetHack

In UnNetHack as part of the grudge patch, elves will attack any orcs or kobolds they encounter, and vice versa.

Encyclopedia entry

The Elves sat round the fire upon the grass or upon the sawn rings of old trunks. Some went to and fro bearing cups and pouring drinks; others brought food on heaped plates and dishes.
"This is poor fare," they said to the hobbits; "for we are lodging in the greenwood far from our halls. If ever you are our guests at home, we will treat you better."
"It seems to me good enough for a birthday-party," said Frodo.
Pippin afterwards recalled little of either food or drink, for his mind was filled with the light upon the elf-faces, and the sound of voices so various and so beautiful that he felt in a waking dream. [...]
Sam could never describe in words, nor picture clearly to himself, what he felt or thought that night, though it remained in his memory as one of the chief events of his life. The nearest he ever got was to say: "Well, sir, if I could grow apples like that, I would call myself a gardener. But it was the singing that went to my heart, if you know what I mean."

[ The Fellowship of the Ring, by J.R.R. Tolkien ]

References

  1. 1.0 1.1 monflag.h in NetHack 3.4.3, line 116: monster attribute M2_ELF
  2. makemon.c in NetHack 3.4.3, line 953: possibly make monsters peaceful
  3. peace_minded in makemon.c: is monster peaceful?
  4. mondata.h in NetHack 3.4.3, line 102: are these races peaceful?
  5. maybe_cannibal in eat.c: cannibalism
  6. 6.0 6.1 mondata.h in NetHack 3.4.3, line 85: compare races
  7. pray.c in NetHack 3.4.3, line 1167: own-race sacrifice
  8. objnam.c in NetHack 3.4.3, line 2560: wishing for corpses
  9. 9.0 9.1 genus in mon.c: the race of a monster
  10. sounds.c in NetHack 3.4.3, line 439: chatting to others' quest guardians

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.