NetHack Patch Database v0.27

323 patches

Conduct: Elbereth count

NameConduct: Elbereth count 1
Rating92%
AuthorRay Kulhanek
ForNetHack 3.4.3
DescriptionAdds the number of times you've engraved Elbereth to #conducts
 This patch adds a conduct that counts the number of times you engraved Elbereth. To avoid acting as a spoiler, "You never engraved Elbereth" isn't displayed unless you're in wizard mode, but once you've engraved it at least once it'll display normally in both #conduct and the end of game messages. Engraving Elbereth over multiple turns (e.g. Elb, ereth) adds to the count, but you can use existing Elbereth squares like the one in Sokoban without incrementing the counter. Likewise any Elbereth squares created by zapping or engraving with a wand of polymorph don't count.
DownloadGet it from us (3.8 Kb)
AddedDecember 28, 2009 05:25
Submit an update to this patch

6 Comments

5KiloByteMay 14, 2015 04:10
The cheat code needs to be removed, but tracking its use as a conduct is a step in the right direction.[Quote]
5John H.May 16, 2010 05:32
One of the most glaring conduct omissions, fixed at last.[Quote]
 Ray KulhanekFebruary 24, 2010 21:43
(continued...)
I don't count E squares generated by polymorph for a similar reason: technically, it's still usable, but the odds are so low that you can't depend on it, and I didn't want to make polymorphless a requirement for Elberethless.

I might try incorporating my E code into the other conduct patch if I have time, but am a bit busy right now.

p += 8 is actually right. nengr_at is only called once, and "Elbereth" is its `s` parameter. I should have made "Elbereth" a constant in that function instead of a parameter, and given the function a better name to make it more clear what it does, but the code works fine.

I don't see the redundancy you mentioned; where are you referring?[Quote]
 Ray KulhanekFebruary 24, 2010 21:40
The reason I didn't count uses of an Elbereth square you didn't create is that is because it's too easy to break it without intending to and without benefiting at all. e.g. What if you leave an item on the Sokoban E and a monster in the zoo refuses to step on the square? It's possible to keep the conduct, but it's an annoyance; I wanted the conduct to be broken when the player *decides* to use Elbereth, not when the player forgets to move a dart. It is of course possible for the player to deliberately use one of the guaranteed E squares, but neither is positioned in a place where they would be tactically useful (you need to fight your way *to* both of them, and they're both in dead-end rooms that you can just lock the door to if you need to heal.) So they become limited use resources instead of something that can be easily overused.[Quote]
4JafetJanuary 23, 2010 15:31
Note that there is already a patch that attempts to track Elbereth: http://bilious.alt.org/?119. It doesn't work, though. Perhaps these patches could be merged.

Tracking Elbereth as it's being written is a nice idea, but I think that uses of Elbereth squares to scare monsters should also count against the conduct.

PS: "p += 8;" should be "p += strlen(s);". There is also a redundant section in the patch.[Quote]
 Ray KulhanekDecember 28, 2009 21:25
Addendum: It also doesn't count engraving on a gravestone against the conduct, since that doesn't scare monsters.[Quote]

Add a comment

Name ()required
Rating (0 is worst, 5 is best) 
Commentrequired
You can use up to 1024 characters.
Only supported tag is [url]clickable_link[/url].

You will need to answer the following question correctly: What symbol represents a weapon?