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

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
}