// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Turn a wide table into property records // Not compiled or tested in-world // Setup: Edit the small sample lists and touch as owner. These examples print previews only. // Stop / restore: Remove or disable; no simulator objects or persistent records are changed. // Notes: The first column is the entity name. Empty cells are omitted; all rows must have the declared stride. Values are reported with CSV escaping. // License: see LICENSE in this distribution. // Original Incoprea example. MIT. list HEADERS=["entity","color","size"]; list ROWS=["Lamp","green","small","Bench","","large"]; default { touch_start(integer touches) { if(llDetectedKey(0)!=llGetOwner())return; integer width=llGetListLength(HEADERS); if(width<2 || llGetListLength(ROWS)%width) { llOwnerSay("Invalid table shape."); return; } integer i; integer j; for(i=0;i