Added "Removed Files" folder
Added "Removed Files" folder in case we needed to review any of them.
This commit is contained in:
64
_module/_removed files/nw_s0_bescurse.nss
Normal file
64
_module/_removed files/nw_s0_bescurse.nss
Normal file
@@ -0,0 +1,64 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Bestow Curse
|
||||
//:: NW_S0_BesCurse.nss
|
||||
//:: Copyright (c) 2001 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Afflicted creature must save or suffer a -2 penalty
|
||||
to all ability scores. This is a supernatural effect.
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Bob McCabe
|
||||
//:: Created On: March 6, 2001
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Last Updated By: Preston Watamaniuk
|
||||
//:: VFX Pass By: Preston W, On: June 20, 2001
|
||||
//:: Update Pass By: Preston W, On: July 20, 2001
|
||||
|
||||
#include "NW_I0_SPELLS"
|
||||
#include "x2_inc_spellhook"
|
||||
#include "epicdc_inc"
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
/*
|
||||
Spellcast Hook Code
|
||||
Added 2003-06-23 by GeorgZ
|
||||
If you want to make changes to all spells,
|
||||
check x2_inc_spellhook.nss to find out more
|
||||
|
||||
*/
|
||||
|
||||
if (!X2PreSpellCastCode())
|
||||
{
|
||||
// If code within the PreSpellCastHook (i.e. UMD) reports FALSE, do not run this spell
|
||||
return;
|
||||
}
|
||||
|
||||
// End of Spell Cast Hook
|
||||
|
||||
//Declare major variables
|
||||
object oTarget = GetSpellTargetObject();
|
||||
effect eVis = EffectVisualEffect(VFX_IMP_REDUCE_ABILITY_SCORE);
|
||||
effect eCurse = EffectCurse(4, 4, 4, 4, 4, 4);
|
||||
|
||||
//Make sure that curse is of type supernatural not magical
|
||||
eCurse = SupernaturalEffect(eCurse);
|
||||
if(!GetIsReactionTypeFriendly(oTarget))
|
||||
{
|
||||
//Signal spell cast at event
|
||||
SignalEvent(oTarget, EventSpellCastAt(oTarget, SPELL_BESTOW_CURSE));
|
||||
//Make SR Check
|
||||
if (!MyResistSpell(OBJECT_SELF, oTarget))
|
||||
{
|
||||
//Make Will Save
|
||||
if (!/*Will Save*/ MySavingThrow(SAVING_THROW_WILL, oTarget, GetEpicSpellSaveDC()))
|
||||
{
|
||||
//Apply Effect and VFX
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eCurse, oTarget);
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oTarget);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user