Files
PRC8/nwn/nwnprc/trunk/scripts/unarmed_caller.nss
Jaysyn904 6420e5dbb8 2026/01/08 Update
Hexblade shouldn't get Medium Armor prof.
Weapon Specialization Whip isn't a Warblade bonus feat.
Reorganized packages.2da.
Fixed potential issue with SetCompositeBonusT().
Added materials iprops to material based crafting.
Fixed bug w/ DoTrip().
Added heartbeat script to Monk to properly handle monk sizes.
Cleaned up PRCGetCreatureSize().
Set Shielded Casting to use TagItemProperty().
Archivist now has a Lore check to learn spells from scrolls.
Set Dragonfire Strike to use TagItemProperty().
Setup Forsaker to use TagItemProperty().
Fixed distance mismatch with Necrocarnum Shroud.
Added too much debugging for the unarmed stuff.
Cloudkill now obeys Mastery of Shapes.
2026-01-08 20:31:11 -05:00

47 lines
1.5 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Unarmed handling script
//:: unarmed_caller
//::///////////////////////////////////////////////
/*
A single calling point for UnarmedFeats() and
UnarmedFists(). This is called from EvalPRCFeats
after all scripts that need these two funtions
called are run.
*/
//:://////////////////////////////////////////////
//:: Created By: Ornedan
//:: Created On: 15.03.2005
//:://////////////////////////////////////////////
#include "prc_inc_unarmed"
void main()
{
DoDebug("unarmed_caller: FUNCTION STARTED");
DoDebug("unarmed_caller: CALL_UNARMED_FEATS = " + IntToString(GetLocalInt(OBJECT_SELF, CALL_UNARMED_FEATS)));
DoDebug("unarmed_caller: CALL_UNARMED_FISTS = " + IntToString(GetLocalInt(OBJECT_SELF, CALL_UNARMED_FISTS)));
int bCont = FALSE;
if(GetLocalInt(OBJECT_SELF, CALL_UNARMED_FEATS))
{
DoDebug("unarmed_caller: CALLING UnarmedFeats");
UnarmedFeats(OBJECT_SELF);
bCont = TRUE;
}
if(GetLocalInt(OBJECT_SELF, CALL_UNARMED_FISTS))
{
DoDebug("unarmed_caller: CALLING UnarmedFists");
UnarmedFists(OBJECT_SELF);
bCont = TRUE;
}
if(bCont)
{
DeleteLocalInt(OBJECT_SELF, CALL_UNARMED_FEATS);
DeleteLocalInt(OBJECT_SELF, CALL_UNARMED_FISTS);
SetLocalInt(OBJECT_SELF, UNARMED_CALLBACK, TRUE);
ExecuteAllScriptsHookedToEvent(OBJECT_SELF, CALLBACKHOOK_UNARMED);
DeleteLocalInt(OBJECT_SELF, UNARMED_CALLBACK);
}
}