Added Kivit Animal Companion.

Added Kivit Animal Companion & re-vamped the rest of the Animal Companions.
This commit is contained in:
Jaysyn904
2021-07-25 19:10:07 -04:00
parent 5d3e03e24b
commit 217104c830
749 changed files with 15220 additions and 37 deletions

37
nwnds_module/imp_grab.nss Normal file
View File

@@ -0,0 +1,37 @@
// PnP Improved Grab Attack - Item Unique OnHit Script
//
#include "prc_inc_combmove"
#include "prc_misc_const"
void main()
{
object oPC = OBJECT_SELF;
object oItem = GetSpellCastItem();
object oTarget = GetSpellTargetObject();
string sGrapplerName = GetName(oPC);
int GrappleBonus = GetLocalInt(oPC, "GRAPPLE_BONUS");
int PCSize = PRCGetSizeModifier(oPC);
int TargetSize = PRCGetSizeModifier(oTarget);
int GrappleChance = d100();
// You automatically lose an attempt to hold if the target is two or more size categories larger than you are.
if (TargetSize - 2 >= PCSize)
{
FloatingTextStringOnCreature("This creature is too large to grapple.", oPC);
return;
}
// Don't try to grapple on every attack.
if (GrappleChance >= 66)
{
return;
}
FloatingTextStringOnCreature("The" + sGrapplerName + "is grappling you!", oTarget);
DoGrapple(oPC, oTarget, 0, FALSE, TRUE);
}