Files
HeroesStone_PRC8/_module/nss/vg_has_item.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

15 lines
495 B
Plaintext

int StartingConditional()
{
object oPC = GetPCSpeaker();
string szPlotID = GetLocalString(OBJECT_SELF,"Quest"); // Quest Identifier
int iItemNum = GetLocalInt(OBJECT_SELF,"ItemNum"); // Number of quest item to check for
string sItemNum = IntToString(iItemNum); // Convert int to string
string sItem = szPlotID+"Item"+sItemNum; // Tag of Quest Item that PC must have
object oItem = GetItemPossessedBy(oPC,sItem);
if (oItem == OBJECT_INVALID)
{
return FALSE;
}
else return TRUE;
}