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().
46 lines
1.5 KiB
Plaintext
46 lines
1.5 KiB
Plaintext
//::///////////////////////////////////////////////
|
|
//:: Aura of Menace On Enter
|
|
//:: NW_S1_AuraMencA.nss
|
|
//:: Copyright (c) 2001 Bioware Corp.
|
|
//:://////////////////////////////////////////////
|
|
/*
|
|
Upon entering the aura all those that fail
|
|
a will save are stricken with Doom.
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: 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();
|
|
|
|
//if (NullMagicOverride(GetArea(oTarget), oTarget, oTarget)) {return;}
|
|
|
|
int nDuration = 1 + (GetHitDice(oNPC)/3);
|
|
int nCHAMod = GetAbilityModifier(ABILITY_CHARISMA, oNPC);
|
|
int nDC = 10 +nCHAMod+ (GetHitDice(oNPC)/2);
|
|
int nLevel = PRCGetCasterLevel(OBJECT_SELF);
|
|
|
|
effect eVis = EffectVisualEffect(VFX_IMP_DOOM);
|
|
effect eLink = CreateDoomEffectsLink();
|
|
|
|
if(GetIsEnemy(oTarget, GetAreaOfEffectCreator()))
|
|
{
|
|
//Fire cast spell at event for the specified target
|
|
SignalEvent(oTarget, EventSpellCastAt(OBJECT_SELF, SPELLABILITY_AURA_MENACE));
|
|
//Spell Resistance and Saving throw
|
|
if (!/*Will Save*/ PRCMySavingThrow(SAVING_THROW_WILL, oTarget, nDC))
|
|
{
|
|
SPApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oTarget);
|
|
SPApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink , oTarget, TurnsToSeconds(nDuration));
|
|
}
|
|
}
|
|
}
|