// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Nonrepeating prompt bag // Not compiled or tested in-world // Setup: Put in a spare prim and edit the prompt list. Touch to draw the next item. // Stop / restore: Disable or remove and clear its text. Reset discards the current bag order. // Notes: Pseudorandom order for creative play. The last item of one bag can equal the first item of the next; no prizes or money are handled. // License: see LICENSE in this distribution. // Original Incoprea example. MIT. Not compiled or tested in-world. list prompts = ["Build something tiny", "Use only three colors", "Make a quiet machine", "Invent a new plant", "Design a doorway to nowhere"]; list bag; default { touch_start(integer count) { if (!llGetListLength(prompts)) return; if (!llGetListLength(bag)) bag = llListRandomize(prompts, 1); string prompt = llList2String(bag, 0); bag = llDeleteSubList(bag, 0, 0); llSetText(prompt + "\n" + (string)llGetListLength(bag) + " left in this bag", <0.9, 0.85, 0.7>, 1.0); } }