PoA_PRC8/_module/nss/ghoul_claw.nss
Jaysyn904 bfbbd2f1ac Major update
Added several new undead models & facelifted overrides for other models.  Added dozens of new undead creatures from Libris Mortis & the monster manuals.  Added CODI Core AI.  Added NESS spawner system.  Added randomized respawning trap system.  Added undead feeding system.  Greatly revamped Catacombs & Halls of the Dead.  Updated nimtools.  Full compile.  Updated release archive.
2024-04-07 01:06:57 -04:00

44 lines
1.2 KiB
Plaintext

//::
//:: Ghoul_claw
//::
//:: A pnp version of the Ghoul's paralytic claws.
//::
//:: Modified by: DM Heatstroke 01-19-11
//::
#include "nw_i0_spells"
#include "nw_i0_plot"
#include "prc_inc_spells"
void DoGhoulClaw(object oTarget, object oCaster)
{ // Setup paralytic touch
effect eVis = EffectVisualEffect(VFX_DUR_PARALYZED);
float fDuration = RoundsToSeconds(d4()+1);
effect eParalyze = EffectParalyze();
eParalyze = ExtraordinaryEffect(eParalyze);
effect eStun = EffectLinkEffects(eParalyze, eVis);
// Get oCaster's Bite DC
int nCreCHAMod = GetAbilityModifier(ABILITY_CHARISMA, oCaster);
int nCreHD = GetHitDice (oCaster);
int nBiteDC = (10 + (nCreHD/2) + nCreCHAMod);
// Roll a saving throw to resist the paralytic touch
if ( !PRCMySavingThrow(SAVING_THROW_FORT, oTarget, nBiteDC, SAVING_THROW_TYPE_NONE, oCaster) &&
!GetHasFeat(4711, oTarget) && // PRC Elven feat
!GetHasFeat(256, oTarget) ) // Bioware Weapon Prof: Elf
{
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eStun, oTarget, fDuration);
}
}
void main()
{
object oTarget = PRCGetSpellTargetObject();
object oCaster = OBJECT_SELF;
DelayCommand(0.1,DoGhoulClaw(oTarget,oCaster));
}