PRC8/nwn/trunk/spells/sp_towering_oak.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

50 lines
1.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//::///////////////////////////////////////////////
//:: Name Towering Oak
//:: FileName sp_towering_oak.nss
//:://////////////////////////////////////////////
/**@file Towering Oak
Illusion (Glamer)
Level: Ranger 1
Components: V, S
Casting Time: 1 swift action
Range: Personal
Target: You
Duration: 1 round/level
You draw on the oaks strength to
improve your ability to intimidate your
enemies. You gain a +10 competence
bonus on Intimidate checks and a +2
enhancement bonus to Strength.
Author: Tenjac
Created: 6/28/07
*/
//:://////////////////////////////////////////////
//:://////////////////////////////////////////////
#include "prc_inc_spells"
void main()
{
if(!X2PreSpellCastCode()) return;
PRCSetSchool(SPELL_SCHOOL_ILLUSION);
object oPC = OBJECT_SELF;
int nCasterLvl = PRCGetCasterLevel(oPC);
float fDur = RoundsToSeconds(nCasterLvl);
effect eLink = EffectSkillIncrease(SKILL_INTIMIDATE, 10);
effect eSTR = EffectAbilityIncrease(ABILITY_STRENGTH, 2);
eLink = EffectLinkEffects(eLink, eSTR);
//Apply VFX - Green impact with <3 second wood texture - use nature summoning anims
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_HEAD_NATURE), oPC);
SPApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectVisualEffect(VFX_DUR_PROT_BARKSKIN), oPC, 2.75f, TRUE, SPELL_TOWERING_OAK, nCasterLvl);
//Apply bonuses
SPApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, oPC, fDur);
PRCSetSchool();
}