Talk:Trap

From NetHackWiki
Revision as of 15:59, 31 July 2015 by Train (talk | contribs) (Teleportation traps and level teleporters)
Jump to navigation Jump to search

Blah. Adding the symbols to the section header looks ok, _except_ i guess now it needs to be referenced like "Trap#Trapname (^)" which sort of sucks. --Paxed 14:01, 16 August 2006 (UTC)paxed

Missing rust trap! --Paxed 23:59, 14 October 2006 (UTC)

Is it true that it is easier to escape a bear trap if you move diagonally?

Yes, I have escaped bear traps in 5-6 when attempting to move diagonally when trying to move normally it takes a 10-15 or so turns. - - DemonSlayerThe3 :: The Neutral Gnomish Wizard, with my kitten Ellinis! 19:14, May 7, 2010 (UTC)

re: bear traps

I couldn't find anything in the source code about an alignment penalty for using a bear trap (unless you displace or kill your pet with one), and in my testing I never saw any message of guilt for my lawful samurai using one (although I did not test with a knight). I removed that and added some info about audio messages. MysterX 07:13, 14 January 2008 (UTC)

Other trap messages

Such as "The <monster> seems disoriented" belong where?

That may belong in the magic trap as it states there that effects vary thus the messages should as well. I'd have to check it out though. - - DemonSlayerThe3 :: The Neutral Gnomish Wizard, with my kitten Ellinis! 19:14, May 7, 2010 (UTC)
Isn't that what you get when a monster hits a teleportation trap and reappears in your sight? I'm not sure whether the trap has to be within your sight too. --Slandor 21:50, June 18, 2010 (UTC)

Trap Doors and Multiple Downstairs

Can anyone confirm the behavior of trap doors on levels with multiple downstairs? Or for that matter, quaffing a cursed potion of gain level on levels with multiple upstairs.

Yidda 03:02, 23 November 2008 (UTC)

Quaffing a cursed potion of gain level moves you up only 1 level. But I believe it is random as to which upstairs level it takes you to for multiple upstairs. Same for the trap door on multiple downstairs but sometimes it won't drop you only 1 level down. - - DemonSlayerThe3 :: The Neutral Gnomish Wizard, with my kitten Ellinis! 19:14, May 7, 2010 (UTC)
I'm much more inclined to think that you would stay within your current dungeon branch in either case, i.e. you would always go from Dungeon:7 to Dungeon:8 or Dungeon:6, never from Dungeon:7 to Sokoban:1 or Dungeon:3 to Mines:1. Perhaps somebody could check this in the source code, but I can't ever recall falling into a different dungeon branch. The one exception to this is of course going from the Castle to Gehennom, but those traps always take you to the Valley of the Dead, never anywhere else. -Ion frigate 01:48, May 8, 2010 (UTC)

On the gnomish mines level, I have never fallen into the mines (but often toward Sokoban). Therefore, I guess you always stay in the same dungeon branch. --Tjr 20:23, 6 February 2009 (UTC)

Fire traps

In SLASH'EM you can untrap fire traps with a potion of water. It leaves 1-4 potions of oil behind and gives the message "You manage to extinguish the pilot light!" Not sure if this holds in vanilla. Ih fek 04:40, 5 May 2009 (UTC)

Wow, cool find. This seems like it would be rather easy to exploit, given the copious amount of fire traps in the game, even with SLASH'EM's shortened Gehennom. You could get a large supply of holy water or polyfodder to alchmeize, and make an oil lamp pretty much last forever. -Ion frigate 01:45, May 8, 2010 (UTC)

Random Generation Above Lvl. 5

The magic trap says it does not randomly generate above level 5, I disagree because I have seen them generate in the Gnomish mines, and in the main dungeon in maybe lvl. 4 or 3. Unless I am mistaken, I'll try to get a screenshot. - - DemonSlayerThe3 :: The Neutral Gnomish Wizard, with my kitten Ellinis! 19:14, May 7, 2010 (UTC)

I don't see that in the article, and I have definitely seen magic traps quite early on, as early as level 1. It is worth noting that bones files can violate the "not generated above level X" rules, particularly in the case of the Mines or the Oracle, as well as SLASH'EM's various special levels. This happens when it was originally generated at or below the required level, but the bones file ends up being placed above it. -Ion frigate 01:42, May 8, 2010 (UTC)

Using traps against monsters

Got that peaceful unicorn, and i NEED a horn. if i activate the rolling boulder trap that allows me to hit her, will it count as if i killed her?Newtkiller 14:02, June 18, 2010 (UTC)

Yes if the trap is displayed by the game. Tjr 14:44, June 18, 2010 (UTC)

