PRC8/nwn/trunk/scripts/poison_ungol2.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

25 lines
825 B
Plaintext

//::///////////////////////////////////////////////
//:: Ungol Dust On Hit
//:: poison_ungol2
//:://////////////////////////////////////////////
/** @file
1 point permanent Charisma damage and
1d6 points of temporary Charisma damage.
*/
//:://////////////////////////////////////////////
//:: Created By: Ornedan
//:: Created On: December 24, 2004
//:://////////////////////////////////////////////
#include "prc_alterations"
#include "inc_abil_damage"
void main()
{
object oTarget = OBJECT_SELF;
effect eVis = EffectVisualEffect(VFX_IMP_REDUCE_ABILITY_SCORE);
ApplyAbilityDamage(oTarget, ABILITY_CHARISMA, 1, DURATION_TYPE_PERMANENT, TRUE);
ApplyAbilityDamage(oTarget, ABILITY_CHARISMA, d6(1), DURATION_TYPE_TEMPORARY, TRUE, -1.0f);
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oTarget);
}