// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Group catalog rows by category // Not compiled or tested in-world // Setup: Edit ROWS as category/name pairs and touch as owner. // Stop / restore: Remove or disable; it only reports locally to the owner. // Notes: Rejects incomplete pairs. This is stable grouping rather than alphabetical sorting; it does not alter an external catalog. // License: see LICENSE in this distribution. // Original Incoprea example. MIT. list ROWS=["Lighting","Lamp","Seating","Bench","Lighting","Lantern","Plants","Fern"]; default { touch_start(integer touches) { if(llDetectedKey(0)!=llGetOwner())return; if(llGetListLength(ROWS)%2) { llOwnerSay("Incomplete record."); return; } list groups=[]; integer i; integer j; for(i=0;i