// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Set membership in a compact bit field // Not compiled or tested in-world // Setup: Place in a spare owned prim. Edit the sample flag indexes in code, keeping them0 through30. Owner touch runs the local demonstration. // Stop / restore: Disable/remove. No external requests or scene changes occur; reset clears memory. // Notes: A set has no ordering or duplicate count. The example intentionally avoids bit31 to keep values nonnegative. // License: see LICENSE in this distribution. // Original Incoprea. MIT. Local owner-only protocol laboratory. integer flags; default { touch_start(integer detectedCount) { if(llDetectedKey(0)!=llGetOwner())return; flags=flags|(1<<2); flags=flags|(1<<7); flags=flags|(1<<12); flags=flags&~(1<<7); flags=flags^(1<<4); list present; integer i; for(i=0;i<31;++i)if(flags&(1<