Which scrolls will monsters read

nethack

I just got the message

You hear a leprechaun reading a scroll labeled FOOBIE BLETCH.

I know that monsters can read scrolls of create monster (which I've identified) and teleportation (which I haven't).

Is it safe to assume that this was a scroll of teleportation (it's a leprechaun hall, so I can't tell whether one of them teleported with telepathy since several have already used their innate teleportation ability)? Or are there other scrolls that monsters will read?

In short, I'm looking for a list of scrolls that monsters can read. I'm almost positive I've seen a list like this before, but the wiki pages for scroll, monster, and read don't mention anything about monster use.

Best Answer

Monsters can read scrolls of teleportation, create monster and earth. The source includes code to allow monsters to read scrolls of fire, but it's not compiled into the game executable (it's enclosed in #if 0).

The relevant source code is in muse.c at line 222 and line 943. The #defines relating to scrolls (which constitute a complete list of the scrolls possibly used by monsters) are

#define MUSE_SCR_TELEPORTATION 1
#define MUSE_SCR_CREATE_MONSTER 11

#define MUSE_SCR_FIRE 8
#define MUSE_SCR_EARTH 17

which are referenced from the find_defensive, use_defensive, find_offensive and use_offensive functions in the same file.