void main() { string sStoreTag = "metaldye"; string sStoreRes = "metaldye"; if (GetNearestObjectByTag(sStoreTag) == OBJECT_INVALID) { CreateObject(OBJECT_TYPE_STORE, sStoreRes, GetLocation(OBJECT_SELF)); } SetLocalString(GetPCSpeaker(), "STORE", sStoreTag); }