Difference between revisions of "FIQHack/Monster spellcasting"

From NetHackWiki
Jump to navigation Jump to search
(A shield info)
m (It might generally be wiser to edit the whole page and do it all in one pass)
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
In FIQHack, instead of having their own dedicated spellcast list, monster spellcasting instead use the same spellcasting rules as the player. Monsters have energy (Pw), just like players do. They gain or lose Pw as they level up, in an approximation of the player formula:
+
In [[FIQHack]], instead of having their own dedicated [[monster spell]] lists, monster spellcasting instead use the same spellcasting rules as the player.
  
* Start with a minimum: 0 for dwarves, 2 for nymphs, humans, gnomes or dedicated casters, 3 for elves and dragons, 1 for everyone else
+
==Description==
* Add a random number between 0 and Wisdom/2 + 1 (+ 1 for dedicated casters)
+
Monsters have energy (Pw), just like players do. They gain or lose Pw as they level up, in an approximation of the player formula:
** Base wisdom before helm of brilliance is 20 for Wizard of Yendor, 18 for dedicated casters, 11 otherwise
 
* Multiply the result by 1/2 for mindless creatures, 3/4 for Barbarians, Valkyries or animals, 3/2 for healers and knights, 2 for Priests, Wizards or dedicated casters, 5/2 for Wizard of Yendor
 
  
Spellcast failure uses [[Spellcasting#Calculating_spell_success_rate|the vanilla formula]] with these values:
+
* Start with a minimum: 0 for dwarves; 2 for nymphs, humans, gnomes, and dedicated casters (see below); 3 for elves and dragons; or 1 for everyone else.
 +
* Add a random number between 0 and Wisdom/2 + 1 (+ 1 for dedicated casters).
 +
** Monster Wisdom - before any helm of brilliance's effects - is 20 for the Wizard of Yendor, 18 for dedicated casters, and 11 otherwise.
 +
* Multiply the result by: 1/2 for mindless creatures; 3/4 for Barbarians, Valkyries, and animals; 3/2 for healers and knights; 2 for Priests, Wizards, and dedicated casters; or 5/2 for the Wizard of Yendor.
 +
 
 +
Spellcasting failure chances use [[Spellcasting#Calculating_spell_success_rate|the vanilla formula]] with these values:
  
 
  Who                Base  Emergency  Shield  Suit  Stat
 
  Who                Base  Emergency  Shield  Suit  Stat
Line 14: Line 17:
 
   everyone else        8          -1        1    10    Int
 
   everyone else        8          -1        1    10    Int
  
Monsters always use their intelligence with casting (whose base rate before helms of brilliance is always 20 for Wizard of Yendor, 18 for dedicated casters, 11 for everyone else). In addition, monsters represented by an A doesn't get the cast penalty from casting using a large shield.
+
Monsters always use their intelligence with casting (their Intelligence - before any helm of brilliance's effects - is always 20 for the Wizard of Yendor, 18 for dedicated casters, or 11 for everyone else). In addition, monsters represented by an [[A]] don't get the normal penalty to casting from using a large shield.
  
Whenever a monster is generated, it is assigned a list of spells. This is done by rolling a spell with equal probability for each of them, potentially rolling the same spell more than once, a certain amount of times: 10 + rn2(XL+5) for dedicated casters, rn2(XL/3) for everyone else. This spell is then added to the monster's spell roster with a probability of (2 + Spell level + Skill level) / 6. Skill level is 0 (unskilled), 1 (basic), 2 (skilled), 3 (expert). In addition, monsters with at least Basic skill in attack spells are guranteed force bolt.
+
Whenever a monster is generated, it is assigned a list of spells. This is done by selecting among the spells with equal probability for each of them - potentially rolling the same spell more than once - a certain number of times: 10 + rn2(XL+5) for dedicated casters, rn2(XL/3) for everyone else. This spell is then added to the monster's spell roster with a probability of (2 + Spell level + Skill level) / 6. Skill level is 0 (unskilled), 1 (basic), 2 (skilled), or 3 (expert). In addition, monsters with at least Basic skill in attack spells are guaranteed [[force bolt]].
  
 
Some monsters, mainly uniques, but also some additional ones, are generated with a fixed spell list. Those are listed below.
 
Some monsters, mainly uniques, but also some additional ones, are generated with a fixed spell list. Those are listed below.
  
 
== Dedicated casters ==
 
== Dedicated casters ==
FIQHack has a flag for monsters that count as "dedicated casters". Those mostly (but not quite) align with monsters that could spellcast in vanilla. In FIQHack, any non-mindless non-animal monster can cast spells if they acquired it, either on generation, or by reading books, but these monsters can generally do so more realibly:
+
FIQHack has a flag for monsters that count as "dedicated casters". Those mostly (but not quite) align with monsters that could spellcast in vanilla. In FIQHack, any non-mindless non-animal monster can cast spells if they acquire them, either on generation or by reading books, but these monsters can generally do so more reliably:
  
 
* kobold shaman
 
* kobold shaman
Line 97: Line 100:
  
 
=== High priests ===
 
=== High priests ===
In addition to aligned priests, these also get a few arcane spells
+
In addition to the spells of aligned priests, they also get a few arcane spells.
 
* Healing
 
* Healing
 
* Identify
 
* Identify
Line 110: Line 113:
 
* Haste self
 
* Haste self
 
* Invisibility
 
* Invisibility
High priests also include Grand Master and Arch Priest
+
High priests also include the Grand Master and Arch Priest.
  
 
=== Angels ===
 
=== Angels ===
Line 122: Line 125:
  
 
=== Orcus ===
 
=== Orcus ===
Orcus mostly have utility spells in couple with his other attacks, and can charge his wand of death
+
Orcus mostly has utility spells to couple with his other attacks, and can charge his wand of death.
 
* Drain life
 
* Drain life
 
* Healing
 
* Healing
Line 133: Line 136:
  
 
=== Dispater ===
 
=== Dispater ===
Mainly a spellcaster and have both offensive, defensive and utility spells
+
Mainly a spellcaster; has offensive, defensive, and utility spells.
 
* Force bolt
 
* Force bolt
 
* Drain life
 
* Drain life
Line 154: Line 157:
  
 
=== Demogorgon ===
 
=== Demogorgon ===
Primarly an attacker, but has a few spells to aid his attacks and to heal himself
+
Primarily an attacker, but has a few spells to aid his attacks and to heal himself.
 
* Extra healing
 
* Extra healing
 
* Slow monster
 
* Slow monster
Line 161: Line 164:
  
 
=== Minion of Huhetotl ===
 
=== Minion of Huhetotl ===
Primarly an attacker, but has buff spells and can incapacitate their foes with sleep
+
Primarily an attacker, but has buffing spells and can incapacitate his foes with sleep.
 
* Healing
 
* Healing
 
* Sleep
 
* Sleep
Line 168: Line 171:
  
 
=== Thoth Amon/Dark One ===
 
=== Thoth Amon/Dark One ===
Both share the same list. Being primarly spellcasters, they have a wide list of spells
+
Both share the same list. Being primarily spellcasters, they have a wide list of spells.
 
* Force bolt
 
* Force bolt
 
* Magic missile
 
* Magic missile
Line 185: Line 188:
  
 
=== Chromatic Dragon ===
 
=== Chromatic Dragon ===
A dragon. Learned a few spells to improve its fighting speed and slowing their foes, and to heal
+
A dragon. Learned a few spells to improve its fighting speed, slow its foes, and heal itself.
 
* Healing
 
* Healing
 
* Slow monster
 
* Slow monster
Line 197: Line 200:
  
 
=== Master Kaen ===
 
=== Master Kaen ===
Aside from being an excellent fighter, Kaen mastered spells to speed himself up, and to find and destroy those who tries to flee
+
Aside from being an excellent fighter, Kaen has mastered spells to speed himself up, heal himself, and catch those who try to flee.
 
* Healing
 
* Healing
 
* Detect monsters
 
* Detect monsters
Line 211: Line 214:
  
 
=== Wizard of Yendor ===
 
=== Wizard of Yendor ===
The Wizard of Yendor is, similarly to other general spellcasters, generated with a random list of spells. However, he has one guranteed spell.
+
The Wizard of Yendor is, similarly to other general spellcasters, generated with a random list of spells each game. However, he has one guaranteed spell:
 
* Double Trouble
 
* Double Trouble
 +
 +
[[Category:FIQHack]]

Latest revision as of 00:16, 5 April 2021

In FIQHack, instead of having their own dedicated monster spell lists, monster spellcasting instead use the same spellcasting rules as the player.

Description

Monsters have energy (Pw), just like players do. They gain or lose Pw as they level up, in an approximation of the player formula:

  • Start with a minimum: 0 for dwarves; 2 for nymphs, humans, gnomes, and dedicated casters (see below); 3 for elves and dragons; or 1 for everyone else.
  • Add a random number between 0 and Wisdom/2 + 1 (+ 1 for dedicated casters).
    • Monster Wisdom - before any helm of brilliance's effects - is 20 for the Wizard of Yendor, 18 for dedicated casters, and 11 otherwise.
  • Multiply the result by: 1/2 for mindless creatures; 3/4 for Barbarians, Valkyries, and animals; 3/2 for healers and knights; 2 for Priests, Wizards, and dedicated casters; or 5/2 for the Wizard of Yendor.

Spellcasting failure chances use the vanilla formula with these values:

Who                 Base   Emergency   Shield   Suit   Stat
 Wizard of Yendor      1          -3        1     10    Int
 nurses                8          -3        1     10    Int
 dedicated casters     3          -1        1     10    Int
 everyone else         8          -1        1     10    Int

Monsters always use their intelligence with casting (their Intelligence - before any helm of brilliance's effects - is always 20 for the Wizard of Yendor, 18 for dedicated casters, or 11 for everyone else). In addition, monsters represented by an A don't get the normal penalty to casting from using a large shield.

Whenever a monster is generated, it is assigned a list of spells. This is done by selecting among the spells with equal probability for each of them - potentially rolling the same spell more than once - a certain number of times: 10 + rn2(XL+5) for dedicated casters, rn2(XL/3) for everyone else. This spell is then added to the monster's spell roster with a probability of (2 + Spell level + Skill level) / 6. Skill level is 0 (unskilled), 1 (basic), 2 (skilled), or 3 (expert). In addition, monsters with at least Basic skill in attack spells are guaranteed force bolt.

Some monsters, mainly uniques, but also some additional ones, are generated with a fixed spell list. Those are listed below.

Dedicated casters

FIQHack has a flag for monsters that count as "dedicated casters". Those mostly (but not quite) align with monsters that could spellcast in vanilla. In FIQHack, any non-mindless non-animal monster can cast spells if they acquire them, either on generation or by reading books, but these monsters can generally do so more reliably:

  • kobold shaman
  • orc shaman
  • ki-rin
  • Archon
  • gnomish wizard
  • titan
  • lich
  • demilich
  • master lich
  • arch-lich
  • golden naga
  • barrow wight
  • aligned priest(ess)
  • high priest(ess)
  • Wizard of Yendor
  • nalfeshnee
  • Yeenoghu
  • Orcus
  • Dispater
  • Asmodeus
  • Demogorgon
  • monk
  • priest(ess)
  • wizard
  • Grand Master
  • Arch Priest
  • Neferet the Green
  • Minion of Huhetotl
  • Thoth Amon
  • Chromatic Dragon
  • Ixoth
  • Master Kaen
  • Nalzok
  • Dark One
  • abbot
  • acolyte
  • guide
  • apprentice

Monster spell lists

Minotaurs

  • Dig (20% of the time)

Nazgul

  • Slow monster
  • Sleep

Barrow wights

  • Sleep

Nurses

In 4.3.0, nurses used the normal monster spell generation. After 4.3.0, this was changed, and they now have these spells.

  • Healing
  • Extra healing

Shopkeepers

  • Force bolt (2/3 of the time)
  • Magic missile (if they didn't get force bolt)
  • Identify
  • Knock

Aligned priests

  • Healing
  • Identify
  • Confuse monster (3/4 of the time)
  • Slow monster (if they didn't get confuse monster)
  • Protection
  • Create monster
  • Remove curse
  • Create familiar
  • Turn undead

High priests

In addition to the spells of aligned priests, they also get a few arcane spells.

  • Healing
  • Identify
  • Confuse monster (3/4 of the time)
  • Slow monster (if they didn't get confuse monster)
  • Protection
  • Create monster
  • Remove curse
  • Create familiar
  • Turn undead
  • Summon nasties
  • Haste self
  • Invisibility

High priests also include the Grand Master and Arch Priest.

Angels

  • Magic missile

Yeenoghu

  • Magic missile

Asmodeus

  • Cone of cold

Orcus

Orcus mostly has utility spells to couple with his other attacks, and can charge his wand of death.

  • Drain life
  • Healing
  • Detect monsters
  • Slow monster
  • Charging
  • Create monster
  • Turn undead
  • Summon nasties

Dispater

Mainly a spellcaster; has offensive, defensive, and utility spells.

  • Force bolt
  • Drain life
  • Magic missile
  • Healing
  • Extra healing
  • Cure sickness
  • Stone to flesh
  • Sleep
  • Protection
  • Create monster
  • Jumping
  • Haste self
  • Invisibility
  • Teleport away
  • Phase
  • Dig
  • Cancellation
  • Polymorph

Demogorgon

Primarily an attacker, but has a few spells to aid his attacks and to heal himself.

  • Extra healing
  • Slow monster
  • Create monster
  • Haste self

Minion of Huhetotl

Primarily an attacker, but has buffing spells and can incapacitate his foes with sleep.

  • Healing
  • Sleep
  • Protection
  • Invisibility

Thoth Amon/Dark One

Both share the same list. Being primarily spellcasters, they have a wide list of spells.

  • Force bolt
  • Magic missile
  • Fireball
  • Cone of cold
  • Healing
  • Detect monsters
  • Sleep
  • Slow monster
  • Protection
  • Turn undead
  • Summon nasties
  • Haste self
  • Invisibility
  • Cancellation

Chromatic Dragon

A dragon. Learned a few spells to improve its fighting speed, slow its foes, and heal itself.

  • Healing
  • Slow monster
  • Haste self

Ixoth

  • Detect monsters
  • Protection
  • Summon nasties
  • Haste self

Master Kaen

Aside from being an excellent fighter, Kaen has mastered spells to speed himself up, heal himself, and catch those who try to flee.

  • Healing
  • Detect monsters
  • Slow monster
  • Haste self
  • Phase

Nalzok

  • Healing
  • Protection
  • Haste self
  • Phase

Wizard of Yendor

The Wizard of Yendor is, similarly to other general spellcasters, generated with a random list of spells each game. However, he has one guaranteed spell:

  • Double Trouble