Gaming
 

Banishment

From NWN2Wiki

Banishment
Spell Information
Spell level : Innate level: 6, Cleric: 6, Sorcerer/Wizard: 7
School : Abjuration
Components : Verbal and Somatic
Range : Personal
Target/Area : Colossal
Duration : Instantaneous
Save : Will negates
Spell resistance : Yes




[edit] Description

This spell destroys summoned creatures, familiars, animal companions, and outsiders in the area of effect. You can affect up to twice your level in HD worth of creatures.

[edit] Bug Notes

Line 52: nPool > 0 check should be in here moved from line 69's if check.

Line 69: There is some odd broken logic here. The nPool > 0 check should be on line 52 in the while() statement, and all the conditions in the if statement should be else only, no ands, so:

if(GetAssociate(ASSOCIATE_TYPE_SUMMONED, oMaster) == oTarget ||
   GetAssociate(ASSOCIATE_TYPE_FAMILIAR, oMaster) == oTarget ||
   GetAssociate(ASSOCIATE_TYPE_ANIMALCOMPANION, oMaster) == oTarget ||
   GetRacialType(oTarget) == RACIAL_TYPE_OUTSIDER)
{

Line 83: Minor thing; nSpellDC is already defined on 45, and to get it for all targets (Before even checking they are valid) again is silly. Line 45 could be "int nSpellDC = GetSpellSaveDC();" instead.

Line 85: This if statement should have { } brackets to make it clear what it is working on.

Line 94: CanCreatureBeDestroyed() is redundant. Now the script has been made into simply doing a "unseen" EffectDeath() effect, or at least damage, the creature doesn't have to be destroyable for these to work.

Line 99: To "kill a target regardless" this EffectDamage() should use 1.04's new "ignore any damage resistances" and also, to make sure a target is dead, it should do something like GetMaxHitPoints() + 11 (incase it is a PC polymorphed).

OR: The damage could be removed (to make the spell more silent in its effects - "dismissing" them shouldn't deal damage) and EffectDeath() be made a supernatural effect, meaning it bypasses Immunity: Death (according to how it is used in the turn undead feat script). This could be a good thing - immortal things (for whatever reason) then wouldn't instantly "die" at 0 hit points from this spell (since they obviously wouldn't be "dismissed" if they cannot disappear from death!).

[edit] Gameplay Notes

It does really just kill them, so experience is gained as normal. It only works from your location, 30 feet out. The creatures are rather arbitrarily chosen due to how the script functions work. It affects anything that would be affected by Fireball however, meaning your own creatures can be banished!

The creatures all get a Will-save, and spell resistance applies as normal. Against some outsiders, this would be a worthless spell. However, against many low level targets, this can be considered a simple death spell. Preparation at the right time would be worthwhile.

It does affect summoned creatures too, which can be useful against some non-outsiders.