// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Private session notebook // Not compiled or tested in-world // Setup: Place in your own object and touch. Enter a note, /list to read notes, or /clear to erase them. // Stop / restore: Remove or reset to erase session data. Input listeners close after one reply or after 45 seconds. // Notes: Data lives only in script memory and is lost on reset. No visitors are logged and no external requests are sent. Notes are private owner-chat output, never hover text. Do not treat volatile script memory as a durable archive. // License: see LICENSE in this distribution. // Original Incoprea example. MIT. list notes; integer handle; integer channel; closeInput() { if(handle)llListenRemove(handle); handle=0; llSetTimerEvent(0); } respond(string input) { input=llStringTrim(input,STRING_TRIM); if(llStringLength(input)>200) { llOwnerSay("Use at most 200 characters."); return; } if(input=="/clear") { notes=[]; llOwnerSay("Session notes cleared."); return; } if(input=="/list") { integer i; for(i=0;i10)notes=llDeleteSubList(notes,0,0); llOwnerSay("Note kept in this session."); } default { touch_start(integer touches) { if(llDetectedKey(0)!=llGetOwner())return; closeInput(); channel=-10000-(integer)llFrand(1000000000); handle=llListen(channel,"",llGetOwner(),""); llSetTimerEvent(45); llTextBox(llGetOwner(),"Enter a note, /list to read notes, or /clear to erase them.",channel); } listen(integer c,string name,key speaker,string input) { if(c!=channel || speaker!=llGetOwner())return; closeInput(); respond(input); } timer() { closeInput(); llOwnerSay("Input closed."); } changed(integer flags) { if(flags & CHANGED_OWNER)llResetScript(); } }