Ancordia_PRC8/_module/nss/craft_noatkenh.nss

19 lines
549 B
Plaintext
Raw Permalink Normal View History

2023-09-21 19:51:32 -04:00
int StartingConditional()
{
object oPC = GetPCSpeaker();
object oItem = GetFirstItemInInventory(oPC);
int nValue;
while (GetIsObjectValid(oItem))
{
if (GetLocalInt(oItem, "Prototype") == TRUE)
{
if (GetLocalString(oPC, "LastProperty") == "Attack" || GetLocalString(oPC, "LastProperty") == "Enhancement"
|| GetLocalString(oPC, "LastProperty") == "Mighty") return FALSE;
return TRUE;
}
oItem = GetNextItemInInventory(oPC);
}
return FALSE;
}