Level teleporters and MR

Pets with MR are not protected against levelporting. Neither trap.c, line 1991 (trap handling code for monsters) or teleport.c, line 1092 (function for actually changing the level) make any reference to magic resistance, and testing in wizard mode with a gray dragon confirmed that magic resistance does not protect monsters. I'm going to make edits where I know they're needed, but I've seen this incorrect statement made in plenty of places on this wiki so I might miss some. -- Qazmlpok 02:04, 2 March 2011 (UTC)

Just now level teleporter failed to teleport me and vanished. I guess, thats because of my MR, I wear elven cloak: "You step onto a level teleport trap! You are momentarily blinded by a flash of light. You shudder for a moment. You see no objects here." So I changed the entry. Level teleporters vanish even if failed to teleport player. --95.220.148.133 19:12, 8 November 2011 (UTC)

MC is not the same as MR. MC provides no protection against levelporters. There's simply a random chance that you will be teleported to the level you're already on. teleport.c, line 682 shows this, including the 'shudder' message: If you randomly pick the current level, print "You shudder for a moment". This still deactivates the trap, because it did teleport you; you just didn't move. -- Qazmlpok 20:28, 8 November 2011 (UTC)

fire traps outside gehennom

Somebody wrote fire traps can be generated in "the random maze areas outside the Castle,". I believe this is wrong because of:

  • playing experience,
  • a few wizmode runs,
  • source diving.

Traps are only ever generated by writing to "ttyp" or by calling maketrap, in turn called by mktrap or load_maze. Note mktrap only makes fire traps in Gehennom (mklev.c, line 1234) or when explicitly told so.

Edit: load_maze can indeed make a fire trap via rndtrap. A third code path is load_special => load_rooms => build_room => create_trap => mktrap, which seems to be used only for special levels with predefined semi-random traps. --Tjr 22:18, 19 June 2011 (UTC)

Teleportation traps and level teleporters

Quantum Immortal, if you have magic resistance and are standing on a teleportation trap, you may press ctrl + t to activate the trap. The same is not true of level teleporters, which is probably an oversight. It's hard to wiz-test because wizards have intrinsic teleportation powers, but my experience confirms.__Train (talk) 18:25, 25 July 2015 (UTC)

You should have clarified this kind of obscure behavior in the article.--Quantum Immortal (talk) 05:27, 26 July 2015 (UTC)
It already was, though. The section on teleportation traps clearly stated, and continues to state, that "[i]f you want to use the teleporter (e. g. a vault teleporter) and you cannot teleport intrinsically, you may use ctrl + t to take the teleporter despite magic resistance". I presumed that was also true of level teleporters, but found that it wasn't, so I pointed that out. Precisely what "obscure behavior" did you want further clarified?__Train (talk) 09:21, 26 July 2015 (UTC)
That you can use the teleporter with the command, even if you have MR. I don't find it obvious, that the command can override MR and use the magic of the teleporter. It is very nice that it sais that, but a lot of people (me included) didn't read that part. And why should they read it, if they think they alredy know how teleporters work?--Quantum Immortal (talk) 19:40, 26 July 2015 (UTC)
I may be a little slow this evening, but your comment doesn't seem to make sense. It is certainly true that some would neglect to read Trap#.5E_Teleportation_trap, but the same logic applies to Trap#.5E_Level_teleporter. As editor, all I can do is write articles, and if someone outright refuses to read them, then there's nothing you or I can do about it. Each trap has a designated section in which its behavior and mechanisms are described, and describing one's latter on another's former, as you have done, seems like pointless info duplication to me; in the logical extreme, this would mean creating articles for each trap and documenting every trap on each article. If someone are reading about one trap and wish to know about another, they can scroll up to the TOC and choose it from there.__Train (talk) 16:28, 27 July 2015 (UTC)
Pffff. That's an over extrapolation. You are very detail oriented person, most people aren't. This can provoke confusion about what is implied but not explicitly written. Most people aren't like that, they make generalizations and guesses. The edit is helpful for most readers, not just the detailed oriented. Are you really making all this fuss over one phrase?--Quantum Immortal (talk) 21:31, 27 July 2015 (UTC)
I take offense at your characterisation, which I find to be bordering the accusative -- on what basis do you make this claim, and, for that matter, the claim that "a lot of people (...) didn't read [the section on teleportation traps]"? no, wait, don't answer that, I don't care -- but not enough to pursue the matter. Further, I have not made any "fuss"; in case I wasn't clear, I don't care one whit about your edit; I just don't find it necessary, nor do I agree that it was my "duty" or whatever to write it myself.__Train (talk) 15:59, 31 July 2015 (UTC)