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

27 lines
979 B
Plaintext

/*
9/7/10 by Stratovarius
Step of the Bodiless
Beginning at 1st level, you gain a +2 enhancement bonus on Balance, Climb, Jump, and Tumble checks for every
point of essentia you invest in this class feature.
*/
#include "moi_inc_moifunc"
void main()
{
object oMeldshaper = PRCGetSpellTargetObject();
int nBonus = GetEssentiaInvested(oMeldshaper) * 2;
if (nBonus)
{
effect eLink = EffectLinkEffects(EffectSkillIncrease(SKILL_TUMBLE, nBonus), EffectSkillIncrease(SKILL_BALANCE, nBonus));
eLink = EffectLinkEffects(eLink, EffectSkillIncrease(SKILL_JUMP, nBonus));
eLink = EffectLinkEffects(eLink, EffectSkillIncrease(SKILL_CLIMB, nBonus));
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, SupernaturalEffect(eLink), oMeldshaper, 9999.0);
}
else
FloatingTextStringOnCreature("You have no essentia invested in "+GetStringByStrRef(StringToInt(Get2DACache("spells", "Name", PRCGetSpellId()))), oMeldshaper, FALSE);
}