PRC8_fork/nwn/trunk/scripts/prc_ollam_inscon.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

20 lines
578 B
Plaintext

/*
Ollam's Inspire Confidence
*/
#include "prc_alterations"
#include "prc_inc_spells"
void main()
{
object oTarget = PRCGetSpellTargetObject();
effect eVis = EffectVisualEffect(VFX_IMP_HEAD_SONIC);
int nDur = GetLevelByClass(CLASS_TYPE_OLLAM, OBJECT_SELF);
int nBoost = MyPRCGetRacialType(oTarget) == RACIAL_TYPE_DWARF ? 3 : 2;
effect eSkill = EffectSkillIncrease(SKILL_ALL_SKILLS, nBoost);
SPApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oTarget);
SPApplyEffectToObject(DURATION_TYPE_TEMPORARY, eSkill, oTarget, RoundsToSeconds(nDur));
}