Slideshow Script

Written by: Headmaster
default
{
    state_entry()
    {
        llSay(0, "Raz Image Cycler");
        llSetTimerEvent(5.0);
    }
    timer()
    {
        integer number = llGetInventoryNumber(INVENTORY_TEXTURE);
        float rand = llFrand(number);
        integer choice = (integer)rand;
        string name = llGetInventoryName(INVENTORY_TEXTURE, choice);
        if (name != "")
        {
            llSetTexture(name, 0);
            //llSay(0, name);
        }
    }
}