7

Intelligent monsters in NetHack will typically use any carried attack wands instead of their melee attacks, even if the wand is weak and their melee attack is instadeath. Is there a good way to exploit this behavior by giving extremely dangerous monsters spare wands of magic missile?

Throwing the wand doesn't seem to work, as they just ignore the item that's now on their square. Dropping it on the floor and walking away sometimes works, but not other times, and I don't know what affects this. I also don't know if they would ever seek out wands on the floor, or if I have to get lucky with their natural movement and hope they walk over the item while chasing me.

I'm mostly asking about the endgame riders, if there's any special behavior involving them. The Wizard of Yendor would also be a good candidate, but I think his covetous nature would make giving him a wand too difficult. I'm also not positive it takes priority over spellcasting, which is the real danger for him.

1 Answer 1

6

According to the NetHack wiki, intelligent monsters should pick up and use charged attack wands. I just tested this in wizmode and it does work with the riders too.

Screenshot of the Astral Plane level in NetHack. Text at the top reads: "Famine zaps a wand of striking! The wand misses you. You hear a crashing sound."

However, there are a couple of practical limitations to using this method to deal with the riders. One is that the priests and the angels on the Astral Plane level also love to pick up wands, and will often grab them before the riders do.

In fact, whereas the riders seem to ignore wands unless they just happen to step on them on their way to the player, priests and angels (and presumably other intelligent monsters) will actively seek them out within a radius of up to sqrt(5) blocks (i.e. up to a chess knight's move away), moving towards the wand as long as it's closer to them than the player is (and as long as they're not lined up with the player, as described below).

The other problem is that there's a deliberate check in the source code* that stops monsters from picking up items if they're "in combat", which basically means either adjacent to you or lined up orthogonally or diagonally so that they could throw something at you.** (It doesn't check whether the monster has something they could throw, just whether they could hit you if they did.)

Since the Astral Plane tends to be quite crowded, and since the riders normally charge straight at you (and will even displace other monsters to do so), it's quite hard to maneuver them into a position where they'll actually choose to stop and pick up items rather than attack you, at least not without clearing the area of all other enemies first. And if you can do that reliably, you can probably just run to the altar and ascend anyway.


*) I'm pretty sure that this is a new thing in NetHack 3.6. I remember that in earlier versions you could quite easily get monsters stuck in a loop where you'd e.g. throw a dagger at the monster and it would spend its next turn picking up the dagger you just threw, letting you throw another dagger on your own turn and so on, until the monster died with half a dozen daggers in its inventory. The "in line" check was presumably added to prevent that from happening; the fact that it also makes it harder to trick monsters into picking up wands is probably just an unintentional side effect.

**) Based on wizmode testing, it seems that this check is applied before movement, so that it's possible for a monster that's not currently lined up with you to move into your line of fire and pick up an item there. But a monster that's currently lined up with you will ignore any items on the ground, whether the item is lined up with you or not.

4
  • "Monsters won't pick up items if they're lined up with you" is exactly the kind of thing I was looking for. I'm aware of the practical considerations of actually trying this on the astral plane, but anything that encourages the riders to not melee attack me is a good thing. Throwing at them won't work, but perhaps I could throw at someone in front of them and then move out of orthogonal range. Do you have any idea if they (or a priest) will actively pathfind toward a dropped wand, or do I just need to get lucky with their movement?
    – qazmlpok
    Commented Feb 8, 2022 at 22:55
  • 1
    @qazmlpok: Reading the code below the part I linked, it looks like monsters will indeed pathfind to an item they would like to pick up, but only if 1) it's at most a chess knight's move (i.e. one orthogonal plus one diagonal step) away from them, 2) it's closer than the player, and 3) they're not lined up with the player as described above. Commented Feb 9, 2022 at 7:44
  • 1
    @qazmlpok: BTW, I did some more wizmode testing, and while the Astral priests and angels do indeed path to wands under the conditions I listed above, the riders seem to ignore them unless they happen to step on them. Maybe rider pathfinding is special somehow? Commented Feb 9, 2022 at 15:58
  • Just did the same. If they do walk over a wand they'll pick it up, but they ignored items on the ground otherwise. Most annoyingly, they ignore an item on their square when they revive, which was one of the tricks I was hoping to do.
    – qazmlpok
    Commented Feb 9, 2022 at 22:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.