// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Fill missing optional fields // Not compiled or tested in-world // Setup: Edit DEFAULTS and INPUT as unique key/value pairs; touch as owner. // Stop / restore: Remove or disable; it only reports locally to the owner. // Notes: Only missing keys receive defaults. An empty supplied value is considered present and is not replaced. // License: see LICENSE in this distribution. // Original Incoprea example. MIT. list DEFAULTS=["color","green","label","Untitled","mode","quiet"]; list INPUT=["label","","color","blue"]; default { touch_start(integer touches) { if(llDetectedKey(0)!=llGetOwner())return; if(llGetListLength(DEFAULTS)%2 || llGetListLength(INPUT)%2) { llOwnerSay("Incomplete pair."); return; } list result=INPUT; integer i; integer j; for(i=0;i