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,41 @@
//::
//:: A pnp version of the Belgoi's STR damaging slam.
//::
//:: Modified by: DM Heatstroke 05-10-11
//::
#include "NW_I0_SPELLS"
#include "nw_i0_plot"
void DoStrDamage(object oTarget, object oCaster)
{
// Get Ability Damage
int nDam = Random(5)+1;
effect eVis = EffectVisualEffect(VFX_IMP_REDUCE_ABILITY_SCORE);
effect eStr = EffectAbilityDecrease(ABILITY_STRENGTH, nDam);
eStr = ExtraordinaryEffect(eStr);
// Belgoi's slam has no save, but also won't kill it's victim.
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oTarget); // Apply Viz
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eStr, oTarget, 8640.0); // 24 "Athas Reborn" hours -DMH
}
void main()
{
object oTarget = GetSpellTargetObject();
object oCaster = OBJECT_SELF;
/* int bIsPoisoned = GetLocalInt(oTarget,"IsPoisoned");
if ( bIsPoisoned )
return; */
if ( GetIsImmune(oTarget,IMMUNITY_TYPE_ABILITY_DECREASE) )
{
SendMessageToPC(oTarget,"Immune to ability drain.");
return;
}
DelayCommand(0.1,DoStrDamage(oTarget,oCaster));
}