Added NWN Dark Sun module contents

Added NWN Dark Sun module contents.
This commit is contained in:
Jaysyn904
2021-07-12 21:24:46 -04:00
parent 556224a658
commit de24f81734
10609 changed files with 146652 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
// Hunting Cactus Ranged Spine & Poison - Item Unique OnHit Script
//
// Since you can't put a creature poison directly on a creature's ranged
// projectile.
//
//
#include "nw_i0_spells"
//#include "x2_inc_spellhook"
#include "x2_inc_switches"
void main()
{
object oPC = OBJECT_SELF;
object oItem = GetSpellCastItem();
object oTarget = GetSpellTargetObject();
int oFort = GetFortitudeSavingThrow(oTarget);
int nDC = 14;
effect ePoison = EffectPoison(60);
effect ePoisonVis = EffectVisualEffect(VFX_IMP_POISON_S);
// See if the hunting cactus' poison is resisted.
if (!FortitudeSave(oTarget, nDC, SAVING_THROW_TYPE_POISON, oTarget))
{
ApplyEffectToObject(DURATION_TYPE_INSTANT, ePoisonVis, oTarget);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, ePoison, oTarget);
}
}