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