Mechanatrixes always fail saves vs elecricity. Incorporated most creature ability scripts into the PRC8 & updated them to use PRCEffect(), SPApplyEffectToObject(), etc. Updated prc_inc_breath to use PRCEffectDamage() Updated several spell scripts to use PRCEffectDamage().
43 lines
1.4 KiB
Plaintext
43 lines
1.4 KiB
Plaintext
//::///////////////////////////////////////////////
|
|
//:: Bolt: Web
|
|
//:: NW_S1_BltWeb
|
|
//:: Copyright (c) 2001 Bioware Corp.
|
|
//:://////////////////////////////////////////////
|
|
/*
|
|
Glues a single target to the ground with
|
|
sticky strands of webbing.
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Preston Watamaniuk
|
|
//:: Created On: Jan 28, 2002
|
|
//:: Updated On: July 15, 2003 Georg Zoeller - Removed saving throws
|
|
//:://////////////////////////////////////////////
|
|
#include "prc_inc_spells"
|
|
#include "prc_inc_sp_tch"
|
|
#include "NW_I0_SPELLS"
|
|
#include "x2_inc_switches"
|
|
|
|
void main()
|
|
{
|
|
object oTarget = PRCGetSpellTargetObject();
|
|
int nHD = GetHitDice(OBJECT_SELF);
|
|
effect eVis = EffectVisualEffect(VFX_DUR_WEB);
|
|
effect eStick = EffectEntangle();
|
|
effect eLink = EffectLinkEffects(eVis, eStick);
|
|
|
|
int nDC = 10 + (nHD/2);
|
|
int nCount = (nHD + 1) / 2;
|
|
|
|
//Fire cast spell at event for the specified target
|
|
SignalEvent(oTarget, EventSpellCastAt(OBJECT_SELF, SPELLABILITY_BOLT_WEB));
|
|
//Make a saving throw check
|
|
if (PRCDoRangedTouchAttack(oTarget))
|
|
{
|
|
if( !GetHasFeat(FEAT_WOODLAND_STRIDE, oTarget) && GetCreatureFlag(OBJECT_SELF, CREATURE_VAR_IS_INCORPOREAL) != TRUE )
|
|
{
|
|
//Apply the VFX impact and effects
|
|
SPApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, oTarget, RoundsToSeconds(nCount));
|
|
}
|
|
}
|
|
}
|