Jaysyn904 86feb9ca6f Initial commit
Initial commit.
2024-06-05 21:21:06 -04:00

18 lines
499 B
Plaintext

void main()
{
//This uses the dm consol command dm_setvarstring
//To set the name of an NPC,item,placeable.
//Access this by ##dm_setvarstring sName "What you want as the name"
//Then use the item on the object you desire, If you want the generic name
//Simply reuse the item on the specified object without setting sName again.
object oObject;
string sName;
oObject = GetItemActivatedTarget();
sName = GetLocalString(oObject,"sName");
SetName(oObject,sName);
SetLocalString(oObject,sName,"");
}