UW2_PRC8/_module/nss/scribesetname.nss
Jaysyn904 5197ad9a4d Initial upload
Initial upload
2023-09-25 20:24:01 -04:00

28 lines
607 B
Plaintext

void main()
{
// Vars
object oPC = GetPCSpeaker(), oListener = OBJECT_SELF;
string sNN = GetLocalString(oListener, "NN");
string sID = GetLocalString(oPC, "ONID");
object oItem;
oItem = GetFirstItemInInventory(oPC);
//Let's find the correct item and name it the new name..
while(GetIsObjectValid(oItem)==TRUE)
{
//Only if the item is an original target of the Item Naming Tool.
if(GetLocalString(oItem, "ONID")=="MEME")
{
SetName(oItem, sNN);
//If it is, stop here!
return;
}
oItem = GetNextItemInInventory(oPC);
}
//Script End
}