Added Dynamic Kobolds. Fixed ghoul / wight texture. Added Jann model. Made PnP Zombie, Ghoul, Ghast, Wight & Mohrg creatures. Full Compile
35 lines
843 B
Plaintext
35 lines
843 B
Plaintext
//
|
|
// NWN Dark Sun Creature Knockdown Fix
|
|
// knockdown_fix.nss
|
|
//
|
|
// By: Jaysyn
|
|
//
|
|
|
|
//void main(){}
|
|
|
|
#include "inc_item_props"
|
|
|
|
void KDFix(object oNPC)
|
|
{
|
|
//:: Declare major variables
|
|
int iBAB = GetBaseAttackBonus(OBJECT_SELF);
|
|
int iSTRb = GetAbilityModifier(0, OBJECT_SELF);
|
|
int iDEXb = GetAbilityModifier(1, OBJECT_SELF);
|
|
int iBaseDiscipline = GetSkillRank(SKILL_DISCIPLINE, OBJECT_SELF, TRUE);
|
|
int iDiscipline;
|
|
|
|
effect eSkillBonus;
|
|
effect eLink;
|
|
|
|
iDiscipline = d20(1) + iBAB + iDEXb + iSTRb;
|
|
|
|
if (iBaseDiscipline <= 0)
|
|
{
|
|
//:: Apply Discipline Bonus
|
|
eSkillBonus = EffectSkillIncrease(SKILL_DISCIPLINE, iDiscipline);
|
|
eLink = EffectLinkEffects(eLink, eSkillBonus);
|
|
eLink = ExtraordinaryEffect(EffectLinkEffects(eSkillBonus, eLink));
|
|
|
|
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eLink, OBJECT_SELF);
|
|
}
|
|
} |