// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Check inventory count during a bounded enumeration // Not compiled or tested in-world // Setup: Use a spare owned test object. Touch; optional inventory edits during the test may reveal an unstable snapshot. // Stop / restore: Disable/remove. Tests report privately and do not change visual prim properties. Any temporary timer stops at completion or timeout. // Notes: One event usually completes quickly. Matching counts do not prove that no same-count replacement occurred. // License: see LICENSE in this distribution. // Original Incoprea. MIT. Runtime verification, not pre-certified behavior. default { touch_start(integer detectedCount) { if(llDetectedKey(0)!=llGetOwner())return; integer before=llGetInventoryNumber(INVENTORY_ALL); if(before>100) { llOwnerSay("Use at most100 inventory items."); return; } integer blanks; integer i; for(i=0;i