Difference between revisions of "Wand of wonder"

From NetHackWiki
Jump to navigation Jump to search
(Based on implementation in Slash'EM Extended)
 
m (fixed Hack'EM categories (missing apostrophe for both, mismatched capitalization for the items subcategory))
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{wand
 
{{wand
 
  |name=wonder
 
  |name=wonder
  |cost=500
+
  |cost=150
 
  |type=non-directional
 
  |type=non-directional
  |maxcharges=
+
  |maxcharges=15
|abundance=
 
 
  |muse=none
 
  |muse=none
 
}}
 
}}
The '''wand of wonder''', added in [[Slash'EM Extended]] and [[SLASHTHEM]], has a randomized effect when zapped.
+
The '''wand of wonder''', added in [[SlashTHEM]], has a randomized effect when zapped.
  
 
Each time you zap a wand of wonder, one of the following events may occur, each with a 1/21 probability:
 
Each time you zap a wand of wonder, one of the following events may occur, each with a 1/21 probability:
Line 48: Line 47:
 
|}
 
|}
  
There is also a 3/7 chance of the wand having no effect. ("''Nothing happens.''")
+
There is also a 9 in 21 chance of the wand having no effect. ("''Nothing happens.''")
  
 
Every time a wand of wonder is zapped, there is a 1% chance that it will explode, [[Abuse|abusing]] [[strength]].
 
Every time a wand of wonder is zapped, there is a 1% chance that it will explode, [[Abuse|abusing]] [[strength]].
 +
 +
==SpliceHack/Hack'EM==
 +
{{wand
 +
|name=wonder
 +
|cost=100
 +
|type=immediate
 +
|maxcharges=24
 +
|muse=none
 +
}}
 +
[[SpliceHack]] brought in the wand of wonder with a different implementation than SlashTHEM. Instead of a preset list of effects, it draws on every wand available in the game. Whenever a player engraves or zaps a wand of wonder, they get a random wand's effect with a few caveats:
 +
 +
* If the effect is a [[wand of wishing]]: There is a 99/100 chance the effect is switched to a [[wand of poison gas]], otherwise you get a wish.<ref>https://github.com/NullCGT/SpliceHack/blob/8d70ade6f015c7894c171af691393327983173fe/src/zap.c#L3477</ref>
 +
* If the effect is a wand of wonder: The effect is switched to [[wand of polymorph]].
 +
* If the effect is a [[wand of nothing]]: The effect is switched to [[wand of death]].
 +
 +
Otherwise, the effect is processed as normal - all wand types -- beam, ray, or omni -- are valid.
 +
 +
The wand of wonder also stands out as having the most possible charges of any wand, it can generate with 15-24 charges!<ref>https://github.com/NullCGT/SpliceHack/blob/8d70ade6f015c7894c171af691393327983173fe/src/mkobj.c#L1120</ref>
 +
 +
Aside from it's rare generation, it can be reliably found in [[junk shop]]s in both variants.
 +
 +
==Messages==
 +
{{message|You have found a wand of wonder!|You engraved or zapped a wand of wonder.}}
  
 
==Origin==
 
==Origin==
 
The wand of wonder originally appeared in [[NetHack: The Next Generation]]. It was inspired by a similar item in the [[roguelike]] [[Angband]], which had a random effect whenever zapped, drawn from the effects of any other wand in that game.
 
The wand of wonder originally appeared in [[NetHack: The Next Generation]]. It was inspired by a similar item in the [[roguelike]] [[Angband]], which had a random effect whenever zapped, drawn from the effects of any other wand in that game.
  
==References==
+
[[Category:Wands]]
* Slash'EM Extended objects.c 2286
+
[[Category:NetHack: The Next Generation]]
* Slash'EM Extended zap.c 2960, 3172
+
[[Category:SlashTHEM]]
 
+
[[Category:SpliceHack]]
[[Category: Wands]]
+
[[Category:Hack'EM]]
[[Category: NetHack: The Next Generation]]
+
[[Category:Hack'EM items]]
[[Category: Slash'EM Extended items]]
 
[[Category: SLASHTHEM]]
 

Latest revision as of 23:03, 21 August 2023

/
Name wonder
Appearance random
Base price 150 zm
Weight 7
Type non-directional
Maximum charges 15
Monster use Will not be used by monsters.

The wand of wonder, added in SlashTHEM, has a randomized effect when zapped.

Each time you zap a wand of wonder, one of the following events may occur, each with a 1/21 probability:

1 The surrounding area is illuminated, as with a wand of light.
2 Undiscovered secret doors, mimics, and traps in the player's vicinity are revealed, as with a wand of secret door detection.
3 A monster is created, as with a wand of create monster. There is a 1/23 chance of creating 2-8 monsters.
4 6-12 monsters are generated, as with a wand of create horde.
5 "Multicolored sparks fly from the wand." There is a 0.1% chance that this will grant a wish.
6 "You feel self-knowledgeable..." Grants enlightenment, as with a wand of enlightenment. This exercises wisdom.
7 You detect monsters for 11-30 turns and exercise wisdom. If you already had 300+ turns of monster detection, the wand only adds 10 turns.
8 You detect objects on the level. This exercises wisdom.
9 You detect traps on the level. This exercises wisdom.
10 "You feel insightful!" You get to identify 1-5 items. This exercises wisdom.
11 "You feel like someone is helping you!" Each cursed item in your pack has a 20% chance of being uncursed.
12 "You feel someone is punishing you for your misbehavior!" You are punished, as with a wand of punishment.

There is also a 9 in 21 chance of the wand having no effect. ("Nothing happens.")

Every time a wand of wonder is zapped, there is a 1% chance that it will explode, abusing strength.

SpliceHack/Hack'EM

/
Name wonder
Appearance random
Base price 100 zm
Weight 7
Type immediate
Maximum charges 24
Monster use Will not be used by monsters.

SpliceHack brought in the wand of wonder with a different implementation than SlashTHEM. Instead of a preset list of effects, it draws on every wand available in the game. Whenever a player engraves or zaps a wand of wonder, they get a random wand's effect with a few caveats:

Otherwise, the effect is processed as normal - all wand types -- beam, ray, or omni -- are valid.

The wand of wonder also stands out as having the most possible charges of any wand, it can generate with 15-24 charges![2]

Aside from it's rare generation, it can be reliably found in junk shops in both variants.

Messages

You have found a wand of wonder!
You engraved or zapped a wand of wonder.

Origin

The wand of wonder originally appeared in NetHack: The Next Generation. It was inspired by a similar item in the roguelike Angband, which had a random effect whenever zapped, drawn from the effects of any other wand in that game.