NWN2Wiki
Explore
Main Page
All Pages
Community
Interactive Maps
Recent Blog Posts
Game Info
Game rules
Races
Classes
Skills
Feats
Spells
All Categories
Community
Featured users
Raelind
Mindeveler
Community portal
Wikia Gaming Hub
Gaming IRC Channel
Top Content
Newly changed
Tomb Guardian
Gilded Armor
Greater Visage of the Deity
Darkvision
Low-Light Vision
Reduce Animal
Reduce Person, Greater
most_popular
Most visited
Warlock
Swashbuckler
Crossroad Keep
Weapon Master
Ranger
Monk
Cleric
highest_ratings
NWScript functions
SetName
DisplayInputBox
SetEventHandler
GetEventHandler
StringCompare
Action functions
Alignment functions
Spells
Magical concepts
Resistance
Darkness
Invisibility
Fireball
Bard spells
Cleric spells
FANDOM
Fan Central
BETA
Games
Anime
Movies
TV
Video
Wikis
Explore Wikis
Community Central
Start a Wiki
Don't have an account?
Register
Sign In
Sign In
Register
NWN2Wiki
3,818
pages
Explore
Main Page
All Pages
Community
Interactive Maps
Recent Blog Posts
Game Info
Game rules
Races
Classes
Skills
Feats
Spells
All Categories
Community
Featured users
Raelind
Mindeveler
Community portal
Wikia Gaming Hub
Gaming IRC Channel
Top Content
Newly changed
Tomb Guardian
Gilded Armor
Greater Visage of the Deity
Darkvision
Low-Light Vision
Reduce Animal
Reduce Person, Greater
most_popular
Most visited
Warlock
Swashbuckler
Crossroad Keep
Weapon Master
Ranger
Monk
Cleric
highest_ratings
NWScript functions
SetName
DisplayInputBox
SetEventHandler
GetEventHandler
StringCompare
Action functions
Alignment functions
Spells
Magical concepts
Resistance
Darkness
Invisibility
Fireball
Bard spells
Cleric spells
Editing
Deep Slumber
Back to page
Edit
Edit source
View history
Talk (0)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{SpellInfo |icon=Is_deepslumber.png |image= |level_bard=3 |level_sorwiz=3 |level_innate=3 |school=Enchantment |descriptor=[[Compulsion]], [[Mind-affecting]] |components=VS |range=Medium |area=Huge |duration=18 seconds + 6 seconds / level |duration_type=short |save=[[Will]] negates |save_type=W |spell_resistance=Yes |hostile=Yes |empower=Yes |extend=Yes |maximize=Yes |quicken=Yes |silent=Yes |still=Yes |persist=No }} == Description == This spell functions like [[Sleep (spell)|Sleep]], except that it affects 10 HD of creatures. == Bug Notes == Many are the same as [[Sleep_(spell)]], as Obsidian simply copied the Sleep script, along with all bugs. '''Updated Bug section: Script shipped with game version 1.0.23.1765'''. Differences between script and description: The script works on 10 + d10 HD of creatures (not mentioned in the description and not in line with the d20 rules, where the spell affects 10 hd overall, no random roll), maximum HD of creature affected is 5 (which matches Sleep, but also not mentioned; should be 10 according to d20 rules). '''Line 65''': nMax should be set to 11 instead of 9 (because highest level affected is 10). This is needed for the search for the creature with the lowest HD (line 99: nCurrentHD < nLow -> here the script initially searches for any valid creature (nCurrentHD < 11), then compares it to any other affected creatures' HD by setting the nLow variable to a new value during every loop. Also, on line 99, highest level affected is set as 5 (nCurrentHD < 6), should be "nCurrentHD <= 10", because, according to the d20 rules, highest level affected is 10. However, nCurrentHD < nLow already takes care of the highest level affected (10), so this check is redundant anyway. So the final condition looks like this: <code> if(nCurrentHD < nLow //searching for lowest HD creature, initial search <11 (since 10 is max). Also sets max level affected at 10 && nCurrentHD <= nHD) // max hd affected all creatures together (20 maximised, 25 max empowered if you are lucky) </code> '''Line 66''': Error in the way Empower works (only affecting the dice roll), it should be nRoll (defined as d10() before), and have an additional initial 10 added afterwards. Empowered HD highest total: 10+ 10 + (10/2)=25: <code> int nMetaMagic = GetMetaMagicFeat(); int nRoll=d10(); //for Empower int nHD = 10+ nRoll; if (nMetaMagic == METAMAGIC_EMPOWER) { nHD = 10+ nRoll + (nRoll/2); } </code> However, if you want to bring the spell in line with the d20 rules (10 hd affected), the calculation should look like this: <code> int nHD = 10; //just 10, no additional random d10 roll nHD = ApplyMetamagicVariableMods(nHD, 20); //20 hd maximised, 15 hd empowered(instead of 25 hd max the vanilla script gives you) </code> '''Line 89''': The script explicitly excludes construct and undead racial types. These races are immune to sleep anyway, but the actual problem here is that undead and constructs are excluded from the total HD AFFECTED by the spell, so if they are within the sleep range, they do not waste any HD (basically an unintentional reduction of game difficulty). This is probably an improper interpretation of the DnD rules, which state that "Sleep does not '''target''' unconscious creatures, constructs, or undead creatures" - "target" is used in the sense of "they are immune" and not "they are not affected." In order to fix, remove the construct/undead checks. The internal game mechanics will ensure that they will ignore the sleep effect anyway. '''Line 111''': The check "if(oLowest != OBJECT_INVALID)" should use GetIsObjectValid() since this test sometimes does not work, so should be "if(GetIsObjectValid(oLowest))" '''Line 136-143''': oLowest may be invalid (see line 111) these things should be moved into the statement section that checks if oLowest is valid. '''Line 139''': Setting the LocalInt to FALSE is redundant, the DeleteLocalInt on '''line 140''' is sufficient. == NWN comparison == *This spell did not exist in NWN. == External resources == *[http://www.d20srd.org/srd/spells/deepslumber.htm d20 SRD Deep Slumber]
Summary:
Please note that all contributions to the NWN2Wiki are considered to be released under the CC-BY-SA
Cancel
Editing help
(opens in new window)
Template used on this page:
Template:SpellInfo
(
view source
)
Follow on IG
TikTok
Join Fan Lab