PRC8/nwn/trunk/scripts/poison_sufrfume.nss
Jaysyn904 5914ed2ab5 Updated Release Archive
Updated Release Archive.  Fixed Mage-killer prereqs.  Removed old LETO & ConvoCC related files.  Added organized spell scroll store.  Fixed Gloura spellbook. Various TLK fixes.  Reorganized Repo.  Removed invalid user folders. Added DocGen back in.
2023-08-22 10:00:21 -04:00

36 lines
1.5 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Sufferfume On Hit
//:: poison_sufrfume
//:://////////////////////////////////////////////
/*
1 point of damage to all abilities
*/
//:://////////////////////////////////////////////
//:: Created By: Ornedan
//:: Created On: 10.01.2005
//:://////////////////////////////////////////////
#include "prc_alterations"
#include "prc_inc_spells"
void main()
{
object oTarget = OBJECT_SELF;
//effect eStr = EffectAbilityDecrease(ABILITY_STRENGTH, 1);
//effect eDex = EffectAbilityDecrease(ABILITY_DEXTERITY, 1);
//effect eCon = EffectAbilityDecrease(ABILITY_CONSTITUTION, 1);
//effect eInt = EffectAbilityDecrease(ABILITY_INTELLIGENCE, 1);
//effect eWis = EffectAbilityDecrease(ABILITY_WISDOM, 1);
//effect eCha = EffectAbilityDecrease(ABILITY_CHARISMA, 1);
effect eVis = EffectVisualEffect(VFX_IMP_REDUCE_ABILITY_SCORE);
ApplyAbilityDamage(oTarget, ABILITY_STRENGTH, 1, DURATION_TYPE_PERMANENT, TRUE);
ApplyAbilityDamage(oTarget, ABILITY_DEXTERITY, 1, DURATION_TYPE_PERMANENT, TRUE);
ApplyAbilityDamage(oTarget, ABILITY_CONSTITUTION, 1, DURATION_TYPE_PERMANENT, TRUE);
ApplyAbilityDamage(oTarget, ABILITY_INTELLIGENCE, 1, DURATION_TYPE_PERMANENT, TRUE);
ApplyAbilityDamage(oTarget, ABILITY_WISDOM, 1, DURATION_TYPE_PERMANENT, TRUE);
ApplyAbilityDamage(oTarget, ABILITY_CHARISMA, 1, DURATION_TYPE_PERMANENT, TRUE);
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oTarget);
}