generated from Jaysyn/ModuleTemplate
15 lines
495 B
Plaintext
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;
|
|
}
|