// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Gallery child audio descriptions // Not compiled or tested in-world // Setup: Put licensed narration sounds in root. Set each child description to its exact sound name; children pass touches. Root-touch silences. // Stop / restore: Touch root to stop audio before removal. // Notes: Use a spare modifiable build. Snapshot state is held only in script memory; restore before reset/removal. Do not relink during a preview. No text-to-speech or visitor sensing. Descriptions are public metadata; audio is nearby, not private. // License: see LICENSE in this distribution. // Original Incoprea. MIT. Not compiled or tested in-world. default { touch_start(integer n) { if(llDetectedKey(0)!=llGetOwner()||llGetLinkNumber()>1)return; integer link=llDetectedLinkNumber(0); if(link<2) { llStopSound(); return; } string sound=llList2String(llGetLinkPrimitiveParams(link,[PRIM_DESC]),0); if(llGetInventoryType(sound)!=INVENTORY_SOUND) { llOwnerSay("Child description does not name an inventory sound."); return; } llPlaySound(sound,0.25); } }