// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Negotiate a shared feature set // Not compiled or tested in-world // Setup: Place in a spare owned prim. Set LOCAL_FLAGS, PEER_FLAGS and REQUIRED_FLAGS as bit fields. Owner touch runs the local demonstration. // Stop / restore: Disable/remove. No external requests or scene changes occur; reset clears memory. // Notes: This demonstrates format negotiation, not trust or authorization. Unknown optional bits are naturally excluded if not shared. // License: see LICENSE in this distribution. // Original Incoprea. MIT. Local owner-only protocol laboratory. integer LOCAL_FLAGS=11; integer PEER_FLAGS=13; integer REQUIRED_FLAGS=9; default { touch_start(integer detectedCount) { if(llDetectedKey(0)!=llGetOwner())return; integer agreed=LOCAL_FLAGS&PEER_FLAGS; integer missing=REQUIRED_FLAGS&~agreed; llOwnerSay("Agreed flags="+(string)agreed); if(missing)llOwnerSay("Cannot proceed; missing required flags="+(string)missing); else llOwnerSay("Required capabilities available."); } }