32 lines
663 B
Plaintext
32 lines
663 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. 2.2
|
|
|
|
For download info, please visit:
|
|
http://nwvault.ign.com/View.php?view=Other.Detail&id=4683&id=625 */
|
|
|
|
int StartingConditional()
|
|
{
|
|
object oPC = GetPCSpeaker();
|
|
|
|
if (GetNumItems(oPC, "anoyspiritessen") < 5) return FALSE;
|
|
|
|
if (GetGold(oPC) < 100000) return FALSE;
|
|
|
|
return TRUE;
|
|
}
|