// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Build an encoded query string // Not compiled or tested in-world // Setup: Edit the example inputs in the script, then touch as owner. // Stop / restore: Remove or disable. This transforms text locally and sends no external requests. // Notes: Does not open or fetch the resulting URL. Duplicate keys are preserved; values are encoded separately so reserved characters remain data. // License: see LICENSE in this distribution. // Original Incoprea example. MIT. list PAIRS=["q","blue glass","category","garden & light","empty",""]; default { touch_start(integer touches) { if(llDetectedKey(0)!=llGetOwner())return; if(llGetListLength(PAIRS)%2) { llOwnerSay("Incomplete pair."); return; } list encoded=[]; integer i; for(i=0;i