Initial upload.

Adding base PRC 4.19a files to repository.
This commit is contained in:
Jaysyn904
2022-10-07 13:51:24 -04:00
parent 646eb01834
commit 1662218bb4
22441 changed files with 1274376 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
////////////////////////////////////////////////////////////////////
// Daunting Presence
// prc_daunt_pres.nss
////////////////////////////////////////////////////////////////////
/** @file DAUNTING PRESENCE [GENERAL]
You are skilled at inducing fear in your opponents.
Prerequisites: Cha 13, base attack bonus +1.
Benefit: You may take a standard action to awe an opponent.
If the opponent fails a Will saving throw (DC 10 + 1/2 your character
level + your Cha modifier), it is shaken for 10 minutes. This is a
mind-affecting ability.
Special: A fighter may select Daunting Presence as one of
his fighter bonus feats.
*/
//////////////////////////////////////////////////////
// Tenjac 5/16/08
//////////////////////////////////////////////////////
#include "prc_inc_spells"
void main()
{
object oPC = OBJECT_SELF;
object oTarget = PRCGetSpellTargetObject();
int nHD = GetHitDice(oPC);
nHD = nHD/2;
int nDC = (10 + nHD + GetAbilityModifier(ABILITY_CHARISMA, oPC));
//Must have intelligence score... since everything in NWN does, we have to fudge a little
if(!GetIsImmune(oTarget, IMMUNITY_TYPE_MIND_SPELLS))
{
if (!PRCMySavingThrow(SAVING_THROW_WILL, oTarget, nDC))
{
SPApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectShaken(), oTarget, TurnsToSeconds(10));
}
}
}