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