PRC8/nwn/nwnprc/trunk/newspellbook/tob_jpm_ritew.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

29 lines
935 B
Plaintext

#include "prc_alterations"
#include "tob_move_const"
void Lore(object oTarget, object oSkin, int nBonus)
{
if(GetLocalInt(oSkin, "RiteWaking") == nBonus) return;
SetCompositeBonus(oSkin, "RiteWaking", nBonus, ITEM_PROPERTY_SKILL_BONUS,SKILL_LORE);
}
void RiteWaking(object oTarget)
{
effect eFort = ExtraordinaryEffect(EffectSavingThrowIncrease(SAVING_THROW_ALL, 2, SAVING_THROW_TYPE_FEAR));
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eFort, oTarget);
eFort = ExtraordinaryEffect(EffectSavingThrowIncrease(SAVING_THROW_ALL, 2, SAVING_THROW_TYPE_DEATH));
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eFort, oTarget);
}
void main()
{
//Declare main variables.
int nID = GetSpellId();
object oTarget = (nID == JPM_SPELL_RITE_WAKING_SELF) ? OBJECT_SELF : PRCGetSpellTargetObject();
object oSkin = GetPCSkin(oTarget);
Lore(oTarget, oSkin, 2);
RiteWaking(oTarget);
}