// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Two-tap confirmation window // Not compiled or tested in-world // Setup: Put in a spare prim you own. Touch once to arm, then again within three seconds to confirm. Nothing destructive is performed. // Stop / restore: Disable or remove the script. It only reports to its owner and does not change prim properties. Reset clears its temporary state. // Notes: The confirmation state expires lazily on the next touch. Add a separate per-user identity check before adapting for multiple users. // License: see LICENSE in this distribution. // Original Incoprea example. MIT. Owner-only calculation; no scene changes. integer armed; float deadline; default { touch_start(integer detectedCount) { if (llDetectedKey(0) != llGetOwner()) return; float now = llGetTime(); if (armed && now <= deadline) { armed = FALSE; llOwnerSay("Confirmed demonstration action."); return; } armed = TRUE; deadline = now + 3.0; llOwnerSay("Armed: touch again within three seconds to confirm."); } changed(integer change) { if (change & CHANGED_OWNER) llResetScript(); } }