integer counter; default { state_entry() { llAllowInventoryDrop(TRUE); } touch_start(integer total_number) { llSetTexture(llGetInventoryName(INVENTORY_TEXTURE, counter),1); counter += 1; if (counter >= llGetInventoryNumber(INVENTORY_TEXTURE)) { counter = 0; } } }