Alangara_PRC8/_module/nss/ke_glandandbag.nss
Jaysyn904 86feb9ca6f Initial commit
Initial commit.
2024-06-05 21:21:06 -04:00

35 lines
716 B
Plaintext

int GetNumItems(object oTarget,string sItem)
{
int nNumItems = 0;
object oItem = GetFirstItemInInventory(oTarget);
while (GetIsObjectValid(oItem) == TRUE)
{
if (GetTag(oItem) == sItem)
{
nNumItems = nNumItems + GetNumStackedItems(oItem);
}
oItem = GetNextItemInInventory(oTarget);
}
return nNumItems;
}
/* Script generated by
Lilac Soul's NWN Script Generator, v. 1.6
For download info, please visit:
http://www.lilacsoul.revility.com */
int StartingConditional()
{
object oPC = GetPCSpeaker();
if (!(GetNumItems(oPC, "letterintroducti") >= 1)) return FALSE;
if (!(GetNumItems(oPC, "NW_IT_CONTAIN003") >= 1)) return FALSE;
if (!(GetNumItems(oPC, "talkashgland1") >= 1)) return FALSE;
return TRUE;
}