PRC8/nwn/nwnprc/trunk/scripts/prc_domain_charm.nss
Jaysyn904 6ec137a24e Updated AMS marker feats
Updated AMS marker feats.  Removed arcane & divine marker feats.  Updated Dread Necromancer for epic progression. Updated weapon baseitem models.  Updated new weapons for crafting & npc equip.
 Updated prefix.  Updated release archive.
2024-02-11 14:01:05 -05:00

33 lines
1020 B
Plaintext

//::///////////////////////////////////////////////
//:: Charm Domain Power
//:: prc_domain_charm.nss
//::///////////////////////////////////////////////
/*
Grants +4 Charisma for 1 Minute
*/
//:://////////////////////////////////////////////
//:: Modified By: Stratovarius
//:: Modified On: 19.12.2005
//:://////////////////////////////////////////////
#include "inc_newspellbook"
#include "prc_inc_domain"
void main()
{
object oTarget = OBJECT_SELF;
// Used by the uses per day check code for bonus domains
if (!DecrementDomainUses(PRC_DOMAIN_CHARM, oTarget)) return;
effect eVis = EffectVisualEffect(VFX_IMP_IMPROVE_ABILITY_SCORE);
effect eDur = EffectVisualEffect(VFX_DUR_CESSATE_POSITIVE);
effect eCha = EffectAbilityIncrease(ABILITY_CHARISMA, 4);
effect eLink = EffectLinkEffects(eCha, eDur);
eLink = SupernaturalEffect(eLink);
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oTarget);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, oTarget, 60.0);
}