protected void SetObjectNameCore(int obj) { if (IsActor(obj)) { string msg = string.Format("Can't set actor {0} name with new name.", obj); throw new NotSupportedException(msg); } _newNames[obj] = ReadCharacters(); RunInventoryScript(0); }