integer x = 0;//tells the script to start at the first item in the list, "0" is the first item
default
{
link_message( integer sender, integer num, string message, key id )//listen for message from other links
{
if( num == 0 )//what do to if the "next" button is pressed
{
llWhisper(5,"die"
; //tells the currently displayed object to go away, change the channel it whispers on for each table, so they don't kill objects on other tablesllSleep(0.25);//gives it time to go away
integer obj = llGetInventoryNumber(INVENTORY_OBJECT);//checks how many objects are in the list
llRezObject(llGetInventoryName(INVENTORY_OBJECT, x), llGetPos()+<1.0,-0.1,.6>*llGetRot(),<0,0,0>,llGetRot(),0);
x++;//tells it to rezz the next one in the list
if (x == obj) x = 0;//if you were at the last one in the list, start over at the beginning
}
}
}