Difference between revisions of "Talk:Scroll of light"

From NetHackWiki
Jump to navigation Jump to search
(Scroll behaviour in 3.6.0)
(Confused scroll of light and polymorph magic: new section)
Line 14: Line 14:
 
--[[User:Nethacker|Nethacker]] ([[User talk:Nethacker|talk]]) 08:25, 4 July 2016 (UTC)
 
--[[User:Nethacker|Nethacker]] ([[User talk:Nethacker|talk]]) 08:25, 4 July 2016 (UTC)
 
Changed: --[[User:Nethacker|Nethacker]] ([[User talk:Nethacker|talk]]) 08:31, 4 July 2016 (UTC)
 
Changed: --[[User:Nethacker|Nethacker]] ([[User talk:Nethacker|talk]]) 08:31, 4 July 2016 (UTC)
 +
 +
== Confused scroll of light and polymorph magic ==
 +
 +
Now that a scroll of light creates pets if read while confused (in [[NetHack 3.7]]), how about zapping them with a [[wand of polymorph]] or leading them onto a [[polymorph trap]]? This sounds like a risky, but potentially quite powerful tactic.  - [[User:Andrio Celos|Andrio Celos]] ([[User talk:Andrio Celos|talk]]) 06:15, 9 April 2020 (UTC)

Revision as of 06:15, 9 April 2020

Scroll behaviour in 3.6.0

The source is:

   if (!confused || rn2(5)) {
       // generate light or dark field
       // darkness is generated if the scroll is cursed or the player is confused  
   } else {
       // generate yellow or black light
   }

If the player is confused, !confused is always false, while rn2(5) has 80% chance to be true, therefore there is 20% chance to generate a monster. If the player is not confused, !confused is always true, so the scroll never generates a monster.

--Nethacker (talk) 08:25, 4 July 2016 (UTC) Changed: --Nethacker (talk) 08:31, 4 July 2016 (UTC)

Confused scroll of light and polymorph magic

Now that a scroll of light creates pets if read while confused (in NetHack 3.7), how about zapping them with a wand of polymorph or leading them onto a polymorph trap? This sounds like a risky, but potentially quite powerful tactic. - Andrio Celos (talk) 06:15, 9 April 2020 (UTC)