// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Distinguish moved records from changed values // 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: Pairs are key/value. Index changes indicate an ordering difference, not necessarily a deliberate individual move. // License: see LICENSE in this distribution. // Original Incoprea example. MIT. list BEFORE=["a","green","b","small","c","Lamp"]; list AFTER=["c","Lamp","a","blue","d","new"]; default { touch_start(integer touches) { if(llDetectedKey(0)!=llGetOwner())return; if(llGetListLength(BEFORE)%2 || llGetListLength(AFTER)%2) { llOwnerSay("Use key/value pairs."); return; } list a; list b; integer i; for(i=0;i