Evard's Black Tentacles

Spell Description
Caster Level(s) Wizard/Sorcerer 4
Innate Level 4
School Conjuration
Descriptor(s) Summon
Component(s) Verbal, Somatic
Range Medium
Area of Effect / Target Large, 1d4 Tentacles
Duration 1 Round / Level
Save Fortitude Special
Spell Resistance No
Additional Counterspell(s) None
Dispel Yes
Description A field of thick, rubbery tentacles rises from the ground. For every round that a creature is caught within the area of effect, it suffers attack from 1d4 tentacles, each capable of doing 1d6+4 points bludgeoning damage. The tentacles counts as magic weapon +2 against damage reduction. If any tentacle attack hits, that target must then make a Fortitude saving throw or become paralyzed for one round.

Spell Scripts
Main nw_s0_evards
AoE OnEnter nw_s0_evardsa
AoE Heartbeat nw_s0_evardsc

Changes/Updates for Thain
Script Change Custom GetCasterLevel function
Before Get the level of the casterclass used or item property
After Get the level of the casterclass used or item property, pluss any modifiers (Palemaster++)
Script Change Custom GetSpellSaveDC
Before Returns Save DC of spell: 10 + Spell Level + Spell Focus
After Same as before, just a wrapper to easy add alternate DC for items and maybe more later
Script Change Dispel of AoE changed to fit description of dispel
Before Base Chance: Lesser - 25%, Dispel - 50%, Greater -75%, Mordenkainens - 100 %.
Chance modified by caster level: Base Chance + ( CLevel + CMod ) - ( 10 + CMod ) * 2
NPC caster: Modified chance + 30
Caster of spell that is being atempted to dispel: Chance = 100%
DM trying to dispel: Chance = 100%
After Dispel Roll: d20 + CLevel. Where CLevel is capped: Lesser - 5, Dispel - 10, Greater - 15, Mordenkainens - No cap
Dispel DC: 11 + CLevel of caster of spell
Script Change Altered tentacle attack
Before Attack roll needed to be better than targets AC
After Tentacles also hits on a natural 20
Description Change Updated Area of Effect / Target to match bioware standard script
Before Large, 1d4 + 1 / Level Tentacles
After Large, 1d4 Tentacles
Bugfix Changed duration of spell to match spell description
Before 1 Round / 2 Levels
After 1 Round / Level
Bugfix Fixed effect of maximizing spell
Before Damage set to 6 if maximized, number of tentacles not maximized
After Number of tentacles mazimized to 4, Damage set to 4 * 10 = 40
Bugfix Fixed spell damage to match spell description
Before 1d6
After 1d6+4
Bugfix Fixed AC of target in spell
Before AC always = 0
After AC fetched from target

Concept: Ankh_Phoenix and Aremah, Code: Ankh_Phoenix