Advertisement
salahzar

100-transmitter

Oct 5th, 2013
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. list states=[
  2. "sal-anim-1",
  3. "sal-anim-2",
  4. "sal-anim-3"];
  5.  
  6.  
  7. integer index=0;
  8.  
  9. shownext()
  10. {
  11.     if(index>=0) llSay( (integer)llGetScriptName(),"-"+llList2String(states,index));
  12.     index++;
  13.     if(index>=llGetListLength(states)) index=0;
  14.     llSetText((string)(index+1)+"/"+(string)llGetListLength(states),<1,1,1>,1);
  15.     llSay( (integer)llGetScriptName(),"+"+llList2String(states,index));
  16. }
  17.  
  18. default
  19. {
  20.     state_entry()
  21.     {
  22.         index=-1;
  23.         integer i;
  24.         for(i=1;i<llGetListLength(states);i++)
  25.             llSay( (integer)llGetScriptName(),"-"+llList2String(states,i));
  26.         shownext();
  27.     }
  28.     touch_start(integer count)
  29.     {
  30.         shownext();
  31.     }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement