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