PWE_PRC8/_module/nss/bug_yes_ears1a.nss
Jaysyn904 ee1dc35889 Initial Commit
Initial Commit
2025-04-03 10:29:41 -04:00

32 lines
655 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.3
For download info, please visit:
http://www.lilacsoul.revility.com */
int StartingConditional()
{
object oPC = GetPCSpeaker();
if (!(GetNumItems(oPC, "BugbearEar") >= 10)) return FALSE;
if (GetItemPossessedBy(oPC, "CaptQuest4") == OBJECT_INVALID) return FALSE;
return TRUE;
}