Battledale_PRC8/_module/nss/jw_craft_chckshe.nss
Jaysyn904 7b9e44ebbb Initial upload
Initial upload.  PRC8 has been added.  Module compiles, PRC's default AI & treasure scripts have been integrated.  Started work on top hak for SLA / Ability / Scripting modifications.
2024-03-11 23:44:08 -04:00

34 lines
654 B
Plaintext

#include "prc_x2_itemprop"
int StartingConditional()
{
int iResult;
object oA = GetItemInSlot(INVENTORY_SLOT_LEFTHAND,GetPCSpeaker());
if (!GetIsObjectValid(oA))
{
return FALSE;
}
int nBase=GetBaseItemType(oA);
if ((nBase!=BASE_ITEM_SMALLSHIELD) && (nBase!=BASE_ITEM_LARGESHIELD) && (nBase!=BASE_ITEM_TOWERSHIELD))
{
return FALSE;
}
if (GetPlotFlag(oA))
{
return FALSE;
}
if (GetIsDM(GetPCSpeaker())||GetIsDMPossessed(GetPCSpeaker()))
{
return TRUE;
}
if (!GetHasSkill(SKILL_CRAFT_WEAPON,GetPCSpeaker()))
{
return FALSE;
}
return TRUE;
}