// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Distribute terrace depths by a taper // Not compiled or tested in-world // Setup: Put in a spare owned prim. Set count2..12, total run and positive first-to-last ratio. Touch to print the plan privately. // Stop / restore: Remove/disable; calculations do not alter objects. // Notes: This is a terrace layout calculation rather than a staircase usability recommendation. // License: see LICENSE in this distribution. // Original Incoprea. MIT. Calculation only. integer COUNT=6; float RUN=9.0; float FIRST_TO_LAST=2.0; default { touch_start(integer detectedCount) { if(llDetectedKey(0)!=llGetOwner())return; if(COUNT<2||COUNT>12||RUN<=0.0||FIRST_TO_LAST<=0.0) { llOwnerSay("Invalid series."); return; } float last=2.0*RUN/((float)COUNT*(FIRST_TO_LAST+1.0)); float first=last*FIRST_TO_LAST; float start; integer i; for(i=0;i