Aschbourne_PRC8/_module/nss/mk_cb_iprp_ftchk.nss
Jaysyn904 903f023230 Major update
Created top hak for crafting dialog.  Moved Bioware creature abilities to top hak.  Fixed DMFI wand handouts.  Added DMFI language handouts.  Added CCOH 6.  Disabled PC corpse system.  Modified new player startup system.  Full compile.  Updated release archive.
2024-09-17 13:24:57 -04:00

22 lines
747 B
Plaintext

///////////////////////////////////////////////////////////////////////////////
// mk_cb_iprp_ftchk
///////////////////////////////////////////////////////////////////////////////
// callback itemproperty feat check
///////////////////////////////////////////////////////////////////////////////
#include "mk_inc_2da_disp"
#include "mk_inc_iprp"
void main()
{
object oPC = OBJECT_SELF;
int nRow = GetLocalInt(OBJECT_SELF, MK_2DA_DISP_CALLBACK_ROW);
int nFeatIndex = MK_Get2DAInt("iprp_feats", "FeatIndex", nRow);
object oItem = GetItemInSlot(INVENTORY_SLOT_CARMOUR, oPC);
int bCheck = !GetHasFeat(nFeatIndex, oPC) || MK_IPRP_GetItemHasFeat(oItem, nRow);
SetLocalInt(OBJECT_SELF, MK_2DA_DISP_CALLBACK_CHECK, bCheck);
}