PRC8/nwn/nwnprc/trunk/scripts/prc_to_dthtch.nss
Jaysyn904 6ec137a24e Updated AMS marker feats
Updated AMS marker feats.  Removed arcane & divine marker feats.  Updated Dread Necromancer for epic progression. Updated weapon baseitem models.  Updated new weapons for crafting & npc equip.
 Updated prefix.  Updated release archive.
2024-02-11 14:01:05 -05:00

44 lines
1.2 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Death Touch
//:: prc_to_deathtouch
//:://////////////////////////////////////////////
/*
Thrall of Orcus may kill their foes.
-Requires melee Touch attack
-Save vs DC of 10 + Class Level + Cha bonus
*/
#include "prc_inc_sp_tch"
void main()
{
//Declare major variables
object oTarget = PRCGetSpellTargetObject();
//Declare effects
effect eSlay = EffectDeath();
effect eVis = EffectVisualEffect(VFX_IMP_NEGATIVE_ENERGY);
effect eVis2 = EffectVisualEffect(VFX_IMP_DEATH);
int nClass = GetLevelByClass(CLASS_TYPE_ORCUS, OBJECT_SELF);
int nCha = GetAbilityModifier(ABILITY_CHARISMA, OBJECT_SELF);
int nSave = 10 + nCha + nClass;
//Link effects
if(PRCDoMeleeTouchAttack(oTarget))
{
//Saving Throw
if(!PRCMySavingThrow(SAVING_THROW_FORT, oTarget, nSave, SAVING_THROW_TYPE_NEGATIVE))
{
//Apply effects to target and caster
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oTarget);
ApplyEffectToObject(DURATION_TYPE_INSTANT, eSlay, oTarget);
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis2, oTarget);
}
}
}