generated from Jaysyn/ModuleTemplate
11 lines
478 B
Plaintext
11 lines
478 B
Plaintext
void main()
|
|
{
|
|
object oPC = GetPCSpeaker();
|
|
string szPlotID = GetLocalString(OBJECT_SELF,"Quest"); // Quest Identifier
|
|
int iItemNum = GetLocalInt(OBJECT_SELF,"ItemNum"); // Number of quest item
|
|
string sItemNum = IntToString(iItemNum); // Convert int to string
|
|
string sItem = szPlotID+"Item"+sItemNum; // Tag of Quest Item to give
|
|
object oItem = GetItemPossessedBy(OBJECT_SELF,sItem); // Define the Quest Item by the above tag
|
|
ActionGiveItem(oItem,oPC); // Give them the item
|
|
}
|