Swapped Disciple of Asmodeus' Summon Glabrezu for Summon Pit Fiend. Glabrezu aren't devils. Wisplings can qualify for Warsling Sniper. Added Maeluth planetouched racialtype. Maeluth can qualify for Dwarven Defender. Ollam and Ironsoul Forgemaster. Added Mechanatrix planetouched racialtype. Updated creature aura scripts to use PRCEffectDamage(), SPApplyEffectToObject() & PRCMySavingThrow().
47 lines
1.5 KiB
Plaintext
47 lines
1.5 KiB
Plaintext
//::///////////////////////////////////////////////
|
|
//:: Aura Unearthly Visage On Enter
|
|
//:: NW_S1_AuraUnEaA.nss
|
|
//:: Copyright (c) 2001 Bioware Corp.
|
|
//:://////////////////////////////////////////////
|
|
/*
|
|
Upon entering the aura of the creature the player
|
|
must make a will save or be killed because of the
|
|
sheer ugliness or beauty of the creature.
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Preston Watamaniuk
|
|
//:: Created On: May 25, 2001
|
|
//:://////////////////////////////////////////////
|
|
#include "NW_I0_SPELLS"
|
|
//#include "wm_include"
|
|
#include "prc_inc_spells"
|
|
|
|
void main()
|
|
{
|
|
//:: Declare major variables
|
|
object oNPC = GetAreaOfEffectCreator();
|
|
object oTarget = GetEnteringObject();
|
|
|
|
int nHD = GetHitDice(oNPC);
|
|
int nCHAMod = GetAbilityModifier(ABILITY_CHARISMA, oNPC);
|
|
int nDC = 10 +nCHAMod+ (nHD/2);
|
|
|
|
//if (NullMagicOverride(GetArea(oTarget), oTarget, oTarget)) {return;}
|
|
|
|
effect eDeath = EffectDeath();
|
|
effect eVis = EffectVisualEffect(VFX_IMP_DEATH);
|
|
|
|
if(GetIsEnemy(oTarget, oNPC))
|
|
{
|
|
//Fire cast spell at event for the specified target
|
|
SignalEvent(oTarget, EventSpellCastAt(oNPC, SPELLABILITY_AURA_UNEARTHLY_VISAGE));
|
|
//Make a saving throw check
|
|
if(!PRCMySavingThrow(SAVING_THROW_WILL, oTarget, nDC, SAVING_THROW_TYPE_DEATH))
|
|
{
|
|
//Apply the VFX impact and effects
|
|
SPApplyEffectToObject(DURATION_TYPE_INSTANT, eDeath, oTarget);
|
|
//ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oTarget);
|
|
}
|
|
}
|
|
}
|