// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Schedule a staggered reveal across a row // Not compiled or tested in-world // Setup: Put in a spare owned prim. Set ELAPSED, positive DURATION and nonnegative STAGGER. Owner touch prints calculations only. // Stop / restore: Disable/remove. No prim motion or appearance is changed. // Notes: Values are clamped0..1; this calculates a frame of an animation rather than setting visibility. // License: see LICENSE in this distribution. // Original Incoprea. MIT. Motion planning only. float ELAPSED=1.2; float DURATION=1.0; float STAGGER=0.25; default { touch_start(integer detectedCount) { if(llDetectedKey(0)!=llGetOwner())return; if(DURATION<=0.0||STAGGER<0.0) { llOwnerSay("Invalid timing."); return; } integer i; for(i=0;i<6;++i) { float p=(ELAPSED-i*STAGGER)/DURATION; if(p<0.0)p=0.0; if(p>1.0)p=1.0; llOwnerSay("Item "+(string)i+" progress="+(string)p); } } }