PRC8/nwn/nwnprc/trunk/psionics/psi_mental_leap.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

34 lines
1.0 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Mental Leap spellscript
//:: psi_mental_leap
//::///////////////////////////////////////////////
/*
Makes a jump with +10 bonus to skill.
Using Mental Leap requires expending psionic focus.
*/
//:://////////////////////////////////////////////
//:: Modified By: Ornedan
//:: Modified On: 22.03.2005
//:://////////////////////////////////////////////
#include "prc_alterations"
#include "prc_feat_const"
#include "psi_inc_psifunc"
#include "prc_inc_skills"
void main()
{
object oPC = OBJECT_SELF;
if(!UsePsionicFocus(oPC)){
SendMessageToPC(oPC, "You must be psionically focused to use this feat");
return;
}
effect eJump = EffectSkillIncrease(SKILL_JUMP, 10);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eJump, oPC, 6.0f);
PerformJump(oPC, PRCGetSpellTargetLocation(), TRUE);
//AssignCommand(oPC, ActionCastSpellAtLocation(SPELL_JUMP, PRCGetSpellTargetLocation(), METAMAGIC_NONE, TRUE, PROJECTILE_PATH_TYPE_DEFAULT, TRUE));
}